Internet Speed Formula: Mbps, Latency, and Jitter
Review the Mbps throughput formula, median latency, jitter, adaptive payload sizing, multi-stream sampling, transfer-time estimates, and test limits.
How do the Internet Speed Calculator formulas work?
This formula page defines the variables used by the Internet Speed Calculator, shows how those values are combined, and explains the order of operations behind the result. Use the worked steps to verify an estimate, compare scenarios, and understand which assumptions or rounding rules can affect the displayed answer.
Formula Overview
The calculator times completed application-data transfers between the browser and this site. It converts bytes and elapsed milliseconds into decimal megabits per second, then reports the median of three measured rounds. Latency and jitter come from a separate sequence of small requests.
Variable Definitions
- B: aggregate bytes completed during one measured round
- t: elapsed round time in milliseconds
- S: measured throughput in Mbps
- Lᵢ: one measured latency round trip in milliseconds
- J: median absolute change between adjacent latency samples
- P: payload bytes assigned to one concurrent stream
- n: number of parallel streams, configured as three
Throughput Formula
Multiplying bytes by eight converts them to bits. Dividing elapsed milliseconds by 1,000 converts time to seconds. Dividing by one million expresses the result in decimal megabits per second.
Convert Mbps to MB per Second
This is an idealized unit conversion. A real file transfer can be lower because of protocol overhead, application behavior, storage, congestion, and changing conditions.
Median Latency
The first latency request is a warm-up and is not included. The next eight round-trip times are sorted. Because there are eight samples, the calculator averages the fourth and fifth values:
Adjacent-Sample Jitter
The calculator first finds the absolute difference between each pair of adjacent latency samples, then reports the median of those seven differences:
This definition describes short-term variation within this test. Other tools may use a different jitter method.
Adaptive Payload Formula
A warm-up speed estimates how many bytes one stream should transfer during the target interval:
The value is clamped between configured minimum and maximum limits and rounded to the nearest 65,536-byte quantum. Download and upload use separate limits.
Multi-Stream and Median-Round Result
Each measured round runs three transfers in parallel. Their completed bytes are added, while elapsed time spans the whole round. After three rounds, the displayed download or upload speed is the median:
Estimated File Transfer Time
The result panel applies this estimate to 100 MB. It assumes the measured speed stays constant and does not add overhead.
Worked Throughput Calculation
If 10,000,000 bytes finish in 2,000 milliseconds:
Assumptions and Measurement Boundaries
- The browser can reach all same-origin test endpoints.
- The browser's monotonic high-resolution timer measures the complete transfer intervals.
- The route and network conditions represent only the test moment.
- The formula includes browser, request, protocol, routing, and server effects present during the interval.
- The result does not remove protocol overhead or measure packet loss and loaded latency.
- A localhost result measures local development behavior, not public internet service.
Corrections and Review
Report an issue or error in the calculator using the Contact Us page.