Quick Unit Convert
← Back to Blog

Bits and Bytes: Decoding Data Rates and File Sizes

8 min read
DataStorageComputingReferenceUnit Conversion

Few mismatches cause more confusion than the one between the units on your internet plan and the units on your download window. A provider advertises 100 megabits per second, a file manager reports a 2 gigabyte movie, and the download seems to crawl compared to the headline number. Nothing is broken. The culprit is that data rates are usually measured in bits while file sizes are measured in bytes, and a byte is eight bits. Understanding that single factor clears up most of the mystery.

This guide separates bits from bytes, lays out the exact factors between them and their multiples, and works through real examples including how long a download actually takes. It also addresses the second trap: the difference between the decimal units marketers use and the binary units your operating system often reports.

The bit and the byte

A bit is the smallest unit of digital information, a single binary digit that is either 0 or 1. It is abbreviated with a lowercase b. A byte is a group of eight bits, abbreviated with an uppercase B, and it is the fundamental unit most software uses to measure storage, because a single byte can represent one character of text or a value from 0 to 255. The relationship is exact and never changes: 1 byte equals 8 bits.

That factor of eight is the hinge of almost every data confusion. Network speeds are quoted in bits per second because signaling happens at the bit level, while files are measured in bytes because that is how storage is organized. So a connection rated at 8 megabits per second can, at best, deliver 1 megabyte per second, since you divide the bit rate by eight to get the byte rate.

Decimal versus binary multiples

The second source of confusion is how the prefixes kilo, mega, and giga are defined. In the decimal convention used by storage manufacturers and network providers, these are powers of ten: a kilobyte is 1,000 bytes, a megabyte is 1,000,000 bytes, and a gigabyte is 1,000,000,000 bytes. In the binary convention long used by operating systems, the same words have meant powers of two: 1,024 bytes, 1,048,576 bytes, and 1,073,741,824 bytes respectively.

To end the ambiguity, the binary units were given their own names and symbols: the kibibyte (KiB) is 1,024 bytes, the mebibyte (MiB) is 1,048,576 bytes, and the gibibyte (GiB) is 1,073,741,824 bytes. This is why a drive sold as 1 terabyte, meaning a trillion bytes, shows up as roughly 931 gibibytes in a file browser that divides by 1,024 three times. The bytes did not vanish; they were just counted in binary.

  • 1 byte = 8 bits exactly.
  • 1 kilobyte (KB) = 1,000 bytes; 1 kibibyte (KiB) = 1,024 bytes.
  • 1 megabyte (MB) = 1,000,000 bytes; 1 mebibyte (MiB) = 1,048,576 bytes.
  • 1 gigabyte (GB) = 1,000,000,000 bytes; 1 gibibyte (GiB) = 1,073,741,824 bytes.
  • 1 megabit (Mb) = 1,000,000 bits = 125,000 bytes = 0.125 megabytes.

Data rates: megabits versus megabytes

Internet and network speeds are almost always given in bits per second, with the common units being kilobits per second (kbps), megabits per second (Mbps), and gigabits per second (Gbps). The lowercase b signals bits. Because a byte is eight bits, you divide any bit rate by eight to find the equivalent byte rate, which is the number that predicts how fast a file actually downloads.

So a 100 Mbps connection delivers at most 100 divided by 8 = 12.5 megabytes per second. In practice overhead from protocols, shared bandwidth, and distance trims this further, but the factor of eight is the first and biggest adjustment. When a 12.5 MB per second figure feels slower than the 100 you were sold, the units, not the provider, are the main reason for the gap.

Worked conversions

Here are several conversions carried through step by step. Dividing or multiplying by eight is the move that turns a network figure into a file figure and back.

  1. Convert 100 Mbps to megabytes per second: 100 divided by 8 = 12.5 MB/s.
  2. Convert a 2 GB file to megabits: 2 times 1,000 = 2,000 MB, then times 8 = 16,000 megabits.
  3. Download time for a 2 GB file on 100 Mbps: 16,000 megabits divided by 100 = 160 seconds, about 2.7 minutes.
  4. Convert 500 GB to gibibytes: 500,000,000,000 bytes divided by 1,073,741,824 = about 465.7 GiB.
  5. Convert 25 Mbps to kilobytes per second: 25,000,000 bits divided by 8 = 3,125,000 bytes = 3,125 KB/s.

The third example is the one that matters most in daily life. To estimate a download time, convert the file size to the same unit as the connection speed, bits, then divide. Keeping both quantities in bits before dividing avoids the eightfold error that makes estimates wildly wrong.

A quick sanity check

Because the factor of eight points in one direction only, a simple check catches most mistakes. A byte figure is always smaller than the matching bit figure, and a bit figure is always larger than the matching byte figure. If you convert 100 megabits and get 800 megabytes, you multiplied when you should have divided. The byte is the bigger container, so it takes fewer of them to hold the same information, and converting bits to bytes should always shrink the number.

For the decimal-versus-binary question, remember that gibibytes are always fewer than the matching gigabytes for the same raw byte count, because you are dividing by a larger number, 1,073,741,824 instead of 1,000,000,000. That is why advertised capacities always look a little bigger than what the operating system reports.

Common mistakes to avoid

Data units trip people up in a small, repeatable set of ways, and knowing them in advance prevents most errors.

  • Confusing the lowercase b with the uppercase B. Mbps is megabits per second; MBps is megabytes per second, eight times larger.
  • Forgetting the factor of eight when estimating download times, which makes the estimate off by a factor of eight.
  • Mixing decimal and binary prefixes, so a 1 TB drive that stores a trillion bytes is mistaken for being faulty when it reads as 931 GiB.
  • Assuming advertised speed equals real throughput, ignoring protocol overhead and shared bandwidth that trim the delivered rate.
  • Rounding during multi-step conversions instead of carrying full byte counts until the final answer.

Practical tips for getting it right

A few habits make data conversion dependable, whether you are sizing a backup, estimating a download, or reading an internet plan.

  1. Check the case of the b first. Lowercase means bits, uppercase means bytes, and the whole answer hinges on it.
  2. Route everything through raw bits or raw bytes, then apply prefixes only at the end.
  3. To estimate download time, put file size and connection speed in the same unit, divide, and expect reality to run somewhat slower.
  4. Use the binary units KiB, MiB, and GiB when comparing against what your operating system reports, and decimal KB, MB, and GB when reading marketing figures.

Once you internalize that a byte is eight bits and that kilo can mean either 1,000 or 1,024 depending on who is counting, the gap between your internet plan and your download window stops being a mystery. Label every figure as bits or bytes, decimal or binary, and the numbers that once seemed to contradict each other line up exactly as they should.

Put it into practice

Stop doing the arithmetic by hand. Use our free, instant converter to get an exact answer, or jump straight to a related category below.

Keep exploring:more articlesHow it worksFAQ