ScienceComputer Science

Bandwidth
calculator.

Work out how long a download takes, how much data a stream uses, or the speed you need.

How it's worked out

Internet speeds are sold in bits per second, while files are measured in bytes, and a byte is 8 bits. So the first step is always to turn the file size into bits. Then divide by the real speed: the plan speed less a share lost to overhead, which covers the headers on every packet and any data sent twice.

real speed\displaystyle \text{real speed}=speed×(1−overhead %100)\displaystyle {}=\;\text{speed} \times \left(1 - \frac{\text{overhead \%}}{100}\right)
time\displaystyle \text{time}=bytes×8real speed\displaystyle {}= \frac{\text{bytes} \times 8}{\text{real speed}}

At 100 Mbps with no overhead, 1 GB takes 1 min 20 s. The overhead is set to 6% to start; set it to 0 for the bare line rate, or use a figure you measured.

File size from a bitrate runs the same sum the other way. A stream or a recording uses a steady number of bits each second, so multiply by the seconds and divide by 8.

size in bytes\displaystyle \text{size in bytes}=bitrate×seconds8\displaystyle {}= \frac{\text{bitrate} \times \text{seconds}}{8}

The speed needed for a deadline is the size in bits over the time you have, scaled up to cover the overhead. The working shows each step for your numbers and then runs the answer back to the size or time you started from.

Network speeds always use decimal prefixes, so 1 Mbps is 1,000,000 bits a second, as NIST notes. Storage can be either. A gigabyte (GB) is 1,000,000,000 bytes, while a gibibyte (GiB) is 2 to the power 30, or 1,073,741,824 bytes. That is why a 1 TB drive shows as about 931 GB in Windows, which counts in GiB but labels them GB.

Worked examples

Jordan waits on a 4 GB game update

Jordan's plan is 100 Mbps. The update is 4 GB, which is 32,000,000,000 bits. Less 6% overhead, the line carries 94 Mbps, so the update takes about 5 min 40 s. With no overhead at all it would be 5 min 20 s.

The game launcher shows the speed in megabytes, so Jordan sees about 11.75 MB/s, not 100. On a 1 Gbps plan the same update would take 34 s, if the game's servers can keep up.

Open this example in the tool

Mei checks what an evening of 4K streaming uses

Netflix recommends 15 Mbps for 4K. Mei watches for 3 hours, which is 10,800 seconds, so the stream uses about 20.3 GB, or 18.9 GiB as her laptop would count it.

An hour of Full HD at 5 Mbps is 2.25 GB, against 6.75 GB for an hour of 4K. A 1 TB monthly cap holds about 6 days 4 h of 4K viewing, if nothing else uses the line.

Open this example in the tool

Ravi plans a 50 GB backup overnight

Ravi's office backup is 50 GB and must finish in the 8 hours before morning. That is 400,000,000,000 bits over 28,800 seconds, or 13.9 Mbps of real data. With 6% overhead the line must run at 14.8 Mbps.

This is upload speed, which on many home plans is far below the download speed. At 10 Mbps of upload, the same backup takes 11 h 49 min, so it would still be running in the morning.

Open this example in the tool

Reading your result

Divide Mbps by 8 for MB/s. A 100 Mbps plan moves at most 12.5 megabytes a second before overhead. Browsers and game launchers report megabytes, so this is the number to compare with what you see.

The answer is a best case for the speed you enter. Wi-Fi, a busy server, other people on the line and peak hours all cut the real figure. For a fair estimate, run a speed test on the device you will use, near the time you plan to transfer, and enter that result.

Plan speed changes the time in proportion. Doubling the speed halves the time. The same 4 GB takes 56 min 44 s at 10 Mbps and 34 s at 1,000 Mbps. The table of plan speeds gives the times between.

Streaming figures are recommended speeds. Netflix lists 3 Mbps for 720p, 5 Mbps for 1080p and 15 Mbps for 4K; YouTube suggests 8 Mbps for a 1080p upload at 30 frames a second and 35 to 45 Mbps for 4K. Services lower the quality to suit the line, so real use can be less.

Common mistakes

  • Mixing up Mb and MB. A small b is bits and a capital B is bytes. A 50 MB file on a 50 Mbps line takes 8.0 s, not 1 second.
  • Using GB when the file is in GiB. A file Windows lists as 1 GB is really 1 GiB, and it takes 1 min 26 s at 100 Mbps rather than 1 min 20 s.
  • Planning an upload with the download speed. Cable and DSL plans often upload at a small share of their download speed. Check the upload figure for backups, video calls and large sends.
  • Leaving no margin on a deadline. The answer assumes the line stays busy the whole time. Add room for the server, other devices and a restart.

Questions people ask

Your plan is in megabits and the download window is in megabytes, 8 times larger. 1,000 Mbps is 125 MB/s before overhead, so a reading a little under that is close to the full line. Far less points to Wi-Fi, the server or the device.

Sources