Start a project

Tool 38 of 100 · Performance

Performance Budget Calculator

Choose how fast your page should load on a given network and get a byte budget for HTML, CSS, JavaScript, images and fonts, compared with what you ship now.

Performance Budget Calculator at a glanceIllustration: 1, A target time; 2, processed in your browser; 3, A byte budget.Performance Budget Calculator2.5 s1A target time3A byte budget2In yourbrowser
1 A target time 2 processed on your device 3 A byte budget

Performance Budget Calculator

Goal

TypeShare of budget (%)Now (KB, compressed)
HTML
CSS
JavaScript
Images
Fonts
Video and audio
Third-party

Budget

TypeBudgetNowStatus

Estimated full load on each network

    Model: 3 round trips to connect (DNS, TCP, TLS), 1 for the HTML, 1 more per level of critical requests, then the bytes at the network's speed. Real pages also wait on CPU, so measure with Lighthouse or field data too.

    Lighthouse budget.json

    budget.json

    01

    What it does

    Works back from a load-time goal on a chosen network to byte budgets per resource type, and writes a Lighthouse budget.json.

    • Load-time goal on 3G, 4G, cable or custom networks
    • Round trips, TLS and extra hosts in the model
    • Budget split across HTML, CSS, JS, images and fonts
    • Compare with your current sizes

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    Budgets and a Lighthouse budget.json, with a Copy and a Download button on every result.

    • Performance
    • Budgets
    • Lighthouse

    Why it matters

    Pages get slower one 'small' addition at a time: a tag manager here, a web font there. A performance budget sets the limit up front, so every new script has to fit or replace something.

    This calculator works backwards from a goal, such as 'interactive in 3 seconds on 4G', to the bytes you can afford, using a simple network model it explains line by line. The result is an estimate to plan with, not a measurement, and it exports as a Lighthouse budget file for your CI.

    How it works

    1. InputA load-time target and a network
    2. In your browserRound trips taken off, the rest split by type
    3. OutputA budget per type and a Lighthouse file

    Where it fits in a designer's workflow

    1. Plan
    2. Design
    3. Build
    4. Test
    5. Launch
    Planning a fast site before building it.

    By the numbers

    Page weight that loads in 3 seconds on each networkSlow 3G: 9.8 KB; Slow 4G (Lighthouse mobile): 390.0 KB; Fast 4G: 2834.5 KB; Cable / fibre: 17456.1 KBSlow 3G9.8 KBSlow 4G (Lighthouse mobile)390.0 KBFast 4G2834.5 KBCable / fibre17456.1 KB
    Calculated with this tool's own model: connection setup (DNS, TCP and TLS round trips) is taken off first, then the rest of the time is filled at the network's speed. On slow 3G the handshakes eat nearly all of it. Source: Lighthouse throttling.
    Show the numbers as a table
    NetworkBytes in 3 s
    Slow 3G10,000
    Slow 4G (Lighthouse mobile)399,360
    Fast 4G2,902,500
    Cable / fibre17,875,000

    How to use it

    1. Set the load-time goal and the network.
    2. Adjust round trips and extra hosts to match your page.
    3. Enter what each resource type weighs now.
    4. Download budget.json for Lighthouse CI.

    FAQ

    How accurate is the estimate?

    It's a planning model: bandwidth, latency and round trips, but no CPU time or caching. Real pages need measuring with Lighthouse or field data.

    Why does JavaScript get a smaller share?

    Bytes of JavaScript cost more than bytes of images, because they also have to be parsed and run, which is slow on mid-range phones.

    What network should I plan for?

    Your users' slower devices. A mid-range Android on 4G is a common baseline for UK sites.

    How do I use budget.json?

    Pass it to Lighthouse with --budget-path, or use it in Lighthouse CI to fail a build that goes over.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk