Bundle Size Budget Calculator
Enter your total transfer budget, framework overhead, and third-party scripts — get the remaining app code budget instantly with CWV benchmarks.
Total JS Transfer Budget
KB gzipped
Google recommends <300 KB for mobile. Target <150 KB for fast LCP.
Framework Baseline
KB gzipped
Third-Party Libraries
Quick add:
No third-party libraries added.
Budget Breakdown
Framework
Third-party
App code budget
Over budget
Total Budget
—
KB gzipped
Fixed Costs
—
KB (framework + 3rd-party)
App Code Budget
—
KB remaining
Utilization
—
% of budget used by fixed costs
Fixed costs exceed your total budget. Reduce third-party scripts or increase your budget.
Core Web Vitals JS Benchmarks
Transfer sizes are gzipped. Your app code budget is compared against each threshold.
What fits in your app budget?
Calculate to see estimates.
Summary
Enter your total transfer budget, framework overhead, and third-party scripts — get the remaining app code budget instantly with CWV benchmarks.
How it works
- Enter your total JavaScript transfer size budget in kilobytes.
- Input your framework baseline size (e.g. React + ReactDOM ~45 KB gzipped).
- Add sizes for each third-party library you load on the page.
- The calculator subtracts all fixed costs from your total budget.
- The remaining budget is what you have for application-specific code.
- Compare your budget against Core Web Vitals transfer-size benchmarks.
Use cases
- Setting performance budgets before starting a new project.
- Auditing an existing app to see how much room is left for new features.
- Comparing React vs. Preact vs. Solid framework cost tradeoffs.
- Justifying removal of a heavy library to stakeholders.
- Planning a performance sprint to hit a target Lighthouse score.
- Evaluating third-party script impact before adding analytics or chat widgets.
Frequently Asked Questions
Last updated: 2026-07-01 ·
Reviewed by Nham Vu