How many megabytes are in a gigabyte? It depends on who is counting. Storage makers, network engineers and the International System of Units use decimal prefixes: 1 GB is exactly 1,000,000,000 bytes. Many operating systems and memory chips count in powers of two, where the proper name is the gibibyte (GiB), 1,073,741,824 bytes. Both are legitimate; mixing them up is what makes a new drive look "smaller" than advertised.
This converter handles both families plus bits, from a single bit up to petabytes and pebibytes. The arithmetic is done with exact integer maths rather than floating point, so converting 1 TB to GiB gives the true decimal expansion instead of a rounded approximation. A table shows the same quantity in all 22 units at once, which is handy when you need a value in megabits for a network link and in mebibytes for a file system.
If what you really need is how long a file takes to transfer, the download time calculator uses these same units together with connection speeds.
How to use this calculator
- Type the value you want to convert (whole or decimal, up to 10^15).
- Choose the unit you are converting from: bits or bytes, decimal (kB, MB, GB…) or binary (KiB, MiB, GiB…).
- Choose the unit you are converting to.
- Read the result. When the exact value has more than 12 significant digits, the headline is rounded and the full exact value is shown just below.
- Scroll the table to see the same quantity in every unit, and open the steps to follow the conversion through bits.
The formula
Each unit is a fixed number of bits. With the size of unit in bits:
Decimal (SI) prefixes: , , , , . Binary (IEC) prefixes: , , , , . And .
Because every factor is a product of powers of 2 and 5, the quotient always has a finite decimal expansion, which the calculator writes out exactly.
Worked example
Why a 1 TB drive shows as 931 GiB. The maker sells bytes. An operating system that divides by shows:
That is about 931.32 GiB, often displayed as "931 GB". Nothing is missing: the same bytes are counted with a larger unit.
Other quick checks: 1 GB = 1,000 MB, 1 GiB = 1,024 MiB, a 256 GB phone holds 238.42 GiB, a 2 TB disk is 1.819 TiB, and 500 megabits are 62.5 megabytes.
Decimal versus binary units
| Decimal (SI) | Bytes | Binary (IEC) | Bytes | Gap |
|---|---|---|---|---|
| kB | 1,000 | KiB | 1,024 | 2.4 % |
| MB | 1,000,000 | MiB | 1,048,576 | 4.9 % |
| GB | 10^9 | GiB | 1,073,741,824 | 7.4 % |
| TB | 10^12 | TiB | 1,099,511,627,776 | 10 % |
| PB | 10^15 | PiB | 1,125,899,906,842,624 | 12.6 % |
The gap grows with each step, which is why the difference is barely noticeable on a USB stick but obvious on a multi-terabyte drive. The binary prefixes were standardised by the IEC in 1998 precisely to end the ambiguity; NIST and the SI keep k, M, G for powers of ten only.
Bits or bytes?
A bit (lowercase b) is a single 0 or 1; a byte (uppercase B) is 8 bits. Internet plans and network gear are rated in bits per second (Mbit/s, Gbit/s), while file sizes are in bytes. Divide a megabit figure by 8 to get megabytes: a 100 Mbit/s line moves at most 12.5 MB of data per second, before protocol overhead. Memory chips are traditionally sized in binary units, so an "8 GB" RAM module actually holds 8 GiB.
Frequently asked questions
How many MB are in a GB?
Exactly 1,000 MB in decimal units. In binary units, 1 GiB is 1,024 MiB. Windows labels binary units as "GB" and "MB", so it divides by 1,024 while most drive makers and macOS divide by 1,000.
Why does my 1 TB hard drive only show 931 GB?
The drive holds 10^12 bytes. Windows divides that by 1,073,741,824 (2^30) and shows about 931, calling the unit "GB" when it is really GiB. Formatting overhead and recovery partitions take a little more, but the bulk of the "missing" space is just the unit.
Is a kilobyte 1,000 or 1,024 bytes?
By the SI and IEC standards, a kilobyte (kB) is 1,000 bytes and a kibibyte (KiB) is 1,024 bytes. The older habit of using KB for 1,024 bytes is still common in software, so check which convention a program uses.
How do I convert megabits to megabytes?
Divide by 8, because a byte has 8 bits. 80 Mbit = 10 MB. Choose Mbit as the "from" unit and MB as the "to" unit to do it here.
Are the results exact?
Yes. The calculator works with whole-number arithmetic on bits, and because all factors are powers of 2 and 10 every result terminates. Long results are rounded to 12 significant digits for display, with the exact value shown separately.
Sources
- NIST — Prefixes for binary multiples (IEC 60027-2 / IEC 80000-13)
- BIPM — The International System of Units (SI Brochure), SI prefixes
Last updated: