Ask how many megabytes are in a gigabyte and you will get two confident answers: 1,000 and 1,024. Both are right, depending on which definition of "gigabyte" the speaker has in mind. The confusion has been around for decades and still shows up everywhere: in file managers, phone storage screens, RAM specs and exam questions.
This guide explains where the two definitions come from, how the IEC binary prefixes (KiB, MiB, GiB) settle the ambiguity, which operating systems and products use which, and how to convert between them without mistakes.
Two ways to count
Computers work in binary, so memory naturally comes in powers of 2. Early engineers noticed that 2¹⁰ = 1,024 is very close to 1,000 and borrowed the metric prefix "kilo" for it. The habit extended upward:
| Name as commonly used | Binary meaning | Decimal (SI) meaning |
|---|---|---|
| Kilobyte (KB) | 1,024 bytes | 1,000 bytes |
| Megabyte (MB) | 1,048,576 bytes | 1,000,000 bytes |
| Gigabyte (GB) | 1,073,741,824 bytes | 1,000,000,000 bytes |
At the kilobyte level the gap is 2.4%. At gigabytes it is 7.4%, and at terabytes it grows to about 10%. Small errors that nobody cared about in the 1980s became obvious once drives reached hundreds of gigabytes.
The fix: KiB, MiB and GiB
In 1998 the International Electrotechnical Commission (IEC) introduced separate binary prefixes so each unit has one meaning:
| Binary unit | Symbol | Bytes | Relationship |
|---|---|---|---|
| Kibibyte | KiB | 1,024 | |
| Mebibyte | MiB | 1,048,576 | 1,024 KiB |
| Gibibyte | GiB | 1,073,741,824 | 1,024 MiB |
| Tebibyte | TiB | 1,099,511,627,776 | 1,024 GiB |
Under this system:
- 1 GB = 1,000 MB (decimal, SI prefixes)
- 1 GiB = 1,024 MiB (binary, IEC prefixes)
Cross-conversions are where the odd numbers appear:
1 GB = 953.67 MiB
1 GiB = 1,073.74 MB = 1.0737 GB
The IEC names are standard, but everyday usage has not fully caught up. Many people and programs still write "GB" when they mean GiB.
Who uses which
| Where | What "GB" usually means |
|---|---|
| Storage drive and USB stick packaging | Decimal: 1 GB = 1,000,000,000 bytes |
| Network speeds and data transfer | Decimal |
| Mobile data plans | Usually decimal; some carriers use binary. Check the terms |
| Windows File Explorer | Binary, but labelled "GB" and "MB" |
| macOS (recent versions) | Decimal |
| Linux | Varies by tool; many show KiB/MiB/GiB explicitly |
| RAM modules | Binary: "8 GB" of RAM is 8 GiB |
Why RAM is always binary
Memory chips are addressed with binary address lines, so capacities come in powers of 2 naturally. An "8 GB" memory module holds 8 × 1,073,741,824 bytes, which is 8 GiB. No one sells RAM in decimal gigabytes, so the label effectively means GiB.
Why storage is decimal
Storage capacity is not tied to powers of 2 in the same way, and manufacturers use the SI definition, which the prefixes "giga" and "tera" have always meant elsewhere in science. That is also the larger-looking number, which is why the difference feels like a sleight of hand when Windows reports less. The guide on why a 1 TB drive shows as 931 GB covers that effect in detail.
Convert GB to MB with our tool
The GB to MB Converter uses decimal units for the main answer and lists binary values underneath, so you can see both interpretations side by side.
- Open the GB to MB Converter. It starts with 1 GB.
- The Megabytes (MB) box shows 1,000 (decimal).
- Look at the list of other units under the converter. It shows mebibytes (MiB): 953.67432, and gibibytes (GiB): 0.93132257.
- Type any value in the Gigabytes (GB) box to update everything; for example, 4.7 GB is 4,700 MB and about 4,482 MiB.
- Use Copy for the result line, or press swap to go from MB to GB.
If your starting figure is in binary units (for example, a GiB value from a Linux tool), multiply by 1,024 to get MiB.
Converting by hand
MB = GB × 1,000
MiB = GiB × 1,024
MiB = GB × 953.674
MB = GiB × 1,073.742
In a spreadsheet, =A2*1000 and =A2*1024 cover the common cases. To go the other way, the MB to GB Converter divides by 1,000. Excel's CONVERT function supports decimal byte prefixes and IEC binary prefixes (such as "Gbyte" and "Gibyte"); check the documentation for the exact codes.
Tips and pitfalls
Exam and interview questions
If a question just says "how many MB in a GB", look at the context. Computer science courses often expect 1,024; modern standards say 1,000 for GB and 1,024 for GiB. Stating which one you are using earns you the benefit of the doubt.
Don't mix both in one calculation
If you work out a backup size using Windows figures (binary) and compare it with a drive's advertised capacity (decimal), you will be off by 7% at the gigabyte level. Convert both to the same system first.
Bits vs bytes is a different problem
Mb (megabits) and MB (megabytes) differ by a factor of 8, not 1,024 vs 1,000. For internet speeds, see the Mbps to MB/s Converter.
Frequently asked questions
Is 1 GB 1,000 MB or 1,024 MB?
Under the SI standard, 1 GB is 1,000 MB. The 1,024 figure belongs to the binary units: 1 GiB is 1,024 MiB. Some software still uses "GB" for the binary value.
What is a GiB?
A gibibyte, 1,073,741,824 bytes (2³⁰). It is the unambiguous name for what older software often calls a gigabyte.
Does Windows use GB or GiB?
Windows File Explorer calculates in binary units but labels them GB and MB.
Why is my 8 GB of RAM not 8,000 MB?
RAM is sized in binary units, so 8 GB of RAM is 8 GiB, which is 8,192 MiB, or about 8,590 decimal MB.
How many MB is 2 GB?
2 GB is 2,000 MB in decimal units. 2 GiB is 2,048 MiB.