How CarbWeb calculates
CarbWeb measures the weight of a page, checks its hosting, then converts this data into CO₂ with the Sustainable Web Design v4 model, the same one used by most well-known calculators.
In brief
Every time a page is displayed, data leaves a data centre, travels across the network and is processed by the visitor’s device. Each of these steps uses electricity and required hardware to be manufactured.
The Sustainable Web Design model estimates this energy from the volume of data transferred, then converts it into grams of CO₂ equivalent. The result is given per visit, for a first visit to the page analysed.
Data centres
of the estimated footprint
Network
of the estimated footprint
Visitors’ devices
of the estimated footprint
Data collected
Google loads the page
CarbWeb asks Google PageSpeed Insights to load the page in Lighthouse, in mobile simulation (mid-range phone, slow 4G connection) or desktop, as you choose.
Hosting check
The domain name is submitted to the Green Web Foundation’s Greencheck API, which keeps a directory of hosts that have documented their use of renewable electricity.
Each successful analysis is saved and published on a public report page, with the page’s measurement history. A page measured less than 6 hours ago is not re-analysed. CarbWeb stores no data about the visitors who run the analysis. If a site returns an error page or an anti-bot check to Google, the analysis is rejected rather than publishing a wrong figure.
The calculation
CO₂ (g) = bytes ÷ 10⁹ × 0.300 kWh/GB × 494 g CO₂/kWhThe model assigns 0.300 kWh to each gigabyte transferred, split across three segments. Each segment counts the electricity used (“operational”) and a share of hardware manufacturing (“embodied”). The energy is then multiplied by the global average carbon intensity of electricity, 494 g CO₂/kWh.
| Segment (kWh/GB) | Operational | Embodied | Total |
|---|---|---|---|
| Data centres | 0.055 | 0.012 | 0.067 |
| Network | 0.059 | 0.013 | 0.072 |
| Visitors’ devices | 0.080 | 0.081 | 0.161 |
| Total | 0.194 | 0.106 | 0.300 |
Green hosting
If the host is recognised by the Green Web Foundation, the electricity used by the data centre counts as zero. Server manufacturing, the network and devices are still counted.
Example
A 1 MB page emits 0.148 g of CO₂ per visit (rating C), or 0.121 g with green hosting (rating B). The median mobile web page, 2.3 MB, emits 0.34 g (rating E).
The A+ to F rating
The letter shown is the official Sustainable Web Design rating, calculated by CO2.js from the grams of CO₂ per visit. It lets you compare a CarbWeb result with other tools that use the same scale.
- A+≤ 0.040 g
- A≤ 0.079 g
- B≤ 0.145 g
- C≤ 0.209 g
- D≤ 0.278 g
- E≤ 0.359 g
- F> 0.359 g
Score and projections
The score out of 100
The score out of 100 is CarbWeb’s own indicator, not a standard. It combines four elements:
- the Lighthouse performance score, up to 40 points;
- the page weight, up to 30 points (30 for 1 MB or less, 10 above 5 MB);
- the grams of CO₂ per visit, up to 20 points, using the same thresholds as the A+ to F rating;
- green hosting, 10 points.
Fixes and rating after fixes
The fixes come from Lighthouse audits: image delivery (format, compression, display size), unused, legacy or duplicate JavaScript, unused or unminified CSS. For each file, CarbWeb keeps the highest saving reported, capped at the weight actually transferred.
The “after fixes” rating applies the same model to the weight left once these savings are deducted. It is an estimate: the real gain depends on how the fixes are made.
Swiss figure
The report also shows the footprint calculated with the carbon intensity of Swiss electricity for the data centre, network and device (Ember data used by CO2.js). It corresponds to a site hosted in Switzerland and viewed from Switzerland. The hardware manufacturing share is still calculated with the global average.
Annual projection and equivalents
The annual estimate multiplies the CO₂ per visit by the number of monthly visits you enter (10,000 by default), then by 12. It assumes every visit resembles the page analysed.
The equivalents (trees, kilometres by car, smartphones) rely on common orders of magnitude: 22 kg of CO₂ absorbed by a tree per year, 180 g per kilometre by car, 85 kg to manufacture a smartphone. They help picture a figure, not measure it.
Whole-site analysis
CarbWeb does not measure every page of a site: most look alike, and each measurement takes 15 to 40 seconds. It picks a sample of up to 15 pages:
- addresses come from the sitemap (
sitemap.xml, declared inrobots.txt) and from the homepage links; - the homepage is always measured, then one page from each section (/services, /blog…) in turn, starting with the main navigation and the most recent pages;
- files (PDFs, images), login, basket and search pages, and legal notices are excluded;
- each page is measured on mobile with the same method as a single-page analysis. A page measured less than 24 hours ago is not measured again.
The average gives every measured page the same weight. The site rating is the one that matches the average page weight. The report also shows the median, the heaviest and lightest pages, and the files to fix that recur across several pages.
Limit: an average weighted by real traffic would be more accurate, since the homepage is often visited far more than a deep page. That would require access to the site’s analytics.
Limits
A global electricity average
The calculation uses the global average carbon intensity (494 g CO₂/kWh). Yet it varies hugely between countries: about 37 g CO₂/kWh in Switzerland according to the Ember data used by CO2.js.
A first visit, with no cache
Lighthouse loads the page as a new visitor. On later visits, the browser reuses some of the files it has already downloaded.
One page, one load
Only the address entered is analysed, with no scrolling or interaction. Content loaded later (videos played, images further down the page, apps that keep loading data) is not counted.
A model based on data transferred
The Sustainable Web Design model assumes that energy use is proportional to data volume. This is an approximation: the real consumption of a server or a phone does not depend on bytes alone.
A self-declared host directory
A host missing from the Green Web Foundation directory is counted as not green, even if it uses renewable electricity. A site behind a CDN is often assessed based on the CDN.
Sources
The calculation model
- Sustainable Web Design: Estimating Digital Emissions ↗The SWD v4 method: coefficients per segment and assumptions.
- Sustainable Web Design: Digital Carbon Ratings ↗The A+ to F rating scale used by CarbWeb.
- Green Web Foundation: CO2.js ↗The open-source library that runs the calculation in CarbWeb.
- CO2.js: methodologies ↗Comparison of the SWD and OneByte models.
The data
- Google PageSpeed Insights API v5 ↗The service that loads the page and measures its resources.
- Green Web Foundation: Greencheck API v3 ↗The green hosting check.
- HTTP Archive: Web Almanac 2024, Page Weight ↗Median mobile page weight: 2,311 KB (October 2024).
- Ember: electricity data ↗Source of the per-country carbon intensities used by CO2.js.
An error or a question about the calculation? Write to contact@helveit.ch.