How many MB is 8 GB of RAM? It depends who’s counting. Computers count in 1024s, so 8 GB is 8,192 MB. Drive makers count in 1000s, so they’d call it 8,000 MB. This calculator shows both side by side.
It’s handy when a hypervisor wants the VM’s memory in MB, when a script wants a size in bytes, or when you’re wondering where part of your new hard drive went.
| Unit | Binary (1024) | Decimal (1000) |
|---|
Why is my drive smaller than it says on the box?
Binary vs decimal
There are two ways of counting storage, and both use the same names, which is where all the confusion comes from.
| Unit | Binary (RAM, Windows) | Decimal (drive makers, network speeds) |
|---|---|---|
| 1 KB | 1,024 bytes | 1,000 bytes |
| 1 MB | 1,024 KB = 1,048,576 bytes | 1,000 KB = 1,000,000 bytes |
| 1 GB | 1,024 MB = 1,073,741,824 bytes | 1,000 MB = 1,000,000,000 bytes |
| 1 TB | 1,024 GB | 1,000 GB |
| 1 PB | 1,024 TB | 1,000 TB |
The gap grows with every step up. A KB is only 2.4% out, but a TB is nearly 10% out.
To clear this up, the binary units were given their own names: KiB, MiB, GiB and TiB (kibibyte, mebibyte and so on). Linux tools like free -h show them as Gi and Mi, df -h counts in the same binary units but just prints G and M, and most hypervisors use them too. Windows still uses the binary values but calls them KB, MB and GB, which is why the two never seem to agree.
Common RAM sizes in MB
Hyper-V, Proxmox, VMware and most VM settings want memory in MB. These are the numbers to type in:
| RAM | In MB | In bytes |
|---|---|---|
| 512 MB | 512 | 536,870,912 |
| 1 GB | 1,024 | 1,073,741,824 |
| 2 GB | 2,048 | 2,147,483,648 |
| 4 GB | 4,096 | 4,294,967,296 |
| 6 GB | 6,144 | 6,442,450,944 |
| 8 GB | 8,192 | 8,589,934,592 |
| 12 GB | 12,288 | 12,884,901,888 |
| 16 GB | 16,384 | 17,179,869,184 |
| 24 GB | 24,576 | 25,769,803,776 |
| 32 GB | 32,768 | 34,359,738,368 |
| 64 GB | 65,536 | 68,719,476,736 |
| 128 GB | 131,072 | 137,438,953,472 |
Where did my disk space go?
Buy a 1 TB drive, plug it in, and Windows says 931 GB. Nothing is missing. The maker counted 1,000,000,000,000 bytes in 1000s, and Windows counted the same bytes in 1024s:
| On the box | What Windows shows |
|---|---|
| 256 GB | 238 GB |
| 500 GB | 465 GB |
| 1 TB | 931 GB |
| 2 TB | 1.81 TB |
| 4 TB | 3.63 TB |
| 8 TB | 7.27 TB |
The real space is then a little lower still, because the file system and the recovery partition take their share.
Bits vs bytes
Network speeds are in bits, files are in bytes, and there are 8 bits in a byte. So a 100 Mbps broadband line downloads at about 12.5 MB per second at best. If your download seems eight times slower than it should be, that’s why.
Quick answers
What’s the difference between a GB and a GiB?
A GiB is 1,073,741,824 bytes (1024 × 1024 × 1024) and a GB is 1,000,000,000 bytes, so a GiB is about 7.4% bigger. Windows shows GiB values but labels them GB.
Why does a 1 TB drive show as 931 GB?
The maker counts 1 TB as 1,000,000,000,000 bytes. Windows divides that by 1024 three times and gets 931 GB. No space is missing.
Is 100 Mbps the same as 100 MB/s?
No. Mbps is megabits and MB/s is megabytes, with 8 bits to a byte, so 100 Mbps is about 12.5 MB/s at best.
Related tools
To work out how long a copy or download will take, use the transfer time calculator. If you’re planning networks rather than storage, the subnet calculator works out IP ranges, and the commands page has free -m and df -h for checking what a machine actually has.
More tools and guides
7 pages
Related projects
3 pages