Data transfer formula
Transfer time equals the total amount of data divided by the rate at which that data is transferred.
Keep units consistent
The most common mistake is dividing a value measured in bytes by a speed measured in bits per second without converting one of them first.
Example with gigabytes and megabits
A decimal 10 GB transfer contains 80 gigabits of data. At a theoretical 100 Mbps transfer rate, the idealized transfer time is approximately 800 seconds, or about 13 minutes and 20 seconds.
Bandwidth vs throughput
Bandwidth describes potential data-carrying capacity. Throughput describes the rate actually achieved. Real transfer time should therefore be based on effective throughput when that value is available.
What can reduce transfer speed?
- Network congestion
- Protocol overhead
- Wi-Fi interference
- Server or cloud-service limits
- Disk read and write performance
- Encryption or processing overhead
- Shared network usage
Uploads and downloads
Many internet connections have different upload and download speeds. Use the relevant direction's speed when estimating how long a transfer will take.
Large transfer planning
For backups, migrations and large datasets, it is useful to calculate both the theoretical time and a more conservative estimate using a lower expected throughput.
A mathematical transfer estimate assumes a sustained rate. Actual throughput can vary throughout a transfer.
Worked transfer-time example
Suppose a file is 5 GB using the decimal convention and the connection transfers data at 100 Mbps. Five gigabytes equals 40 gigabits, or 40,000 megabits. Dividing 40,000 megabits by 100 megabits per second gives a theoretical transfer time of 400 seconds, which is about 6 minutes 40 seconds.
Why megabits and megabytes cause confusion
Internet speeds are commonly advertised in megabits per second, written Mbps, while file sizes are commonly shown in megabytes, written MB. Because one byte contains eight bits, a 100 Mbps connection has a theoretical maximum of 12.5 MB per second before overhead and real-world limitations.
Theoretical speed and real throughput are different
A transfer-time formula assumes the selected speed is sustained for the entire transfer. In practice, protocol overhead, Wi-Fi conditions, network congestion, storage performance and the remote server can reduce throughput. The calculated time is therefore best treated as an estimate under the entered speed.
Uploads use the same basic relationship
The same size-divided-by-speed relationship can estimate upload time. However, many internet connections have a lower upload speed than download speed, so use the actual upload-rate figure rather than the advertised download rate when estimating an upload.
Common transfer-time mistakes
- Comparing MB with Mbps without accounting for the eight-bit difference.
- Using download speed to estimate an upload when the connection is asymmetric.
- Assuming advertised connection speed is guaranteed sustained throughput.
- Mixing decimal and binary file-size units without recognizing the difference.
