Skip to content

Gigabytes To Megabytes Converter

Convert gigabytes to megabytes and vice versa with precise bidirectional calculation.

By CalcGenius Editorial TeamLast reviewed August 28, 20253 min read
Gigabytes ↔ Megabytes Converter

Decimals allowed (e.g., 1, 8, 16, 256).

Choose which way to convert.

1 GB = 1000 MB (storage drives).

📊
Enter your values and click Convert

About

Converting between gigabytes (GB) and megabytes (MB) is one of the most common storage calculations, but it is also one of the most confusing — because there are two competing definitions of "gigabyte" in everyday use. The decimal (SI) gigabyte, used by storage manufacturers, equals exactly 10^9 bytes (1 billion bytes), so 1 GB = 1000 MB. The binary gibibyte (GiB), standardized by IEC 60027-2, equals exactly 2^30 bytes (1,073,741,824 bytes), so 1 GiB = 1024 MiB.

The two conventions diverge by 7.37% at the gigabyte scale (and the gap grows at larger prefixes: 4.86% at KB, 7.37% at MB, 9.95% at TB, 12.59% at PB). This is why a 500 GB hard drive shows as 465 GB in Windows — Windows computes in GiB but labels the result as GB. macOS uses decimal units and so matches the manufacturer's label exactly. Linux utilities like `ls -lh` use the correct binary symbols (KiB, MiB, GiB).

The IEC 60027-2 standard was published in 1998 to eliminate this ambiguity by introducing distinct prefixes for binary multiples: kibi (Ki, 1024), mebi (Mi, 1024^2), gibi (Gi, 1024^3), tebi (Ti, 1024^4), pebi (Pi, 1024^5). The symbols use a lowercase second letter (Ki, Mi, Gi) to distinguish them from SI kilo (k), mega (M), giga (G). NIST, IEEE, and ISO/IEC have all adopted these prefixes, though consumer software has been slow to follow — Windows in particular still labels GiB as GB.

RAM is naturally binary because memory addresses are powers of 2 (a 16 GB DIMM is actually 16 GiB = 17,179,869,184 bytes). Storage devices are decimal because capacities grew incrementally and the marketing numbers look larger in decimal form (a 500 GB SSD is exactly 500,000,000,000 bytes). Network bandwidth uses decimal SI units (1 Gbps = 1,000,000,000 bits/second). When in doubt, count bytes and convert to the convention your audience expects at the display layer.

Common anchors: a CD-ROM holds ~700 MB (decimal); a DVD holds 4.7 GB (decimal); a Blu-ray disc holds 25 GB (single layer); a 4K feature film is ~50–100 GB; consumer SSDs ship in 250, 500, 1000, 2000 GB capacities; enterprise SSDs reach 15 TB and beyond; the largest HDDs (as of 2024) are ~24 TB. Knowing which convention each uses is essential for accurate capacity planning.

For programming, always work in raw bytes and convert to the display convention at the presentation layer. This avoids rounding errors, prefix ambiguity, and double-conversion bugs. Languages like JavaScript expose byte counts directly, so `Math.pow(1024, 3)` or `1073741824` are unambiguous — but the label you attach to the result (GB vs GiB) matters for communication.

How to Use

  1. 1
    Enter the value to convert
    Type the numeric value in gigabytes (or megabytes, depending on direction). Decimals are allowed.
  2. 2
    Pick the conversion direction
    Choose GB → MB to convert gigabytes to megabytes (×1000 or ×1024), or MB → GB to convert megabytes back to gigabytes (÷1000 or ÷1024).
  3. 3
    Select the convention (decimal or binary)
    Decimal (SI, 1000-based) is used by storage manufacturers. Binary (IEC, 1024-based) is used by Windows and RAM. The factor and unit labels update automatically.
  4. 4
    Read the hero result
    The big number shows the converted value to 4 decimals with the appropriate MB/MiB label.
  5. 5
    Check the breakdown rows
    The result rows also show the equivalent in KB (or KiB) and bytes, so you can sanity-check the full chain of units.
  6. 6
    Reference the comparison table
    Use the 1/10/100/1000-GB reference table to anchor your result against common storage sizes (e.g., a 100 GB SSD, a 1 TB hard drive).

Formula

Decimal (SI, base-10) — storage manufacturers:

1 GB = 1000 MB = 1,000,000 KB = 10^9 bytes
MB = GB × 1000
GB = MB ÷ 1000

