How to Measure Your Website's Carbon Emissions
You cannot reduce what you do not measure. Here are the free tools that estimate website carbon, what they base it on, and how to track emissions over time.
Measuring a website's carbon emissions means estimating the greenhouse gas produced by the energy needed to load and run it, using tools that load the page, measure the data it transfers, and apply an energy-and-carbon model to that data. You cannot measure it with a physical meter; instead, free calculators like the Website Carbon Calculator, Ecograder, Digital Beacon and the CO2.js library produce an informed estimate of grams of CO2 per page view. This guide explains exactly what those tools measure, how to read their results, why you should measure the whole site rather than just the homepage, and how to track emissions over time without being misled by the differences between models.
It builds directly on what is a website's carbon footprint and how to reduce it: that post explains the concept, and this one is the hands-on guide to quantifying it for your own site.
What these tools actually measure
The first thing to understand is that no tool measures your website's emissions directly. There is no wire you can clamp a sensor onto that reports the carbon attributable to a page view. Instead, every carbon calculator is a model: it estimates emissions from a small set of inputs, and the quality of the estimate depends on the quality of those inputs and the assumptions behind them.
Four inputs do almost all the work, and they are worth understanding because they explain both how the tools differ and how you can influence the result.
Page weight (data transferred). This is the dominant input. The tool loads the page much as a browser would and records how many bytes travel across the network — HTML, CSS, JavaScript, images, fonts, video and any third-party resources. More bytes mean more energy, so a heavier page produces a higher estimate. This is why most carbon work is, in practice, page-weight work, as covered in how to reduce page weight for a faster, greener website.
Energy intensity of the data. The model applies an assumption about how much energy is needed to move and process each unit of data through the whole system — data centre, network and device. This is where the underlying methodology matters most, because energy-per-byte is an average drawn from research rather than a measured constant, and different models choose different figures.
Carbon intensity of the electricity. Energy only becomes carbon when the electricity is generated from fossil fuels. The model applies a carbon-intensity figure for the electricity involved, often a global or regional average for the grid. A cleaner grid means lower emissions for the same energy.
Whether the host is green. If the hosting runs on renewable energy, the data-centre portion of the footprint falls. Most tools check whether the host is recognised as green — typically via the Green Web Foundation — and adjust the estimate accordingly. This is why an identical page can score better simply by moving to a renewable-powered host, as explained in what is green web hosting and how to choose it.
Combine those four and you get an estimate, usually expressed as grams of CO2 per page view, often with a rating and a few suggestions. Hold onto the idea that it is a model output: precise enough to compare and to track, not a meter reading to quote to three decimal places.
The benchmark figure, and how to hold it
The most-cited number in this field comes from the Website Carbon Calculator, built by Wholegrain Digital, which estimates that the average web page emits roughly 4.6 grams of CO2 per page view. It is a genuinely useful benchmark: it gives you a sense of whether a page is heavier or lighter than the typical web page, and it makes the abstract idea of digital emissions concrete.
But hold it lightly. That figure is the output of a particular model with particular assumptions, and it represents an average across a vast and varied web. Your own pages might be well below it or well above it, and a different tool using a different model might report a different number for the same page. None of that means the tools are broken — it means they are estimates, and estimates from different methodologies will differ. The benchmark is a reference point, not a target carved in stone.
The main tools, and what each is good for
Several free tools make measurement easy, and they are not interchangeable — each answers a slightly different question. Using two or three together gives a fuller picture than relying on any single one.
Website Carbon Calculator. The quickest way in. Enter a URL and it returns a per-view CO2 estimate, a comparison to other pages, a clean-or-dirty rating, and whether the host appears to be green. Best for a fast read on a single page and for the headline gram figure.
Ecograder. Built by Mightybytes, Ecograder produces a score out of 100 with a detailed report that covers efficiency, performance, findability and user experience as well as carbon. It is more of a holistic sustainability audit than a single number, which makes it useful when you want to understand why a page scores as it does and what to fix.
Digital Beacon. This tool breaks the footprint down in ways the others do not — notably by first visit versus repeat visit (showing the benefit of caching) and by the resource types that contribute most. That breakdown is valuable for diagnosis, because it points you straight at the heaviest categories.
CO2.js (the Green Web Foundation library). This is an open-source JavaScript library rather than a website. It lets developers calculate emissions from data transfer inside their own code, which means you can build carbon estimates into dashboards, CI pipelines, performance budgets or internal tools. It is the route to automation and continuous monitoring rather than one-off manual checks.
Alongside these dedicated tools, general performance tools are useful companions. PageSpeed Insights and Lighthouse report page weight and resource breakdowns next to Core Web Vitals, and WebPageTest gives a detailed waterfall of every request — all of which feed your understanding of the bytes that drive the carbon estimate.
Tool → what it estimates → best for
| Tool | What it outputs | Estimates from | Best for |
|---|---|---|---|
| Website Carbon Calculator | Grams CO2 per view; clean/dirty rating | Page weight, energy model, grid carbon, green-host check | A fast per-page estimate and the headline figure |
| Ecograder | Score out of 100 with full report | Page weight, efficiency, performance, UX, hosting | A holistic sustainability audit of a page |
| Digital Beacon | CO2 estimate split by first vs repeat visit and by resource | Page weight by resource type, caching, hosting | Diagnosing which resources and visits dominate |
| CO2.js (library) | Programmatic CO2 estimate from bytes | Data transfer + chosen model (e.g. Sustainable Web Design) | Automation, dashboards, performance budgets |
| PageSpeed Insights / Lighthouse | Page weight, resource breakdown, opportunities | Loaded page resources | Linking carbon to performance fixes |
| WebPageTest | Waterfall, total bytes, by location/connection | Loaded page resources | Granular, real-world byte analysis |
How to read the results without being misled
Once you have a number, the temptation is to treat it as precise. Resist that. A few principles keep your measurement honest and useful.
Compare like with like. A gram figure is only meaningful next to another gram figure measured the same way. Compare a page to the benchmark, to your other pages, or — most usefully — to its own past self. Do not compare a Website Carbon Calculator number to an Ecograder number and conclude one tool is wrong; they are answering with different models.
Watch the trend, not the decimal. The single most valuable use of these tools is tracking direction over time. If a page dropped from 3.0 grams to 1.8 grams after you optimised its images, that relative improvement is trustworthy even if the absolute figures carry uncertainty. The trend is the signal.
Read the breakdown, not just the headline. The number tells you where you are; the resource breakdown tells you what to do. If images are 70% of the weight, that is your project. Tools like Digital Beacon and PageSpeed Insights make this breakdown explicit, which is more actionable than the top-line gram figure alone.
Note the hosting flag. If the tool reports the host is not green, that is a reduction you can make without touching your code — and it will change the estimate. Cross-check with the Green Web Foundation directory.
Measure the whole site, not just the homepage
This is the mistake that quietly undermines most website carbon measurement: testing only the homepage. The homepage is rarely representative. It is often not your heaviest page, and it is usually a small fraction of your total page views. Your real footprint is per-view emissions multiplied by traffic, summed across every page — so the template behind thousands of articles, products or listings typically matters far more than the front door that everyone tests.
A better approach is to sample your key templates and weight them by traffic:
- Identify your main page types — homepage, category or listing pages, article or blog template, product pages, and conversion pages like checkout or contact.
- Measure a representative example of each, ideally the heaviest realistic version.
- Pull traffic data from your analytics to see which templates actually drive the most views.
- Multiply each template's per-view estimate by its share of traffic to find where your emissions really concentrate.
Almost always, this exercise relocates your attention away from the homepage and toward a high-traffic template that nobody had carbon-tested. That is exactly where optimisation pays off most, because every improvement is multiplied by a large number of views. A one-gram saving on a page served two million times a month is worth far more than a five-gram saving on a homepage served fifty thousand times.
Tracking emissions over time
A single measurement is a snapshot; the value compounds when you measure repeatedly. Page weight has a tendency to creep upward as teams add analytics tags, marketing pixels, chat widgets, fresh imagery and new features — each individually small, collectively significant. Regular measurement is the early-warning system that catches this drift before it becomes a problem.
A sustainable cadence looks like this. Establish a baseline now across your sampled templates. Re-measure after any significant change — a redesign, a new third-party script, a campaign landing page — so you can attribute movements to specific causes. And run a periodic check, monthly or quarterly, to catch slow creep that no single change explains. Teams that want this automated can wire the CO2.js library into a build pipeline or dashboard so every deploy reports an estimate, turning carbon into a tracked metric alongside performance.
The cardinal rule throughout is consistency: measure the same pages, with the same tool, in the same way, each time. A fair comparison over time is worth far more than a one-off precise reading, because it tells you the one thing you actually need to know — whether you are getting better or worse.
Where StackOptic fits
Dedicated carbon calculators are excellent at the carbon question specifically. Broader site audits, StackOptic among them, take a different angle: they fold a page-weight and efficiency estimate into a wider report so you can see it alongside performance, SEO and security rather than as an isolated figure. That context is useful because, as the carbon-footprint guide explains, the work that reduces emissions is the same work that improves Core Web Vitals and load speed. Seeing weight, performance and the rest together helps you prioritise the changes that pay off on every axis at once.
A quick checklist
- Pick a tool (start with the Website Carbon Calculator) and measure a baseline.
- Understand the four inputs: page weight, energy model, grid carbon, green hosting.
- Read the resource breakdown, not just the headline gram figure.
- Sample all your key templates, not just the homepage, and weight them by traffic.
- Cross-check hosting against the Green Web Foundation directory.
- Re-measure after every significant change and on a regular cadence.
- Track the trend over time; treat absolute numbers as informed estimates.
Go deeper
- The concept behind the numbers: what is a website's carbon footprint and how to reduce it.
- The biggest lever you will measure: how to reduce page weight for a faster, greener website.
- The hosting input: what is green web hosting and how to choose it.
- The performance twin of carbon: Core Web Vitals explained.
Want your page weight and efficiency measured alongside performance, SEO and security? Analyse any URL with StackOptic — one report, free, no sign-up.
Frequently asked questions
How do you measure a website's carbon emissions?
You use a calculator that loads the page like a browser, measures how many bytes it transfers, and applies an energy-and-carbon model to that data. The model factors in the energy needed to move and process the bytes, the carbon intensity of the electricity, and whether the host is green. The result is an estimate of grams of CO2 per page view — not a direct meter reading, but a consistent, comparable figure.
Which tool is best for measuring website carbon?
It depends on the question. The Website Carbon Calculator is best for a fast per-view estimate and a clean-or-dirty rating. Ecograder gives a fuller score across efficiency, performance and experience. Digital Beacon breaks the footprint down by first versus repeat visit. For automation and dashboards, developers use the open-source CO2.js library. Many teams use two or three together rather than relying on one.
How accurate are website carbon calculators?
They are estimates, not exact measurements, and different tools use different models and assumptions, so their numbers will not always match. That is expected and fine. The value is in consistency and direction: measuring the same page the same way over time tells you reliably whether you are improving. Treat the absolute gram figure as a well-informed approximation rather than a precise truth.
Should I measure my whole site or just the homepage?
Measure the whole site, or at least a representative sample of templates. The homepage is rarely your heaviest page or your most-visited one. Your true footprint is per-view emissions multiplied by traffic, so a moderately heavy article template that serves thousands of pages can dwarf the homepage. Sample your key page types — homepage, listing, article, product, checkout — and weight them by traffic.
How often should I measure website emissions?
Measure a baseline now, re-measure after any significant change (a redesign, a new feature, a marketing tag), and run a periodic check — monthly or quarterly — to catch creep. Page weight tends to grow quietly as teams add scripts and media, so a regular measurement acts as an early warning. The discipline that matters is measuring the same pages the same way each time so the comparison is fair.
Analyse any website with StackOptic
Get the full technology stack, performance, security and SEO report in seconds — free.
Analyse a websiteRelated articles
How to Build a Low-Carbon Website
A practical, end-to-end playbook for a low-carbon website: measure first, host green, cut page weight, design efficiently, cache well and keep measuring.
What Is the Carbon Cost of Video and Streaming?
Video is the heaviest thing most sites serve, and streaming dominates internet data. Here is what really drives its carbon cost and what site owners control.
How Do Design Choices Affect Website Energy Use?
Designers decide most of a page's energy use. Here is how imagery, video, fonts, animation, infinite scroll and dark mode drive energy — and what to do instead.