Internet Speed Calculator Formula
Understand the math behind the internet speed calculator. Each variable explained with a worked example.
Formulas Used
Download Time
download_seconds = file_mb / speed_mbytesDownload Time (minutes)
download_minutes = file_mb / speed_mbytes / 60Speed in MB/s
speed_megabytes = speed_mbytesVariables
| Variable | Description | Default |
|---|---|---|
speed_mbps | Connection Speed(Mbps) | 100 |
file_size_gb | File Size(GB) | 5 |
speed_mbytes | Derived value= speed_mbps / 8 | calculated |
file_mb | Derived value= file_size_gb * 1024 | calculated |
How It Works
How Internet Speed Relates to Download Time
Internet speed is measured in megabits per second (Mbps), but file sizes are in megabytes (MB). There are 8 bits in a byte.
Formula
Speed (MB/s) = Speed (Mbps) / 8
Download Time (sec) = File Size (MB) / Speed (MB/s)
Worked Example
Download a 5 GB file on a 100 Mbps connection.
speed_mbps = 100file_size_gb = 5
- 01Speed in MB/s = 100 / 8 = 12.50 MB/s
- 02File size in MB = 5 x 1,024 = 5,120 MB
- 03Download time = 5,120 / 12.50 = 409.6 seconds
- 04In minutes = 409.6 / 60 = 6.8 minutes
Ready to run the numbers?
Open Internet Speed Calculator