HomeWeather & Environment › Driving Carbon Footprint Calculator

Driving Carbon Footprint Calculator

Estimates tailpipe CO₂ (and CO₂-equivalent including methane and nitrous oxide) for a car trip from distance and fuel economy or fuel used, using per-litre combustion factors for petrol, diesel and LPG, and scales to a yearly total.

When to use

You want the CO₂ emissions of a commute, road trip or annual mileage for a petrol, diesel or LPG vehicle, in kilograms and grams per kilometre.

Do not use when: The vehicle is electric or plug-in hybrid (use carbon-footprint-electricity with the kWh consumed), you need lifecycle/well-to-wheel emissions, or you only need the fuel cost (use fuel-cost).

Formula

fuel_L = distance_km × L/100km ÷ 100 (mpg converted via 235.215/mpg_US or 282.481/mpg_UK; km/L via 100/(km/L)); CO₂ = fuel_L × factor (petrol 2.31, diesel 2.68, LPG 1.51 kg/L); CO₂e = CO₂ / 0.994; per year = per trip × trips_per_year

Tank-to-wheel combustion factors as of 2024: they match the UK DEFRA/DESNZ 2024 factors for 100 % mineral petrol and diesel and the US EPA values (8,887 g CO₂ per US gallon of petrol = 2.35 kg/L, 10,180 g/gal diesel = 2.69 kg/L) within 2 %. Upstream (well-to-tank) emissions add roughly 20 % and are not included.

Inputs

ParameterTypeUnitRequiredDescription
distancenumberyesDistance of one trip in distance_unit. Range: > 0, ≤ 1000000
distance_unitenum: km | midefault kmUnit of the distance.
fuel_economynumbernoVehicle fuel economy in fuel_economy_unit. Not needed when fuel_used_liters is given. Range: > 0, ≤ 1000
fuel_economy_unitenum: l_per_100km | mpg_us | mpg_uk | km_per_ldefault l_per_100kmUnit of fuel_economy.
fuel_used_litersnumberLnoLitres of fuel burned on the trip, if known; overrides fuel_economy. Range: > 0, ≤ 100000
fuel_typeenum: petrol | diesel | lpgdefault petrolFuel burned; selects the kg CO₂ per litre combustion factor.
trips_per_yearnumberdefault 1How many times the trip is driven per year (e.g. 230 for a one-way daily commute, 460 for both directions). Range: ≥ 1, ≤ 100000

Outputs

OutputTypeUnitDescription
fuel_litersnumberLLitres of fuel burned on one trip.
co2_kg_per_tripnumberkgTailpipe carbon dioxide from combustion, fuel_liters × factor.
co2e_kg_per_tripnumberkgTailpipe greenhouse gases including CH₄ and N₂O, CO₂ ÷ 0.994 (EPA 2022 ratio for passenger vehicles).
co2_g_per_kmnumberg/kmGrams of CO₂ per kilometre driven.
co2_kg_per_yearnumberkgco2_kg_per_trip × trips_per_year.
co2e_kg_per_yearnumberkgco2e_kg_per_trip × trips_per_year.
emission_factor_kg_per_liternumberkg CO₂/LCombustion factor applied for the selected fuel.
distance_kmnumberkmTrip distance in kilometres.

Example

100 km at 7 L/100 km, petrol, 230 trips/year: {"distance":100,"distance_unit":"km","fuel_economy":7,"fuel_economy_unit":"l_per_100km","fuel_type":"petrol","trips_per_year":230}{"fuel_liters":7,"co2_kg_per_trip":16.17,"co2e_kg_per_trip":16.27,"co2_g_per_km":161.7,"co2_kg_per_year":3719.1,"emission_factor_kg_per_liter":2.31}

30 miles at 30 mpg (US), diesel: {"distance":30,"distance_unit":"mi","fuel_economy":30,"fuel_economy_unit":"mpg_us","fuel_type":"diesel"}{"distance_km":48.28,"fuel_liters":3.79,"co2_kg_per_trip":10.14,"co2_g_per_km":210.1}

GET https://tttkmbb.com/api/v1/calculate/carbon-footprint-driving?distance=100&distance_unit=km&fuel_economy=7&fuel_economy_unit=l_per_100km&fuel_type=petrol&trips_per_year=230

Machine access

Sources

FAQ

Why is diesel's factor higher if diesel cars emit less?

Diesel contains more carbon per litre (2.68 vs 2.31 kg CO₂), but diesel engines use fewer litres per 100 km; compare grams per kilometre, not per litre.

What is the difference between CO₂ and CO₂e here?

CO₂e adds the tailpipe methane and nitrous oxide weighted by global-warming potential; for modern cars that is under 1 % (EPA ratio 0.994), so both numbers are close.

Does this include fuel production?

No. Well-to-tank emissions from extracting, refining and transporting the fuel add about 20 % (DEFRA well-to-tank factors); electricity and lifecycle comparisons should include them.

Related calculators