1001Ferramentas
Calculators

Web Performance Budget Calculator

Work out how many KB a page can weigh to load within a target time on a given connection. It subtracts connection setup latency and shows where to cut.

Current page weight (KB)

How many KB your page is allowed to weigh

A performance budget is a commitment that the page will not exceed a certain weight. It works because it inverts the question: instead of measuring the time once everything is built and trying to patch it, you set the ceiling first and every new resource has to fit. When somebody wants to add a 180 KB library, the conversation stops being about taste and starts being about what comes out to make room.

Enter the target time and the connection and the page works out how many KB fit. Fill in the current weight by resource type and it compares against the budget, estimates the load time and sorts the resources heaviest first — which is where cutting starts. The connection profiles are the ones used by auditing tools, and there is an option to enter your own throughput and latency.

The part usually forgotten is latency. Before the first useful byte arrives, DNS has to resolve, the connection has to open, TLS has to negotiate and the response has to come back — four round trips in the figure used here. On slow 3G, at 400 ms per round trip, that consumes 1.6 seconds before any content. Ignoring that share inflates the budget by 25% or more, which is why the page subtracts it before dividing.

Frequently asked questions

What target time should I use?
A common starting point is the Largest Contentful Paint threshold: up to 2.5 seconds counts as good. Since this calculation covers loading every resource while LCP measures painting the largest element, using 3 seconds as the target here tends to give a budget consistent with that goal.
Why does the calculation use four round trips?
Because that is what a fresh connection typically spends: a DNS lookup, the TCP handshake, the TLS negotiation and the request itself. It is an approximation — cached DNS, a reused connection or HTTP/3 spend less, and a chain of redirects spends considerably more. For budgeting, erring conservatively is the right call.
Should the budget be in compressed KB or uncompressed?
In transferred bytes, meaning already compressed — that is what occupies the network and what the browser network tab reports in its size column. Take care reading build reports: most give the pre-compression size, which for JavaScript tends to be three to four times larger.

Related Tools

The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.