Web Performance Budget Calculator

Enter budgets and actual sizes for HTML, CSS, JavaScript, fonts and images, compare them, estimate load time per network and work back from a time goal.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Set budgets

    Enter a KB budget and request budget for each asset type.

  2. 2
    Enter actuals

    Type actual sizes or press Import actuals from HAR.

  3. 3
    Pick a network

    Choose a profile and setup round trips to see download times.

  4. 4
    Work from a goal

    Enter a target time and split the result into budgets.

  5. 5
    Check vitals

    Type your field LCP, INP and CLS and read the ratings.

  6. 6
    Export

    Download budget.json, CSV or a printable report.

About this tool

A performance budget is a limit your team agrees not to exceed, such as "no more than 170 KB of JavaScript" or "LCP under 2.5 seconds". This calculator helps you set and track one. You enter a budget and the actual transferred size for each asset type, plus request counts, and see where you are over. It estimates download time on the network profiles used by Lighthouse and Chrome DevTools, turns a time goal into a byte budget, rates your Core Web Vitals against Google's thresholds and writes a budget.json file that Lighthouse and Lighthouse CI can enforce.

Who it is for

Front-end leads setting targets for a project, developers checking whether a new library fits, agencies writing performance requirements into a contract, and students learning why page weight matters on mobile networks.

Network profiles

- Lighthouse mobile: 1.6 Mbps down, 150 ms round trip (the simulated slow 4G used for mobile scores). - Chrome DevTools Slow 3G, Slow 4G and Fast 4G presets. - WebPageTest Cable: 5 Mbps, 28 ms. - Lighthouse desktop: 10 Mbps, 40 ms.

How time is estimated

Download time = connection setup round trips (DNS, TCP and TLS, which you can set from 1 to 4) + the request round trip + transfer under TCP slow start: the first round trip carries 10 packets (14.6 KB) and each one after doubles, until the line's bandwidth is the limit. This is why small files are dominated by latency and why the first 14 KB matter so much.

From a time goal to a budget

Pick a network and a target in milliseconds and the tool finds the largest number of bytes that arrives in time over one new connection. The split button turns that into starting budgets: about 10 % HTML, 15 % CSS, 50 % JavaScript and 25 % fonts for the critical path.

Core Web Vitals

Enter your 75th-percentile field values. LCP is good up to 2.5 s and poor above 4 s, INP good up to 200 ms and poor above 500 ms, CLS good up to 0.1 and poor above 0.25. FCP (1.8 s, 3 s) and TTFB (0.8 s, 1.8 s) are shown as diagnostics.

Using budget.json

Download budget.json or copy it into your repository and run Lighthouse with --budget-path=budget.json, or add it to Lighthouse CI so a pull request that goes over budget is flagged.

Worked example

The sample budget totals 750 KB against an actual page of 1,044 KB. On the Lighthouse mobile profile the budget page downloads in about 4.4 s and the actual page in about 5.9 s. For a 3 s goal on that profile, roughly 463 KB can arrive over one connection, so JavaScript at 310 KB (budget 170 KB) is the first thing to cut.

Limits

The time model is a sequential worst case for one origin; real browsers download in parallel over several connections, use caches and are also slowed by CPU work, which byte counts do not capture. Use lab tools such as Lighthouse and field data from real users to confirm results.

Worked example

Budget 750 KB vs actual 1,044 KB: 4.4 s vs 5.9 s on Lighthouse mobile; 3 s goal allows about 463 KB.

Quick facts

Frequently asked questions

What is a good JavaScript budget?

Many teams aim for 150–200 KB of compressed JavaScript for mobile pages; test what your devices can parse quickly.

Which sizes should I enter?

Transferred (compressed) sizes, as shown in the DevTools Network panel or a HAR file.

Can it fill actual sizes for me?

Yes. Import actuals from HAR sums transfer sizes by type and counts third-party requests.

Why is my estimate slower than my real page?

Browsers fetch in parallel and reuse connections; the estimate is a deliberately cautious single-connection model.

What does budget.json do?

Lighthouse reads it and reports any resource type or timing that exceeds your budget.

Which Core Web Vitals thresholds are used?

Google's: LCP 2.5 s, INP 200 ms and CLS 0.1 for good; 4 s, 500 ms and 0.25 for poor.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages