MB to GB Converter

Megabyte to gigabyte converter that handles both standards: binary (1,024 MB = 1 GB, used for RAM and Windows) and decimal (1,000 MB = 1 GB, used for drive sizes and ISPs).

Convert Binary/decimal toggle Bidirectional
Rate this calculator · 4.3 (3)

Megabytes ↔ Gigabytes

Binary (1,024) or decimal (1,000) · bidirectional · IEC standard

Instructions — MB to GB Converter

1

Pick a standard

Binary (1,024 MB = 1 GB) for RAM, Windows file sizes and most operating systems. Decimal (1,000 MB = 1 GB) for hard drive capacity, ISP bandwidth and the IEC 80000-13 SI definition. Default is binary.

2

Enter MB or GB

Type into either field and the other updates instantly. Quick picks cover 100 MB, 500 MB, 1,000 MB, 1,024 MB, and larger values up to 100,000 MB.

3

Read the result

Default is 4 decimal places. The 7.4% gap between binary and decimal grows by 7.4% at every level — 1 TB is 1,024 GB binary or 1,000 GB decimal.

Hard drive math: a "1 TB" drive really is 1012 bytes. Windows shows it as ~931 GB because Windows treats GB as binary (230).
RAM math: "16 GB RAM" means 16 GiB (binary) = 17.18 × 109 bytes. RAM manufacturers always sell in binary; the label is just labelled "GB."

Formulas

Two standards compete. The decimal (SI) standard uses powers of 10: 1 MB = 106 bytes, 1 GB = 109 bytes. The binary (IEC 80000-13) standard uses powers of 2: 1 MiB = 220 bytes, 1 GiB = 230 bytes. Both are correct — just for different contexts.

Decimal (SI)
$$ \text{GB} = \frac{\text{MB}}{1000} $$
Used by hard-drive and SSD manufacturers, ISPs, and the SI prefix system. 1 GB = 1,000 MB = 109 bytes.
Binary (IEC 80000-13)
$$ \text{GiB} = \frac{\text{MiB}}{1024} $$
Used by RAM manufacturers, Windows file sizes and most operating systems. 1 GiB = 1,024 MiB = 230 bytes = 1,073,741,824 bytes.
Reverse
$$ \text{MB} = \text{GB} \times 1000;\; \text{MiB} = \text{GiB} \times 1024 $$
Multiply by 1,000 (decimal) or 1,024 (binary) to convert gigabytes back to megabytes.
Decimal Unit Definitions
$$ 1 \text{ MB} = 10^6 \text{ B};\; 1 \text{ GB} = 10^9 \text{ B};\; 1 \text{ TB} = 10^{12} \text{ B} $$
SI prefixes mean powers of 10. NIST and IEC both endorse this for digital storage when sold by manufacturers.
Binary Unit Definitions
$$ 1 \text{ MiB} = 2^{20} \text{ B};\; 1 \text{ GiB} = 2^{30} \text{ B};\; 1 \text{ TiB} = 2^{40} \text{ B} $$
IEC binary prefixes (kibibyte, mebibyte, gibibyte, tebibyte) were defined in 1998 in IEC 60027-2, now IEC 80000-13.
The 7.4% Gap
$$ \frac{2^{30}}{10^9} = 1.0737...,\; \frac{2^{40}}{10^{12}} = 1.0995... $$
Each step up the prefix ladder widens the binary/decimal gap. At the GB level it is 7.37%. At TB it is 10.0%. At PB it is 12.6%.

Reference

Megabytes to Gigabytes — Decimal vs Binary
MBGB (decimal)GiB (binary)Difference
100 MB0.100 GB0.0931 GiB−6.9%
500 MB0.500 GB0.4657 GiB−6.9%
1,000 MB1.000 GB0.9313 GiB−6.9%
1,024 MB1.024 GB1.0000 GiB+2.4%
2,000 MB2.000 GB1.8626 GiB−6.9%
5,000 MB5.000 GB4.6566 GiB−6.9%
10,000 MB10.00 GB9.3132 GiB−6.9%
50,000 MB50.00 GB46.566 GiB−6.9%
100,000 MB100.0 GB93.132 GiB−6.9%
500,000 MB500.0 GB465.66 GiB−6.9%
1,000,000 MB1.000 TB0.9095 TiB−9.1%

Who uses which standard?

A practical guide to where binary versus decimal is the published unit.

Storage and bandwidth
ContextStandard
Hard drive labelDecimal
SSD labelDecimal
USB stick labelDecimal
Cloud storageDecimal
ISP bandwidthDecimal
Mobile data planDecimal
Memory and OS
ContextStandard
RAM sizeBinary
Windows file sizeBinary
macOS (since 10.6)Decimal
Linux df -hBinary
Linux df -HDecimal
iOS storageDecimal