Binary (IEC 60027-2, base-2) — RAM, Windows:

1 GiB = 1024 MiB = 1,048,576 KiB = 2^30 bytes
MiB = GiB × 1024
GiB = MiB ÷ 1024

Cross-conversion between conventions:

1 GiB = 1.073741824 GB (binary → decimal)
1 GB = 0.9313225746 GiB (decimal → binary)
Difference at GB scale: 7.37%

Worked Example

Example 1 — Convert 1 GB to MB (decimal):

  • 1 × 1000 = 1000 MB
  • = 1,000,000 KB
  • = 1,000,000,000 bytes (10^9)

Example 2 — Convert 1 GiB to MiB (binary):

  • 1 × 1024 = 1024 MiB
  • = 1,048,576 KiB
  • = 1,073,741,824 bytes (2^30)

Example 3 — Convert 500 MB to GB (decimal):

  • 500 ÷ 1000 = 0.5 GB
  • = 500,000 KB
  • = 500,000,000 bytes

Tips

  • Decimal (SI): 1 GB = 1000 MB = 1,000,000 KB = 10^9 bytes. Use this for HDDs, SSDs, USB drives, SD cards, and network bandwidth.
  • Binary (IEC): 1 GiB = 1024 MiB = 1,048,576 KiB = 2^30 bytes ≈ 1.074 GB. Use this for RAM and any power-of-2 addressing.
  • Conversion factor between GB and GiB: 1 GiB = 1.073741824 GB; 1 GB = 0.9313225746 GiB. The 7.37% gap is why a 500 GB drive shows as ~465 GiB.
  • Windows reports GiB but labels them "GB". macOS reports GB (decimal). Linux `ls -lh` uses KiB/MiB/GiB symbols correctly since coreutils 8.21 (2013).
  • For programming, work in bytes and convert to the convention at the display layer. This avoids rounding errors and prefix confusion in the model.

Common Mistakes

Warning

The most common mistake is mixing the decimal (1000) and binary (1024) conventions in the same calculation. If you compute 1 GB × 1024 thinking you're getting MiB but display the result as "MB", you have a 7.37% error. The other common mistake is trusting Windows' "GB" label as if it were SI — it is actually GiB. Always confirm which convention your tools and audience expect before publishing capacity figures.

Frequently Asked Questions

How many MB are in 1 GB?
It depends on the convention. In the decimal (SI) system used by storage manufacturers, 1 GB = 1000 MB. In the binary (IEC) system used by Windows and RAM, 1 GiB = 1024 MiB. The same physical bytes are being counted, just with different base units, which is why a 500 GB drive shows up as about 465 GiB in Windows.
Why does my 1 TB hard drive show as 931 GB in Windows?
Drive makers use decimal units (1 TB = 1,000,000,000,000 bytes), while Windows reports in binary units (1 GiB = 1,073,741,824 bytes). 1,000,000,000,000 ÷ 1,073,741,824 ≈ 931.32 GiB. Windows labels GiB as "GB", which causes the apparent 7% capacity gap. macOS now reports in decimal units, so the same drive shows as 1 TB on a Mac.
What is the difference between GB and GiB?
GB (gigabyte) uses base-10 (SI) prefixes: 1 GB = 10^9 bytes = 1,000,000,000 bytes. GiB (gibibyte) uses base-2 (IEC 60027-2) prefixes: 1 GiB = 2^30 bytes = 1,073,741,824 bytes. The IEC introduced the binary prefixes in 1998 to disambiguate, but Windows still uses the legacy "GB" label for what is technically GiB.
Should I use 1000 or 1024 for memory/storage calculations?
Use 1000 (decimal) for hard drives, SSDs, USB sticks, SD cards, and network bandwidth — manufacturers report these in SI units. Use 1024 (binary) for RAM, file sizes in some OSs, and Windows Explorer. Programming languages like JavaScript typically expose byte counts, so for accuracy, count bytes and convert to the convention your audience expects.
How many bytes are in 1 GB and 1 GiB?
1 GB = 1,000,000,000 bytes (10^9, decimal). 1 GiB = 1,073,741,824 bytes (2^30, binary). The difference is 7.37%, which is why storage capacities appear to shrink when viewed in Windows. The IEC 60027-2 standard formalized the binary prefix names (kibi, mebi, gibi, tebi) in 1998 to remove this ambiguity.
Is RAM measured in GB or GiB?
RAM is measured in binary units. A "16 GB" RAM module is actually 16 GiB = 17,179,869,184 bytes. RAM is built from power-of-2 addressing, so binary units are natural. Storage devices (HDD/SSD) use decimal units because capacities grew incrementally and the marketing numbers look larger in decimal form.

