Performance Budget Calculator
About the Performance Budget Calculator
This performance budget calculator lets you set limits for page weight and Core Web Vitals, compare your measured values against them, and estimate how long the page takes to download on connections from 2G to fiber. Each metric gets a clear within-budget, near-limit or over-budget status, plus a concrete fix when it slips.
What is a performance budget?
A performance budget is a set of limits a page must not exceed, agreed before features are built. Budgets can cover quantities (kilobytes of JavaScript, number of requests), timings (Largest Contentful Paint) or scores (Lighthouse performance score).
The value is in the conversation it forces. When a new library would push JavaScript past 350 KB, the team has to remove something else, optimize, or consciously raise the limit.
Core Web Vitals thresholds
Google rates a page "good" when Largest Contentful Paint is 2.5 s or less, Interaction to Next Paint is 200 ms or less, and Cumulative Layout Shift is 0.1 or less, measured at the 75th percentile of real visits. INP replaced First Input Delay as a Core Web Vital in March 2024.
The calculator also tracks First Contentful Paint (good at 1.8 s or less), Total Blocking Time (a lab metric, good at 200 ms or less) and the Lighthouse Performance score (90 or higher is green). These are the default budgets, and you can change any of them.
How the load time estimate works
Download time is estimated as 5 round trips for DNS, TCP, TLS and the request, plus total size divided by bandwidth. On the 3G Fast profile Lighthouse uses for mobile (1.6 Mbps, 150 ms RTT), 1 MB takes about 0.75 s of setup plus 5.2 s of transfer, roughly 6 s in total.
Real pages load slower than this ideal figure because of TCP slow start, many parallel requests and the CPU time spent parsing and running JavaScript. Treat the table as a lower bound that shows which connections a page has no chance of serving quickly.
Transferred size vs resource size
Enter transferred (compressed) sizes, the first number in the Chrome DevTools Network panel. A 400 KB JavaScript bundle may transfer as 120 KB with Brotli, but the browser still has to parse and execute all 400 KB, so watch the uncompressed size of JavaScript too.
How to Use the Performance Budget Calculator
- Under Page weight, type the current transferred size in KB for HTML, CSS, JavaScript, Images, Fonts and Other, and adjust each Budget if the defaults do not fit your project.
- Set a Target load time in seconds and read the Estimated download time by connection table, including the Max size column that shows how much page fits in your target.
- Under Timing metrics, enter FCP, LCP, INP, TBT, CLS and the Lighthouse Performance Score from Lighthouse, PageSpeed Insights or your real-user monitoring.
- Check Budget status for how many measured metrics pass, and read the Recommendations for anything over or near its limit.
- Click Reset current values to measure the next page with the same budgets.
Frequently Asked Questions
- What is a good JavaScript budget?
- There is no universal number, but many teams aim for roughly 150 to 350 KB of compressed JavaScript on mobile. This tool defaults to 350 KB; lower it for content sites.
- Where do I get the current values?
- Page weight comes from the DevTools Network panel or a Lighthouse report. Timing metrics come from Lighthouse, PageSpeed Insights, or real-user data from the Chrome UX Report.
- Why does my real load time not match the estimate?
- The estimate covers network transfer only and assumes one ideal connection. Rendering, JavaScript execution, server response time and request waterfalls add to it.
- What does "Within 10% of limit" mean?
- The value is still within budget but has used more than 90% of it. For the Lighthouse score, where higher is better, it means the score is below target but within 10% of it.
- Is 1 KB 1000 or 1024 bytes here?
- 1024 bytes, matching how browser DevTools report sizes.
- Are my numbers stored or uploaded?
- No. All calculations run in your browser, and values are cleared when you leave the page.