Calculators
Car drive CO2 emissions calculator API
Compute driving CO2e from distance and fuel economy via fuel-burn stoichiometry: litres = distance x L/100km / 100, then x fuel emission factor (gasoline 2.31, diesel 2.68, lpg 1.51, e85 1.56 kg CO2/L). Accepts L/100km or US mpg (converted via 235.215/mpg) and supports passengers and round-trip. Returns litres burned, total/per-km/per-passenger kg CO2e and tree equivalents. Answers 'CO2 of a 100km drive','emissions per km for my car','diesel vs gasoline footprint','carpool emissions per person'.
Price$0.01per request
MethodPOST
Route/v1/calc/carbon-car-drive-emissions
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
carboncardrivingemissionsco2fuelfootprinttransport
API URL
Integration docshttps://x402.hexl.dev/v1/calc/carbon-car-drive-emissionsExample request
{
"distanceKm": 100,
"fuelEconomyL100km": 8
}Example response
{
"distanceKm": 100,
"fuelType": "gasoline",
"fuelEconomyL100km": 8,
"emissionFactorKgPerLitre": 2.31,
"litresBurned": 8,
"totalKgCO2e": 18.48,
"perPassengerKgCO2e": 18.48,
"perKmKgCO2e": 0.185,
"totalTonnesCO2e": 0.018,
"equivalentTrees": 0.88
}Input schema
{
"type": "object",
"required": [
"distanceKm"
],
"properties": {
"distanceKm": {
"type": "number",
"examples": [
100
]
},
"fuelType": {
"type": "string",
"enum": [
"gasoline",
"diesel",
"lpg",
"e85"
],
"default": "gasoline"
},
"fuelEconomyL100km": {
"type": "number",
"examples": [
8
]
},
"mpg": {
"type": "number",
"description": "US mpg, alternative to fuelEconomyL100km"
},
"passengers": {
"type": "number",
"default": 1
},
"roundTrip": {
"type": "boolean",
"default": false
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}