Note: a "1 TB" drive contains exactly 1012 bytes by the manufacturer’s label, but Windows displays it as 931 GB because it interprets GB as 230 bytes. No bytes are missing — just different units.

Article — MB to GB Converter

MB to GB: decimal versus binary

There are two valid answers to "how many MB in a GB." In the decimal (SI) standard used by drive manufacturers and internet providers, 1 GB = 1,000 MB. In the binary (IEC 80000-13) standard used by RAM makers and the Windows file-size display, 1 GiB = 1,024 MiB. Both are correct. The two definitions differ by 7.4% at the GB level, which is why a 1 TB drive shows up as 931 GB in Windows Explorer.

The converter above offers both standards with a single toggle. The article below covers why two standards exist, which industries use which, and how to read a Windows drive size that disagrees with the label.

How many MB in a GB

1,000 in the decimal standard. 1,024 in the binary standard. The relationship is fixed in each system but the systems themselves are different. The IEC 80000-13 standard formally defines:

  • 1 MB (megabyte, decimal SI) = 106 = 1,000,000 bytes
  • 1 GB (gigabyte, decimal SI) = 109 = 1,000,000,000 bytes
  • 1 MiB (mebibyte, binary IEC) = 220 = 1,048,576 bytes
  • 1 GiB (gibibyte, binary IEC) = 230 = 1,073,741,824 bytes
  • 1 TB = 1012 bytes; 1 TiB = 240 bytes

The decimal-to-binary gap is 4.86% at the MB level (1 MiB = 1.0486 MB) and 7.4% at the GB level (1 GiB = 1.0737 GB). It grows wider at each step because the ratio compounds.

The MB-to-GB formulas

Both formulas are simple. The trick is knowing which one applies:

MB-to-GB conversion
GB = MB ÷ 1,000 Decimal (SI)
GiB = MiB ÷ 1,024 Binary (IEC)
MB = GB × 1,000 Reverse decimal
MiB = GiB × 1,024 Reverse binary

Drive labels and ISP plans use decimal. RAM modules and Windows file sizes use binary. macOS since version 10.6 uses decimal across the operating system. Linux defaults to binary in df -h but offers decimal in df -H. iOS shows decimal storage; Android is inconsistent across versions.

Why two MB-to-GB standards exist

The decimal MB-to-GB convention is the natural one for SI units. The "mega" prefix has meant 106 since the 1870s, when SI was first formalised; "giga" has meant 109. Drive manufacturers, ISPs and any industry doing engineering in SI-compatible units treats megabyte and gigabyte the same way.

The binary convention came from early computing. Random-access memory is built from chip die areas that are powers of 2, so 1,024 bytes is the natural unit. Programmers in the 1960s and 70s started using "K" to mean 1,024 instead of 1,000. The convention spread to "M" = 1,048,576 and "G" = 1,073,741,824. By the 1990s the prefixes meant different things in different industries.

Did you know

In 1998 the International Electrotechnical Commission published IEC 60027-2 (now IEC 80000-13) introducing the binary prefixes: kibibyte (KiB), mebibyte (MiB), gibibyte (GiB), and tebibyte (TiB). The goal was to give binary values a distinct notation so MB could go back to meaning 106 only. Linux adopted the new prefixes; Windows did not. Twenty-eight years later most consumers have never heard of them.

MB to GB for hard drives and SSDs

Every hard drive and SSD on the market is labelled in decimal. A "1 TB" drive contains exactly 1012 = 1,000,000,000,000 bytes. Windows, however, calculates capacity in binary, dividing by 230 instead of 109. The same drive then shows up as 1,000,000,000,000 / 1,073,741,824 = 931.32 GiB. Most users see "931 GB" because Windows mislabels the binary value as GB instead of GiB.

This is the source of the long-running "missing space" complaint. The bytes are not missing; the manufacturer used the decimal convention and Windows used the binary one. The class-action lawsuits in the mid-2000s against Western Digital, Seagate and Apple all settled on the same outcome: manufacturers must explain the difference in documentation, but the labelling stays.

"Missing" gigabytes are not really missing

A 500 GB drive holds 500 × 109 = 5 × 1011 bytes (466 GiB). A 1 TB drive holds 1012 bytes (931 GiB). A 2 TB drive holds 2 × 1012 bytes (1.82 TiB). In all cases the bytes are there; only the display unit is different.

Binary MB to GB for RAM and OS

