Skip to content
toolsbox

Page Weight Budget Calculator

The page size you can afford for a target load time, split by resource type.

  • Free
  • No sign-up
  • Runs in your browser

What is a page weight budget?

A page weight budget (or performance budget) is the maximum amount of data a page can download while still loading within a target time. Setting a budget before you design or build a page keeps images, scripts and fonts from quietly piling up until the page becomes slow, especially on mobile connections.

This calculator works backwards from a target load time and a connection type. It subtracts the time spent on network round trips before content starts arriving, converts the remaining time into kilobytes at the connection's bandwidth, and splits that total between HTML, CSS, JavaScript, images and fonts using shares you can adjust.

The default connection is Slow 4G at 1.6 Mbps with 150 ms round-trip time, which matches the throttling Lighthouse uses for its mobile tests. Faster profiles for 4G and broadband are available for comparison. Budgets are transfer sizes, meaning the compressed bytes actually sent over the network.

Every input is saved in the page address, so you can copy the link and share your exact scenario with a colleague or client. The calculator runs entirely in your browser: nothing you type is sent to a server. Download as PDF is a Pro feature (coming soon).

How to set a page weight budget

  1. 1

    Choose a target load time

    Pick how quickly the page should finish loading, for example 3 seconds.

  2. 2

    Pick a connection

    Slow 4G (1.6 Mbps, 150 ms) matches Lighthouse mobile testing; Fast 4G and Broadband show what faster users get.

  3. 3

    Set the round trips before content starts

    DNS, TCP, TLS and the HTML request typically take about 4 round trips; increase it for extra redirects or third-party connections.

  4. 4

    Adjust resource shares

    Set the share of the budget for HTML, CSS, JavaScript, images and fonts. Shares are normalised to 100% automatically.

  5. 5

    Read the budgets

    See the total page weight budget, the time left for transfer and a budget for each resource type.

When to use a page weight budget

Briefing designers and developers

Agree concrete size limits for images, scripts and fonts before work starts.

Improving Core Web Vitals

Lighter pages load their main content sooner, which helps Largest Contentful Paint on slow devices.

Reviewing third-party scripts

See how much of your JavaScript budget a chat widget or tag manager would use up.

Setting CI checks

Use the per-resource numbers as limits in automated build checks.

Comparing connection scenarios

See how much more room broadband users get than mobile users on slow networks.

The formula and a worked example

Time left for transfer = target load time − round trips × round-trip time. Page weight budget in KB = transfer time × bandwidth in Mbps × 1,000 ÷ 8. Each resource budget = total budget × that resource's share, with all shares normalised to add up to 100%.

Worked example (the calculator's default values). With a 3-second target on Slow 4G (1.6 Mbps, 150 ms) and 4 round trips, setup takes 4 × 150 ms = 0.6 s, leaving 2.4 s for transfer. The total budget is 2.4 × 1.6 × 1,000 ÷ 8 = 480 KB. The default shares (HTML 5, CSS 10, JavaScript 25, images 45, fonts 10) add up to 95, so they are normalised: HTML gets about 25 KB, CSS about 51 KB, JavaScript about 126 KB, images about 227 KB and fonts about 51 KB.

This is a simple bandwidth model. Real loading also depends on how resources are prioritised, how much JavaScript the device must execute and whether files are cached. JavaScript is especially costly: 126 KB of compressed script can take far longer to process on a low-end phone than the same size of image.

To see how your existing pages compare, run them through the PageSpeed Checker or the Bulk Core Web Vitals Checker.

Frequently asked questions

Why use Slow 4G as the default?

It matches the network throttling Lighthouse applies in its mobile tests (1.6 Mbps download, 150 ms round-trip time), so budgets line up with what most performance tools report.

Are the budgets compressed or uncompressed sizes?

Compressed transfer sizes, the bytes sent over the network after gzip or Brotli compression.

Why do my shares not need to add up to 100%?

The calculator normalises them automatically, so you can enter rough proportions.

What happens if the round trips use up the whole target?

The calculator warns you. Pick a longer target time, a faster connection, or reduce the number of connections and redirects.

Is a page weight budget the same as a load time guarantee?

No. It is a planning tool based on bandwidth. Script execution, rendering and server response time also affect real load times.

Is anything uploaded?

No. The calculation runs in your browser, and your inputs are kept only in the page address for sharing.

How do I stay within the image budget?

Serve modern formats such as WebP or AVIF, size images to the space they occupy on screen, compress them, and lazy-load images below the fold so they don't count against the initial load. The toolsbox Image Compressor and Image Resizer can help.