Skip to content

How SPRUCE calculates cloud carbon, energy and water estimates

SPRUCE uses third-party resources and models to estimate the environmental impact of cloud services. It enriches usage reports — AWS CUR, Azure cost details, or FOCUS exports from either provider — with additional columns, allowing users to do GreenOps and build dashboards and reports.

AWS and Azure usage reports in CSV or Parquet, carrying cost only, pass through SPRUCE running on Apache Spark and come out as enriched Parquet carrying cost, CO2 and water, ready for dashboards and reports

Unlike the information provided by CSPs (Cloud Service Providers), SPRUCE gives total transparency on how the estimates are built.

The overall approach is as follows:

  1. Estimate the energy used per activity (e.g. for X GB of data transferred, usage of an EC2 instance, storage etc.)
  2. Add overheads (e.g. PUE, WUE)
  3. Estimate water consumption (cooling and electricity generation)
  4. Apply accurate carbon intensity factors - ideally for a specific location at a specific time
  5. Where possible, estimate the embodied carbon related to the activity

This is compliant with the SCI specification from the GreenSoftware Foundation.

The main columns added by SPRUCE are:

operational_energy_kwh
amount of energy in kWh needed for using the corresponding service.
operational_emissions_co2eq_g
emissions of CO2 eq in grams from the energy usage.
embodied_emissions_co2eq_g
emissions of CO2 eq in grams embodied in the hardware used by the service, i.e. how much did it take to produce it. Estimated for compute instances, LLM inference, and the drives behind storage; other services leave it null rather than zero. The manufacturing footprint is spread over the expected service life of the hardware: 6 years for the servers behind compute instances (the BoaviztAPI default) and 5 years for storage drives. For compute, the embodied figures from BoaviztAPI are cradle to gate (raw materials and manufacturing, without distribution or end of life) and cover only the server hosting the instance, not the shared network equipment or the data centre building.

The total emissions for a service are operational_emissions_co2eq_g + embodied_emissions_co2eq_g.

SPRUCE also estimates water consumption:

water_cooling_l
volume of water in litres used for data centre cooling
water_electricity_production_l
volume of water in litres consumed during electricity generation.
water_consumption_stress_area_l
total water consumption attributed to regions under high or extremely high water stress.

Every row of the output also has a spruce_version column holding the version of SPRUCE which produced it (e.g. 1.4), so that results computed with different releases can be told apart.

See the enrichment modules page for details on how each estimate is computed.

Everyday equivalences

The dashboard and the static report translate the emissions, energy, and water totals into everyday comparisons ("In everyday terms"). These conversions use documented, order-of-magnitude factors meant to build intuition, not precise accounting. The factors live in reporting/equivalences.py; the table below lists them with their sources.

Comparison Factor Source
km in a family car 0.17 kg CO2e/km UK DEFRA/BEIS 2023 conversion factors
flight (London → New York, one-way economy) 500 kg CO2e atmosfair flight calculator
hour of video streaming 36 g CO2e IEA, The carbon footprint of streaming video
tree-year of CO2 absorption 21 kg CO2 EPA Greenhouse Gas Equivalencies Calculator
home powered for a year 3,500 kWh Eurostat, Energy consumption in households
cup of tea boiled 0.03 kWh typical electric kettle, ~0.25 L
smartphone charge 0.012 kWh EPA Greenhouse Gas Equivalencies Calculator
solar-panel day 1.5 kWh typical ~400 W rooftop panel
Olympic swimming pool 2,500,000 L 2,500 m³ nominal volume
bathtub filled 150 L typical domestic tub
washing machine cycle 50 L typical modern front loader
m²-year of rainfall 750 L ~715 mm global land average