Performance Budget Calculator
Pick a connection type and a target load time and get the total transfer budget in kilobytes, with a suggested split between JavaScript, images, CSS, fonts and HTML.
Use the tool
Why this tool exists
"Make it fast" is not a requirement. A performance budget turns it into a number: with this connection and a five-second target, your page may weigh no more than so many kilobytes. A budget stops weight creeping up by a library at a time, and gives reviews something to measure.
This calculator takes the speed and latency of a chosen connection profile, subtracts the round trips before the first byte, and converts the remaining time into a download budget. It then suggests how to spend it across asset types. The maths is ideal-case, so real throughput is lower and your budget should be tighter. It runs locally.
How to use it
- Choose a connection profile: slow-3g, slow-4g (1.6 Mbps, 150 ms; formerly called Fast 3G in DevTools), 4g or wifi.
- Set the target load time in seconds.
- Set the number of round trips before the first byte arrives, covering DNS, TCP, TLS and the request.
- Read the total budget in KB and the suggested split by asset type.
Frequently asked questions
Which numbers do the connection profiles use?
Slow 3G is 0.4 Mbps with 400 ms latency, fast 3G 1.6 Mbps with 150 ms, 4G 9 Mbps with 70 ms and Wi-Fi 30 Mbps with 20 ms. They are rough profiles in line with common testing presets.
Why does it say the target is eaten by latency?
Round trips times latency already use the whole target time, leaving no time to transfer anything. Raise the target, cut round trips with a CDN or connection reuse, or choose a faster profile.
Is the budget compressed or uncompressed size?
Compressed transfer size, as sent over the network. JavaScript also costs parse and execution time, and the tool notes roughly 3.5 times the compressed size as source.
Is the suggested split a rule?
No. It uses 35 percent for JavaScript and images each and 10 percent for CSS, fonts and other. Adjust it to your page, and measure with real tools.