Calculators
Fuel quantity to CO2 converter API
Convert a fuel quantity directly to CO2e via combustion stoichiometry factors: gasoline 2.31 kg/L, diesel 2.68 kg/L, natural gas 1.93 kg/m3, propane/LPG 1.51 kg/L, coal 2.42 kg/kg, jet fuel 2.52 kg/L. Returns the unit, factor used, total kg/tonnes CO2e and tree equivalents. Answers 'CO2 from 40 litres of gasoline','emissions of burning a tonne of coal','CO2 per cubic meter of natural gas','jet fuel to CO2'.
Price$0.01per request
MethodPOST
Route/v1/calc/carbon-fuel-to-co2
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
carbonfuelcombustionemissionsco2gasolinedieselconversion
API URL
Integration docshttps://x402.hexl.dev/v1/calc/carbon-fuel-to-co2Example request
{
"fuel": "gasoline",
"quantity": 40
}Example response
{
"fuel": "gasoline",
"quantity": 40,
"unit": "litre",
"emissionFactorKgCO2PerUnit": 2.31,
"totalKgCO2e": 92.4,
"totalTonnesCO2e": 0.092,
"equivalentTrees": 4.4
}Input schema
{
"type": "object",
"required": [
"fuel",
"quantity"
],
"properties": {
"fuel": {
"type": "string",
"enum": [
"gasoline",
"diesel",
"naturalGas",
"propane",
"coal",
"jetFuel",
"lpg"
],
"examples": [
"gasoline"
]
},
"quantity": {
"type": "number",
"description": "in the fuel's native unit (litre/m3/kg)",
"examples": [
40
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}