Megabits vs Megabytes: Speed in Bits, Storage in Bytes
A megabit is 1 000 000 bits and a megabyte is 1 000 000 bytes, so one megabyte is eight megabits. Connection speeds are quoted in megabits per second and file sizes in megabytes, which is why 100 Mbps moves at most 12.5 MB/s.
What is the difference between megabits and megabytes?
A megabit (Mb) is 1 000 000 bits and a megabyte (MB) is 1 000 000 bytes, which is 8 000 000 bits.
The prefix is the same in both words. Mega means a million here, exactly as it does in megawatt, so the whole gap between the two units comes from what is being counted: single bits in one, bytes in the other. A byte is 8 bits, and that factor of eight carries straight through to the megabyte.
| Property | Megabit | Megabyte |
|---|---|---|
| Symbol | Mb | MB |
| Counts | bits | bytes |
| Size | 1000000 bits | 1000000 bytes |
| In bits | 1000000 | 8000000 |
| Per second | Mbps or Mb/s | MB/s or MBps |
| Usually quoted for | a connection speed | a file size or a drive |
Both units measure an amount of data, so one always converts into the other with the same fixed factor, whatever the data is. A megabit is not a slower megabyte or a different kind of file; it is an eighth of the size. You can convert a size between bits, bytes and megabytes and read the factor in the working.
To check a figure by hand, count a number of bits as bytes and read the division by eight in the working. Going the other way, turn a byte count back into bits, which multiplies by eight.
What do lowercase b and uppercase B mean?
A lowercase b is the bit and an uppercase B is the byte, so Mb and Mbps count megabits while MB and MB/s count megabytes.
The convention is written down in JEDEC's dictionary of terms, which lists the bit as b and the byte as B. The M in front means the same in both, so the case of the one letter after it is the only thing that changes the size, and it changes it by a factor of eight.
NIST's table of prefixes is stricter still. It writes the bit out in full, as in kbit, and keeps B for the byte alone, so a rate written as 100 Mbit/s cannot be misread as bytes. When a label is typed all in capitals or all in lower case, the letters stop telling you which unit is meant, and the context has to: a rate from a network link is counted in bits, and a file on a disk is counted in bytes.
Why are internet speeds in megabits but file sizes in megabytes?
Each number is written in the unit its own specification counts in. A link is described by how many bits cross it each second, and a file is described by how many bytes it holds.
A data transfer rate uses decimal prefixes: 1 Mb/s is 1 000 000 bits per second.
JEDEC's dictionary gives that rate as its example of the decimal prefix, and NIST notes that telecommunications engineers use the megabit per second to mean a million bits per second. US broadband rules keep the same habit, and put the two units side by side:
47 CFR 54.308 states broadband speed in Mbps and data allowance in GB: at least 10 Mbps downstream, with a minimum usage allowance of 150 GB per month.
A file's size is counted in bytes: POSIX defines st_size, the size of a regular file, in bytes.
So the two numbers answer different questions. The plan speed says how fast data can move; the file size says how much of it has to move. Before you divide one by the other to estimate a download, both have to be in the same unit first.
How do you convert Mbps to MB/s?
Divide by 8. A rate in megabits per second becomes a rate in megabytes per second in the same way a count of bits becomes a count of bytes, because the "per second" is shared and only the unit in front of it changes.
To turn Mbps into MB/s, divide by 8; to turn MB/s into Mbps, multiply by 8.
- Take the rate in megabits per second: 100 Mbps.
- Divide by 8, the number of bits in a byte: 100 / 8 = 12.5.
- Write the result in megabytes per second: 12.5 MB/s.
- Check it the other way round: 12.5 x 8 = 100, which is the rate you started with.
100 Mbps is 12.5 MB/s before protocol overhead.
| Megabits per second (Mbps) | Megabytes per second (MB/s) |
|---|---|
| 1 | 0.125 |
| 8 | 1 |
| 25 | 3.125 |
| 100 | 12.5 |
| 500 | 62.5 |
| 1000 | 125 |
The divided figure is a ceiling for the link, not a promise for the file, because part of every packet is header rather than file:
Every IPv4 packet carries a header of at least 20 bytes and every TCP segment another 20, and those bytes use the link's rate without being part of the file.
That is why a real download reads somewhat under the divided figure. The unit a program counts in moves the number as well.
12.5 MB/s is the same rate as 11.92 MiB/s. The two figures differ because a megabyte and a mebibyte are not the same size.
Frequently Asked Questions
Is MBps faster than Mbps?
Neither is faster; they are two units for the same kind of speed. 1 MB/s is the same rate as 8 Mbps, so a large number in Mbps and a small one in MB/s can describe one connection.
How do gigabits and gigabytes relate to megabits and megabytes?
The same way, one prefix up. A gigabit is 1 000 000 000 bits and a gigabyte is 1 000 000 000 bytes, so a gigabyte is eight gigabits. 1 Gbps is 1000 Mbps and 125 MB/s before overhead.
How many MB is 1 Mbps?
1 Mbps is 0.125 MB/s, one eighth of a megabyte each second. The same division gives 3.75 MB/s for a 30 Mbps connection, before protocol overhead.
Is a megabit 1,000,000 or 1,048,576 bits?
1 000 000 on a network. NIST notes that telecommunications engineers use the megabit per second for a million bits per second. The binary unit has a name of its own: a mebibit (Mibit) is 1 048 576 bits.
Storage is one quantity among many; the unit converter family covers the rest.