Carbon calculator
Kg CO2e for business travel and energy, worked out with the same methods and factors Canoprise uses for your group's own figures. Nothing is stored.
Ask
POST /calculate takes up to 100 items and a year (2019 or later; the reporting year when left out) whose factors to use. It is a read: any token of the group, with data.read, counted against the read limit.
curl -X POST "https://portal.canoprise.io/api/v1/calculate" \
-H "Authorization: Bearer cnp_…" \
-H "Content-Type: application/json" \
-d '{
"year": 2026,
"items": [
{
"type": "flight",
"from": "LHR",
"to": "JFK",
"cabin": "business",
"returnTrip": true
},
{
"type": "hotel",
"nights": 3,
"country": "France",
"stars": 4
},
{
"type": "transfer",
"by": "taxi",
"distanceKm": 25
},
{
"type": "electricity",
"kWh": 10000,
"country": "UK"
}
]
}'{
"year": 2026,
"items": [
{
"type": "flight",
"kgCo2e": 4082.533989,
"kgWithNonCo2": 6940.307781,
"method": "LHR–JFK: 5,540 km great circle + 8% for routing, there and back = 11966 km × 0.58 kg per passenger-km; ÷ 1.7 to leave out the warming at altitude = 4082.5 kg CO2e",
"factor": {
"key": "flight:long:business",
"value": 0.58,
"unit": "per passenger-km",
"source": "DESNZ business travel – air (earlier edition)",
"vintage": null,
"checked": false,
"includesNonCo2Uplift": true
}
},
{
"type": "hotel",
"kgCo2e": 22.2,
"method": "3 nights × 7.4 kg per room-night (France, 4-star)",
"factor": {
"key": "hotel:class",
"value": 7.4,
"unit": "kg CO2e per room-night",
"source": "Cornell Hotel Sustainability Benchmarking Index 2025 (2023 data), HCMI rooms footprint per occupied room, non-resort hotels, country median",
"vintage": "2025",
"checked": true
}
},
{
"type": "transfer",
"kgCo2e": 3.71525,
"method": "transfer by taxi: 25 km × 0.14861 kg per passenger-km",
"factor": {
"key": "taxi",
"value": 0.14861,
"unit": "per passenger-km",
"source": "DESNZ 2025 business travel – land (secondary listing)",
"vintage": null,
"checked": false
}
},
{
"type": "electricity",
"kgCo2e": 2070,
"method": "10000 kWh × 0.207 kg CO2e per kWh (location-based grid, UK)",
"factor": {
"key": "grid:UK",
"value": 0.207,
"unit": "kg CO2e per kWh",
"source": "DEFRA 2025 location-based",
"vintage": "2025",
"checked": false
}
}
],
"totalKgCo2e": 6178.449239
}Factors in the examples are illustrative: the source, vintage and figure in an answer are those set up for your group for that year.
Item types
| type | Give | Notes |
|---|---|---|
flight | from and to airport codes, or distanceKm, or band; cabin; returnTrip | Great circle between the airports plus 8% for routing. Both bases given: with and without the warming at altitude. |
rail, coach, car, taxi, ferry | distanceKm; kind (rail national or international; coach or bus; car petrol, diesel or electric) | A taxi may give fare instead of a distance. |
transfer | by (taxi, shuttle or coach) and distanceKm | An airport or station run. |
hotel | nights, country, stars (2 to 5) | Per occupied room-night, by country and class. |
electricity | kWh and country (two letters, e.g. UK) | The location-based grid factor for the country. |
fuel | fuel (gas, oil, lpg, diesel, petrol), quantity, unit | For example m³ or kWh of gas, litres of oil. |
Every field is in the CalcItem schema. Find airport codes with GET /airports?q=.
How an answer shows its working
Kg CO2e for up to 100 items, each worked out on its own with the methods and factors the app uses for the group, for a year (2019 or later; the reporting year when left out). Nothing is stored, so it is a read: data.read, any token of the group, counted against the read limit. An item that cannot be worked out has kgCo2e: null, method "Not calculated" and an error; the others are still answered, and totalKgCo2e adds up those answered.
Each answer gives the method and its factor, with the factor's source and vintage. factor.checked is false when the figure has not yet been read against its published source (an assumption, or a typical figure). A flight's factor carries includesNonCo2Uplift: true: it counts the extra warming of flying at altitude, so kgWithNonCo2 is the factor's figure and kgCo2e is that ÷ 1.7, the last step of method. Electricity is the location-based grid factor for the country; a country with none is an error on that item. Find airport codes with GET /airports.
From an AI tool
The same calculator is the MCP tool calculate_emissions, open to read-only tokens. See MCP.