Calculate bits per second from a data amount and transfer time, or convert a bit rate between bps, kbps, Mbps, Gbps and bytes per second.

MB and GB are decimal (1 MB = 1,000,000 bytes). Choose MiB or GiB for sizes counted in 1024s, as some operating systems show.

Optional settings

Calculator Functions

FunctionWhat it doesWhat it requires
Bits per second from data and timeFinds the average data rate of a transfer from its size and durationRequires the data amount and the transfer time
Convert a bit rate (bps, Mbps, MB/s)Converts a data rate from one unit to anotherRequires the bit rate, its unit and the unit to convert to

The data amount can be in bits, bytes, kilobits, kilobytes, megabits, megabytes, mebibytes, gigabits, gigabytes, gibibytes, terabits or terabytes, and the time in seconds, minutes, hours or days. Both functions have a result unit setting, and every result also lists the same rate in bps, kbps, Mbps, Gbps, B/s and MB/s.

Bits Per Second Formulas

bps = D ÷ t
bpsAverage data rate in bits per second
DData amount in bits. One byte is 8 bits [1]
tTransfer time in seconds

Bits per second from data and time

The data amount is converted to bits and the time to seconds, and the first is divided by the second. A 50 MB file sent in 120 seconds is 400,000,000 bits ÷ 120 s = 3,333,333.33 bps, or 3.33 Mbps.

MB and GB are decimal units: 1 MB is 1,000,000 bytes and 1 GB is 1,000,000,000 bytes. MiB and GiB are counted in powers of 1,024: 1 MiB is 1,048,576 bytes and 1 GiB is 1,073,741,824 bytes [1]. A file size reported in 1,024s belongs in MiB or GiB. The same 50 units entered as MiB give 419,430,400 bits and 3,495,253.33 bps, about 4.9% more.

Convert a bit rate (bps, Mbps, MB/s)

R₂ = R₁ × F₁ ÷ F₂

R₁ is the rate entered, F₁ is the number of bits per second in one of its units and F₂ is the number of bits per second in one of the result units. Rates use decimal prefixes, so 100 Mbps is 100,000,000 bps, which is 12.5 MB/s.

1 unit ofBits per second
bps1
kbps1,000
Mbps1,000,000
Gbps1,000,000,000
B/s (bytes per second)8
kB/s8,000
MB/s8,000,000
GB/s8,000,000,000

A lowercase b stands for bits and an uppercase B for bytes, so a rate in Mbps is eight times the same rate in MB/s.

Limits of This Estimate

  • The result is the average rate over the whole transfer. It does not show peaks, stalls or the rated speed of the connection.
  • Only the data amount entered is counted. Protocol overhead, retransmitted packets and compression are not added or removed.
  • Sizes counted in 1,024s are often labeled MB or GB [1]. Entering such a size as MB understates the rate by about 4.6%, and as GB by about 6.9%.

Sources

  1. NIST, Prefixes for Binary Multiples: 8 bits per byte, decimal values of MB and GB, binary values of MiB and GiB, and the mixed use of megabyte