How the petrol vs diesel calculator works
Diesel used to be the obvious choice for anyone who drove a lot. Today the answer is less clear: diesel versions cost more, modern exhaust treatment adds AdBlue and particulate filters, and resale values have softened in many markets. This calculator compares the petrol and diesel versions of the same car over the years you plan to keep it.
For each car it adds the purchase price, yearly fuel, servicing and wear, road tax and insurance, and for the diesel the AdBlue it consumes. At the end of the ownership period it credits the resale value as a percentage of the purchase price. It then works out the break-even mileage: the yearly distance at which both cars cost the same over that period.
It also shows CO₂ per year for each car, using the carbon content of the fuel rather than official test figures.
The formula
Break-even km/yr = (capital difference + years × fixed-cost difference) ÷ (years × fuel saving per km) capital difference = (diesel price − diesel resale) − (petrol price − petrol resale)
CO₂ = litres × 2.29 kg (petrol) or 2.66 kg (diesel)
Worked example
The defaults describe a mid-size car kept for 6 years and driven 18,000 km a year.
Petrol: costs 30,000, uses 6.8 L/100 km at 1.75 per litre, so 1,224 litres or 2,142 a year in fuel. Servicing is 450 and tax plus insurance 900 a year. After six years it resells for 42% (12,600). Total cost: 30,000 − 12,600 + 6 × 3,492 = 38,352, or 0.355 per km.
Diesel: costs 32,000, uses 5.4 L/100 km at 1.68 per litre, so 972 litres or 1,633 a year, plus 22 litres of AdBlue (about 22). Fuel and AdBlue together come to 1,655 a year. Servicing is 520 and tax plus insurance 950. Resale is 38% (12,160). Total: 32,000 − 12,160 + 6 × 3,125 = 38,587, or 0.357 per km.
The petrol car comes out 235 cheaper. The diesel saves about 490 a year on fuel, and about 370 a year after its higher servicing and tax, but it loses 2,440 more in depreciation. The break-even is about 19,500 km a year. At 35,000 km a year the diesel would be roughly 2,500 cheaper over six years.
On emissions the petrol car releases 2.80 t of CO₂ a year and the diesel 2.59 t, 8% less, even though it burns 21% fewer litres.
How to read the results
- Saving with the diesel is the difference in total cost; a negative value means petrol is cheaper.
- Break-even mileage is the most useful number. If you drive well above it, choose diesel; well below, choose petrol.
- The mileage chart shows both total-cost lines crossing at break-even, which makes it easy to see how much margin you have.
- The cumulative chart drops in the last year when resale value is credited.
Typical values
| Item | Petrol | Diesel |
|---|---|---|
| Real-world consumption, mid-size car | 6–8 L/100 km | 4.5–6.5 L/100 km |
| Energy per litre (LHV) | about 33 MJ | about 36 MJ |
| CO₂ per litre burned | 2.29 kg | 2.66 kg |
| Price premium for the car | — | often 1,500–3,000 |
| AdBlue use (cars) | — | 0.8–1.5 L per 1,000 km |
Tips for choosing
- Use your real mileage. Look at the last two MOT or service records rather than guessing.
- Think about trip length. If most journeys are under 15–20 km, the particulate filter may not regenerate properly. Petrol or a hybrid is safer.
- Check local rules. Low-emission zones in many European cities restrict older diesels, which hits resale value.
- Price the actual versions you would buy. The premium for the diesel varies a lot between models and markets.
- Consider the alternatives. A full hybrid often matches diesel economy in town; compare it with the hybrid vs petrol calculator, an LPG conversion or an electric car.
For one-off trip costs use the fuel cost calculator, and to convert mpg figures from reviews see the fuel economy converter.
Limitations
Fuel prices and servicing costs are held constant over the ownership period, and financing is not included. Resale is a single percentage, which cannot capture sudden market shifts such as new city bans. Average servicing figures do not include the risk of a large repair (particulate filter, EGR valve, injectors, dual-mass flywheel), which is more likely on diesels driven mostly in town. CO₂ is tank-to-wheel; it does not count fuel production, nor the higher nitrogen oxide emissions of older diesels, which affect air quality rather than climate.
Method & assumptions
Total cost = price − resale + years × (fuel + AdBlue + servicing + tax/insurance). Fuel = km × L/100 km ÷ 100 × price. Break-even mileage solves petrol cost = diesel cost for yearly km: (capital difference + years × fixed-cost difference) ÷ (years × per-km fuel saving). CO₂ = litres × IPCC tank-to-wheel factor (petrol 2.29 kg/L, diesel 2.66 kg/L).
Frequently asked questions
Is a diesel or petrol car cheaper to run?
How many km a year make a diesel worth it?
Does a diesel emit less CO₂ than petrol?
What is AdBlue and how much does it cost?
Are diesels bad for short trips?
Do diesel cars lose value faster?
Sources & references
Embed this calculator
Free for blogs, installers, schools and NGOs. Copy the code below; it updates itself automatically.