Skip to content
Tutorials Center
My learning

Topics

Lesson 35 of 37 ยท Projects and Practice

Project: Your Personal Carbon Footprint

Build a carbon footprint calculator step by step, learn about emission factors and uncertainty, and test ways to cut emissions from travel, home and food.

A carbon footprint is the total greenhouse gas emissions caused by a person, product or organization, usually expressed in tonnes of carbon dioxide equivalent (t COโ‚‚e) per year. In this project you will build a simple footprint calculator, learn where the numbers come from and compare different ways to reduce emissions. You will use everything from the Climate Change chapter: COโ‚‚, other greenhouse gases and global warming potential.

How a footprint is calculated

Every footprint calculation has the same structure:

emissions = activity amount ร— emission factor

An activity amount is what you do or use: liters of fuel, kilowatt-hours of electricity, kilometers flown, kilograms of food. An emission factor is the emissions per unit of that activity, such as kg COโ‚‚ per liter of petrol. Add up the results for all activities.

Some factors are quite stable and come from chemistry. Burning one liter of petrol gives about 2.3 kg of COโ‚‚ and one liter of diesel about 2.7 kg. Burning natural gas gives about 0.18 to 0.20 kg of COโ‚‚ per kWh of heat. Other factors depend on where you live. Electricity is the best example: a grid that burns mostly coal might emit several hundred grams of COโ‚‚ per kWh, while a grid based on hydro, nuclear and wind emits only a few tens of grams. Always use the factor published for your own country or utility if you can.

All factors in this project are round teaching values, not official statistics. Real footprints vary by country and over time, so treat the results as estimates with a margin of error of tens of percent.

Step 1: Transport and home energy

Start with the activities that are easiest to measure. The car calculation uses the distance, the fuel use per 100 km and the factor for the fuel.

Python Transport and home energy

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check the arithmetic by hand once. The car uses 12,000 ร— 7 / 100 = 840 L of petrol, and 840 ร— 2.3 = 1,932 kg of COโ‚‚. The code should agree.

Step 2: Food, goods and the full picture

Food emissions depend strongly on what you eat. Foods from ruminant animals such as beef and lamb usually have the highest emissions per kilogram, because of methane from digestion and the land they use. Plant foods are mostly much lower. Because exact values vary by study and farm method, the example below uses placeholder numbers you should replace with values from a source you trust, to show the structure of the calculation.

Goods and services (clothes, electronics, furniture, health care) are harder to estimate. One approach is to multiply your spending by an average emissions-per-money factor for your country, which is rough but better than ignoring them.

Python Add food and goods

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Step 3: Test reductions

The most useful thing about a calculator is that you can ask "what if". Measures with the biggest effect are usually: flying less, switching from a fossil-fuel car to an electric one (or using public transport and cycling), insulating and electrifying heating, changing to renewable electricity, and eating less beef and lamb.

Python What-if scenarios

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Interpreting your results

Compare your total with national and global averages, but check the year and the method used by the source. Global average emissions per person are in the region of 4 to 5 t COโ‚‚e per year if you count all greenhouse gases, and national averages range from below 1 t in some low-income countries to well over 10 t in some rich ones. Climate scientists often point out that reaching net zero means getting to a very low footprint for everyone within a few decades.

Personal action matters, and so do collective action and policy. Individual choices help most when they influence others: voting, workplace decisions, community projects and supporting good policy (environmental laws and carbon pricing). Footprint calculators are tools for understanding, not for guilt.

Extension ideas

  • Replace the placeholder factors with values from your national government.
  • Add a variable for the number of people sharing a car or household.
  • Write a loop that finds which single change cuts the most COโ‚‚e.
  • Record real meter readings for a month and see how your estimate compares.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What is the general formula for an emissions estimate?

    For example, liters of petrol times kg of CO2 per liter.
  2. 2. A car uses 6 L of petrol per 100 km and drives 10,000 km. With 2.3 kg CO2 per liter, emissions are

    10,000 km ร— 6 / 100 = 600 L, and 600 ร— 2.3 = 1,380 kg.
  3. 3. Why should you use your own country's electricity emission factor?

    Coal-heavy and low-carbon grids can differ by a factor of ten or more.
  4. 4. Footprint calculators are best used to

    They give estimates and help you see where changes matter most.

Summary

  • Footprint = activity amount ร— emission factor, summed over activities.
  • Fuel factors come from chemistry; electricity factors depend on the local grid.
  • Flights, home energy, car travel and food are usually the largest items.
  • Scenario tests show which changes matter most.
  • Estimates carry uncertainty; collective action and policy matter too.

Next: Project: A Water and Waste Audit