Methodologies for calculating website carbon

CO2.js offers two models for understanding the environmental impact of compute - the 1byte model (1byte.js), and the Sustainable Web Design model (swd.js).

Default

Currently, CO2.js uses the 1byte model as the default when calculating carbon emissions.

Carbon estimation models

The 1byte model

The default model in use is the 1byte model as used by the Shift Project, as introduced in their report on CO2 emissions from digital infrastructure, Lean ICT: for a sober digital.

This returns a number for the estimated CO2 emissions for the corresponding number of bytes sent over the wire, and has been used for video streaming, file downloads and websites.

The Sustainable Web Design model

As of version 0.9, CO2.js also provides the Sustainable Web Design model for calculating emissions from digital services. As the name suggests, this has been designed for helping understand the environmental impact of websites. Further details are available on the Sustainable Web Design website explaining the model, but for convenience, a short summary is below.

How the SWD works

This model uses data transfer as an proxy indicator for total resource usage, and uses this number to extrapolate energy usage numbers for your application as a fraction of the energy used by the total system comprised of:

  1. the use-phase energy of datacentres serving content
  2. the use-phase energy network transfering the data
  3. the use-phase energy of user device an user is accessing content on
  4. the total embodied energy used to create all of the above

swd model

It then converts these energy figures to carbon emissions, based on the carbon intensity of electricity from the Ember annual global electricity review.

The carbon intensity of electricity figures for the swd model include the the full lifecycle emissions including upstream methane, supply-chain and manufacturing emissions, and include all gases, converted into CO2 equivalent over a 100 year timescale.

This follows the approach used by the IPCC 5th Assessment Report Annex 3 (2014), for the carbon intensity of electricity.

Ember's methodology notes detail where the rest of this data comes from in more detail, as well as any further assumptions made.