Binary vs Decimal Byte Units

The cluster debates the use of decimal prefixes (e.g., GB as 10^9 bytes) versus binary prefixes (e.g., GiB as 2^30 bytes) for storage and memory, highlighting inconsistencies between hard drives, RAM, and operating systems.

📉 Falling 0.3x Hardware
1,619
Comments
20
Years Active
5
Top Authors
#6109
Topic ID

Activity Over Time

2007
4
2008
8
2009
32
2010
31
2011
29
2012
48
2013
90
2014
78
2015
50
2016
112
2017
94
2018
50
2019
87
2020
101
2021
215
2022
166
2023
165
2024
161
2025
91
2026
9

Keywords

RAM IEC CPU SSD HDD en.wik GB UI MB DRAM gb mb 1024 gigabytes si byte bytes 10 binary megabytes

Sample Comments

partycoder Aug 13, 2018 View on HN

Megabytes (1000^2, MB) or mebibytes (1024^2, MiB)?

pskocik Apr 6, 2014 View on HN

Unit prefixes should be unambiguous: 1 GB = 1000 MB; 1 GiB = 2^10 MiB. People who say 1 GB = 1024 MB are wrong. Let's not perpetuate this slip in judgment (while acknowledging that many programs still do use this misbegotten system)

spuz Jan 8, 2016 View on HN

What's your objection? It should be mibibytes?

rob74 Apr 10, 2024 View on HN

"we" should use GiB, but in practice (almost) no one really does. Hence the confusion...

alanfranz Jul 25, 2025 View on HN

hard drives intentionally use giga and tera rather than gibi and tebi. They're right; it's the memory sticks that are usually wrong :-)

illicium Dec 28, 2013 View on HN

If you want to be really pedantic, differentiate SI giga/megabytes as GB/MB and "binary" gibi/mebibytes as GiB/MiB

CodesInChaos Nov 19, 2017 View on HN

Windows (at least up to 8) does not follow the SI standard. It uses KB, MB, GB but converts using 1024. Which has funny consequences, like 999MB being smaller 0.94GB.

saurik Feb 26, 2021 View on HN

Hard disks are typically sold with 1000-based units and memory is typically sold with 1024-based units: the market is inconsistent, and therefore so is the user interface; if you by 512 MB of RAM you get 512 MiB, but if you buy 1 TB of disk, you get only like 0.9 TiB, and so if you have a UI showing you how much space a file takes up it should (sadly) likely work different from a UI showing you how much space a process takes up :(.

pseudalopex Feb 27, 2021 View on HN

MB never consistently meant MiB.

Dalewyn Feb 15, 2023 View on HN

Windows uses GB (gigabytes) to mean GiB (gibibytes), MB (megabytes) to mean MiB (mebibytes), and so on because basically noone in the real world adopted IEC's renaming scheme.Linux (to include Android) and the BSDs (to include MacOS, and iOS?) use GB (gigabytes) to mean decimal GB (gigabytes), a conversion factor basically noone in the real world adopted because multiples of 1000 are meaningless.So the vast majority of people and Windows to this day understand a kilobyte as 1024 bytes