MB, GB, MiB and GiB are related storage units, but they do not use the same definitions. Decimal units use powers of 1,000; binary units use powers of 1,024. This difference explains why a storage value may look different in a product specification and in some software displays.
Decimal and binary definitions
| Unit | Definition in bytes | Prefix system |
|---|---|---|
| 1 kB | 1,000 bytes | Decimal |
| 1 MB | 1,000,000 bytes | Decimal |
| 1 GB | 1,000,000,000 bytes | Decimal |
| 1 KiB | 1,024 bytes | Binary |
| 1 MiB | 1,048,576 bytes | Binary |
| 1 GiB | 1,073,741,824 bytes | Binary |
Convert MB to MiB
Because 1 MB is 1,000,000 bytes and 1 MiB is 1,048,576 bytes:
Equivalently, multiply MB by approximately 0.953674.
Convert GB to GiB
Equivalently, multiply GB by approximately 0.931323. This is a unit conversion, not evidence that a drive has lost capacity.
Worked examples
| Decimal value | Approximate binary value |
|---|---|
| 1 MB | 0.9537 MiB |
| 100 MB | 95.3674 MiB |
| 1 GB | 0.9313 GiB |
| 10 GB | 9.3132 GiB |
| 500 GB | 465.6613 GiB |
Convert in the other direction
To convert MiB to MB, multiply by 1,048,576 and divide by 1,000,000. To convert GiB to GB, multiply by 1,073,741,824 and divide by 1,000,000,000. The reverse factors are approximately 1.048576 and 1.073741824, respectively.
Why displays differ
Storage manufacturers commonly state capacity using decimal GB or TB. Operating systems and applications may display decimal or binary units, sometimes with inconsistent labels. File-system formatting, reserved partitions and system data can also affect the usable space shown; the MB-to-MiB or GB-to-GiB conversion alone does not account for all such differences.
Common mistakes
- Treating MB and MiB or GB and GiB as identical.
- Using 1,024 as the ratio between decimal GB and binary GiB without accounting for the 1,000-based definition.
- Comparing values that use different unit conventions without checking labels.
- Rounding intermediate calculations and then reusing rounded values.
Use a storage unit converter
Select the exact source and target units when comparing file sizes, memory, storage devices or bandwidth-related documentation. Keep decimal and binary prefixes distinct so the resulting comparison is meaningful.