RAM uses binary. A "16 GB" stick of memory really holds 16 GiB = 17.18 × 109 bytes — almost 7% more than a "16 GB" hard drive would. The discrepancy never causes complaints because RAM is sold by its binary value across the entire industry and Windows reports the same number. The labelling lie cancels out.

Operating systems are split. Windows reports binary file sizes labelled as MB and GB. macOS switched to decimal in version 10.6 (2009), so an iCloud storage plan of "200 GB" really is 200 × 109 bytes. Linux gives both via df -h (binary) and df -H (decimal). iOS uses decimal throughout.

MB to GB and internet bandwidth

Internet bandwidth is reported in bits per second (Mbps, Gbps), and the prefixes are decimal. A "100 Mbps" plan means 100 × 106 bits per second = 12.5 megabytes per second. Mobile data plans likewise use decimal: a "1 GB" plan provides 109 bytes of transfer.

The bits-versus-bytes confusion is separate from MB-to-GB. 8 bits = 1 byte. A 100 Mbps line transfers 100/8 = 12.5 MB/s decimal. The full-throughput download of a 1 GB file on a 100 Mbps connection takes 1,000 / 12.5 = 80 seconds, assuming no overhead.

KiB, MiB, GiB: the IEC prefixes

The IEC binary prefixes solve the ambiguity by adding a vowel: kibi for "kilo binary," mebi for "mega binary," gibi for "giga binary." The symbols add an "i": KiB, MiB, GiB, TiB. The values: 210, 220, 230, 240.

Adoption is partial. Most Linux distributions display KiB and MiB by default. Windows continues to display GB for binary values. Browsers, smartphones, console games and most consumer-facing apps stick with the GB label regardless of which underlying definition they are using. For serious engineering work, the IEC prefixes are the unambiguous choice.

Tip

If a number could be either binary or decimal, look at the source. Hardware label = decimal. RAM = binary. ISP plan = decimal. Windows file-size display = binary. macOS file-size display = decimal. When you control the format, use MiB/GiB/TiB for binary to remove the ambiguity.

MB-to-GB mistakes to avoid

Assuming 1 GB = 1,024 MB everywhere. The 1,024 ratio is binary only. Drive specs and bandwidth are decimal — 1,000 MB per GB.

Confusing the missing-space symptom with a defect. A "1 TB" drive labelled as 931 GB in Windows has no defect. The bytes are all there; Windows just reports them in binary.

Mixing bits and bytes. 100 Mbps is 12.5 MB/s, not 100 MB/s. The capital B means bytes; lowercase b means bits.

Treating MB and MiB as interchangeable in a technical specification. They differ by 4.86% at the MB level and 7.4% at the GB level. For storage capacity planning, the difference is real money.

FAQ

It depends on the standard. Decimal (SI): 1 GB = 1,000 MB. Binary (IEC): 1 GiB = 1,024 MiB. Drive manufacturers use decimal; RAM makers and Windows use binary. The 2.4% gap accumulates: 1,024 MB binary is the same as 1.024 GB decimal.
The drive really has 1012 = 1,000,000,000,000 bytes (decimal TB). Windows calculates GB as 230 = 1,073,741,824 bytes (binary GiB). 1,000,000,000,000 ÷ 1,073,741,824 = 931.32 GiB. No bytes are missing — just different units.
In binary (IEC), 1,024 MiB = 1 GiB. In decimal (SI), 1,024 MB = 1.024 GB. The right answer depends on which standard you are using. If a tech-product label says “1024 MB,” check whether the context is binary (RAM, Windows) or decimal (drives, network).
1 MB = 1,000,000 bytes (decimal SI). 1 MiB = 1,048,576 bytes (binary IEC). The difference is 4.86%. IEC introduced MiB in 1998 to remove the long-standing MB ambiguity, but most consumer software still labels binary values as “MB.”
Decimal: divide by 1,000. 5,500 MB = 5.5 GB. Binary: divide by 1,024. 5,500 MB = 5.371 GiB. For mental math, decimal is far easier — just shift the decimal three places.
RAM is built on chip die areas that are powers of 2, so 16 binary GiB (= 17.18 × 109 bytes) is a clean physical quantity. Selling it as “17.18 GB” decimal would confuse customers. The industry standardised on calling it “16 GB” even though the value is binary.
IEC 80000-13:2008 (replacing the 1998 IEC 60027-2 amendment) formally defines MB as 106 bytes and MiB as 220 bytes. The standard recommends using MiB / GiB for binary values to remove ambiguity. Industry adoption is partial: Linux uses it, Windows does not.
1,000,000,000 bytes in decimal (SI) GB. 1,073,741,824 bytes in binary (IEC) GiB. The difference is 7.37%, which is the gap between 230 and 109.