Performance Budget Calculator
A performance budget is a set of limits your pages must not exceed, such as kilobytes of JavaScript, total page weight or Total Blocking Time, plus a minimum Lighthouse score. This calculator suggests budget and goal values from PerfDelta's measurements of real websites, grouped by platform or industry, and turns them into a configuration for Lighthouse CI.
Set your performance budget
Values per page type come from subpages of all sites in the statistics. Platform and industry groups apply to home pages only.
| Metric | Budget | Goal | Group median |
|---|---|---|---|
| Total page weight | 3,400 KB | 2,700 KB | 3,431 KB |
| JavaScript | 1,000 KB | 800 KB | 1,009 KB |
| Images | 1,050 KB | 800 KB | 1,053 KB |
| CSS | 75 KB | 60 KB | 80 KB |
| Fonts | 150 KB | 120 KB | 157 KB |
| Requests | 90 | 70 | 92 |
| Third-party services | 5 | 4 | 5 |
| Total Blocking Time | 250 ms | 200 ms | 265 ms |
| LCP (lab) | 4,000 ms | 2,500 ms | Google threshold |
| CLS (lab) | 0.25 | 0.10 | Google threshold |
| Lighthouse score (minimum) | 55 | 90 | 56 |
: your current value is above the group median. The budget therefore holds your current level so the build does not fail from day one. The goal sits below the median and shows where to lower the limit step by step.
Weights from all websites, Total Blocking Time and score from the industry. For this industry the score is an average, not a median.
PerfDelta monitoring tracks third-party services. Lighthouse CI counts requests rather than services, so the files leave this value out.
Source: website speed statistics, period 2026-11, 41,409 websites, mobile Lighthouse runs.
lighthouserc.json for Lighthouse CI (Lighthouse 12 and later)
{
"ci": {
"collect": {
"numberOfRuns": 3
},
"assert": {
"assertions": {
"resource-summary:total:size": [
"error",
{
"maxNumericValue": 3481600
}
],
"resource-summary:script:size": [
"error",
{
"maxNumericValue": 1024000
}
],
"resource-summary:image:size": [
"error",
{
"maxNumericValue": 1075200
}
],
"resource-summary:stylesheet:size": [
"error",
{
"maxNumericValue": 76800
}
],
"resource-summary:font:size": [
"error",
{
"maxNumericValue": 153600
}
],
"resource-summary:total:count": [
"warn",
{
"maxNumericValue": 90
}
],
"largest-contentful-paint": [
"error",
{
"maxNumericValue": 4000,
"aggregationMethod": "median-run"
}
],
"total-blocking-time": [
"error",
{
"maxNumericValue": 250,
"aggregationMethod": "median-run"
}
],
"cumulative-layout-shift": [
"error",
{
"maxNumericValue": 0.25,
"aggregationMethod": "median-run"
}
],
"categories:performance": [
"error",
{
"minScore": 0.55,
"aggregationMethod": "median-run"
}
]
}
}
}
}
budget.json (up to Lighthouse 11)
[
{
"path": "/*",
"timings": [
{
"metric": "largest-contentful-paint",
"budget": 4000
},
{
"metric": "total-blocking-time",
"budget": 250
},
{
"metric": "cumulative-layout-shift",
"budget": 0.25
}
],
"resourceSizes": [
{
"resourceType": "total",
"budget": 3400
},
{
"resourceType": "script",
"budget": 1000
},
{
"resourceType": "image",
"budget": 1050
},
{
"resourceType": "stylesheet",
"budget": 75
},
{
"resourceType": "font",
"budget": 150
}
],
"resourceCounts": [
{
"resourceType": "total",
"budget": 90
}
]
}
]
From the Solo plan
Turn the calculated budget into a check
The calculator gives you the numbers. In a plan they become a performance budget per project and URL: status in the report, a warning before the limit and an email when a page crosses it.
Performance budget vs. goal: two numbers with different jobs
The goal is where you want to be, for example an LCP under 2.5 seconds or a home page under 1 MB. The budget is the line you refuse to cross on the way there. Tammy Everts of SpeedCurve recommends setting the budget at the worst value of the last two to four weeks plus a small buffer. That way it catches regressions from day one instead of failing every build until the big refactoring is done.
The calculator follows this logic once you enter your own values: the budget becomes your value plus 5 percent. Enter the highest value of the last few weeks, not the best one. Without your own numbers it falls back to the median of the comparison group, since being heavier than the typical site on your platform is a clear warning sign. The goal sits 20 percent below the lower of the two, your value or the median.
Which metrics belong in a performance budget
Fewer is better. SpeedCurve calls it a minimum viable budget: a handful of metrics the team actually looks at. Start with size limits per resource type. They catch accidental regressions early, such as a new carousel library or an uncompressed hero image, long before the change shows up in field data. JavaScript deserves the strictest limit, because every kilobyte has to be downloaded, parsed and executed on the main thread.
Timing limits tie the budget to what visitors experience. In the lab, Total Blocking Time is a reasonable stand-in for INP, not a substitute, and the lab LCP shows whether the largest element still renders in time. A minimum Lighthouse score works as a single number for dashboards, but it reacts to many factors at once, so it should never be the only limit. Field data from the Chrome UX Report moves over a 28-day window, which makes it better suited for alerts than for blocking a build.
How the calculator sets budget and goal values
The numbers come from PerfDelta's own measurements. For every site in the monthly statistics, the home page was tested with Lighthouse on a mobile profile, and the medians are calculated per platform and per industry. Page weight is the transfer size, split into JavaScript, images, CSS and fonts as the Lighthouse resource summary reports it. Where an industry sample is still too small for a stable median per resource type, the weights come from all sites, and a note below the table says so. Product, category and article values come from up to three subpages per site and appear once 100 sites have one.
LCP and CLS use Google's fixed thresholds: 4 seconds and 0.25 mark the poor range and serve as the budget, 2.5 seconds and 0.1 mark the good range and serve as the goal. Google defines them for field data at the 75th percentile; Lighthouse rates mobile lab values against the same points, but one lab run does not replace the field value. Lab CLS only covers shifts during load. Without your own value, the Total Blocking Time budget is capped at 600 ms, where Lighthouse rates it as poor on mobile, and the goal at 200 ms, where it counts as good. Values are rounded, 500 KB rather than 487 KB, and 1 KB means 1024 bytes as in Lighthouse.
Lighthouse CI budgets: budget.json and lighthouserc.json assertions
Lighthouse CI runs Lighthouse in your build pipeline and fails the build when a limit is exceeded. Lighthouse 12, released in April 2024, removed support for budget.json, which the budgetsFile option of Lighthouse CI relies on. Current pipelines write budgets as assertions in lighthouserc.json instead: resource-summary:script:size limits JavaScript in bytes, categories:performance sets the minimum score. Timings vary between runs, so the generated file runs Lighthouse three times per URL and checks timings and score against the most representative run (aggregationMethod median-run). Without it, Lighthouse CI uses the most favourable run, and one lucky run is enough to pass.
The calculator outputs both. Use lighthouserc.json for current pipelines and budget.json for older setups and tools that still read the format. The scope sets which URLs the limits apply to, such as everything under /blog/, and leaves the budget values unchanged. For product, category or article templates, pick the page type and a matching path, one file per template.
Keeping the budget: alerts, tightening and ownership
A budget only works if someone hears about a breach. Run Lighthouse CI on every pull request and test the live site on a schedule as well, because tag managers and CMS content change pages without any deployment. Paul Calvano's advice is to alert on field data and diagnose with lab data: the field shows that visitors are affected, the lab run shows which file caused it.
Review the budget every few weeks. If a metric has stayed well below its limit for a month, lower the limit to the new level, otherwise the next feature uses up the headroom you gained. Also agree on who owns each budget and what happens when a release breaks it, whether the change gets reverted or accepted with a ticket.
On the paid plans, PerfDelta's monitoring checks your budgets automatically: limits per project or URL, an email when a metric goes over budget and when it is back within it, and a pass/fail status through the API and MCP for your CI pipeline. Plans and limits are on the pricing page.
FAQ
What is a performance budget?
A set of limits for metrics that drive page speed, such as total page weight, JavaScript size, Total Blocking Time or the Lighthouse score. A change that exceeds a limit fails the build or triggers an alert, so a slower page is caught before visitors notice it.
What is a good performance budget for page weight?
There is no universal number. Start with the median of sites on your platform from the calculator above, and do not set the budget below your current weight plus a small buffer. Then lower it step by step. Under 1 MB is lean for a whole page, and JavaScript is the most expensive resource per kilobyte.
Does Lighthouse still support budget.json?
Lighthouse removed budgets in version 12 in April 2024. In Lighthouse CI you can express the same limits as assertions in lighthouserc.json, for example resource-summary:script:size with a value in bytes. The calculator generates both formats.
Should I set budgets for mobile or desktop?
Mobile first. The benchmark values come from mobile Lighthouse runs, where a slower CPU and network make heavy pages stand out. Desktop budgets can follow later, based on your own measurements.
See also: Website Performance Monitoring.
More free tools
- Site Speed Impact Calculator: Shows the share of slow page loads from real-user data and, with your own numbers, the visits and conversions they affect.
- Website Speed Test: Tests several pages of a site on mobile and desktop and shows real-user data, lab findings and competitors in one report.
- Image Compressor: Compresses and converts JPG, PNG, WebP and AVIF in bulk, with responsive sizes and srcset code. Images never leave your device.
- Redirect Checker: Follows a URL hop by hop with status code and milliseconds, and checks that http, https, www and non-www end up at one address.
- Minify JS: Minifies JavaScript with terser in your browser: shorter names, no dead code, optional source map, size before and after with gzip.
- Webfont Generator: Turns TTF, OTF and WOFF into WOFF2 web fonts with an optional Latin subset and ready @font-face code, or WOFF2 back into TTF. Fonts never leave your device.
Guides for every metric and finding are in our Website Speed Optimization guide.
A free account saves your tests and shows how your values change from one test to the next. Website performance monitoring with field data and alerts starts with the Solo plan.