GB (decimal) vs GiB (binary)

1 GB (gigabyte) = 10^9 bytes = 1,000,000,000 bytes, using SI base-10 prefixes. 1 GiB (gibibyte) = 2^30 bytes = 1,073,741,824 bytes, using IEC 60027-2 binary prefixes. The 7.37% gap between them is the source of nearly every storage-capacity complaint. SI units are used for network bandwidth and marketed storage; IEC units are used for RAM and operating-system reports in Windows.

Hard drive vs RAM context

Storage manufacturers ship HDDs and SSDs labeled in decimal GB (1 GB = 10^9 bytes), so a 500 GB drive has 500,000,000,000 bytes exactly. RAM is built on binary addressing, so a 16 GB DIMM has 16 GiB = 17,179,869,184 bytes. Windows reports both as \"GB\", which is technically wrong for RAM context but ubiquitous. macOS switched to decimal units for storage in 2009, which is why a 500 GB drive shows as 500 GB on a Mac but ~465 GB on Windows.

IEC 60027-2 standard

The IEC 60027-2 standard (1998, revised 2005) introduced binary prefixes — kibi (Ki), mebi (Mi), gibi (Gi), tebi (Ti), pebi (Pi) — to disambiguate base-2 quantities from SI base-10 prefixes. The symbols use a lowercase second letter (Ki, Mi, Gi) to distinguish them from SI kilo (k), mega (M), giga (G). The standard has been adopted by IEEE, NIST, and ISO/IEC, but consumer-facing software has been slow to follow.

Why Windows shows "wrong" GB

Windows Explorer, File Explorer, and Task Manager all use binary arithmetic (1 KB = 1024 bytes) but display the SI prefix \"GB\" instead of \"GiB\". This dual bug — wrong prefix, right arithmetic — makes a 1,000,000,000,000-byte drive display as 931.51 GB. Microsoft has kept this behavior for backwards compatibility since Windows NT. Linux utilities like `ls -lh` and macOS since Snow Leopard (10.6) use decimal units, matching storage manufacturer labels.

Common GB amounts (1, 10, 100, 1000) converted to MB/MiB and KB/KiB under the decimal (1000-based) convention.
Input (GB)→ MB / MiB→ MB / MiB→ KB / KiB
1 GB1,0001,0001,000,000
10 GB10,00010,00010,000,000
100 GB100,000100,000100,000,000
1000 GB1,000,0001,000,0001,000,000,000
Info

The decimal (SI) gigabyte is the legal definition used in trade and commerce (EU Directive 80/181/EEC, US NIST Handbook 44). The binary gibibyte is the technical standard for memory addressing. Use decimal for marketing, legal, and bandwidth contexts; binary for memory, file systems, and technical documentation.

Pro tip

For quick mental math: 1 GB ≈ 0.931 GiB and 1 GiB ≈ 1.074 GB. So a 256 GB SSD ≈ 238 GiB in Windows; a 1 TB HDD ≈ 931 GiB. Multiply by 0.9313 to convert decimal GB to GiB; multiply by 1.0737 to convert GiB to decimal GB.

Authoritative References

  • Wikipedia — Gigabyte— wikipedia.org
    Comprehensive overview of the gigabyte, including the GB/GiB ambiguity and history of the IEC binary prefixes.
  • Wikipedia — Mebibyte— wikipedia.org
    Definition of the mebibyte (MiB) as 2^20 bytes under IEC 60027-2, used for RAM and binary-addressed storage.
  • IEC 60027-2 — Letter symbols (IEC web)— electropedia.org
    International Electrotechnical Vocabulary entry for binary prefixes (kibi, mebi, gibi, tebi) standardized in IEC 60027-2.
  • NIST — Prefixes for binary multiples— nist.gov
    NIST reference page on binary prefixes, explaining the rationale and adoption of kibi/mebi/gibi symbols.

Try our other free calculators

CalcGenius has 1,200+ free, ad-free, browser-based calculators for finance, health, math, science, and everyday life. No sign-up required.

What Will Gigabytes To Megabytes? Cost? See Totals