How much will this trip really cost?
Enter two places and PumpOrPlug fetches the real driving route between them -- including its elevation profile -- then estimates fuel or EV energy cost based on the actual climbing and descending along the way, not just a flat straight-line distance. Free, no signup, prices are editable.
Worked example
A 300 km trip in a medium petrol car using 6.5 L/100 km, with petrol at €1.80 per litre.
On flat ground that is 19.5 L and €35.10. If the route climbs 1,500 m along the way, the model adds about 2.6 L for lifting a 1,500 kg car that high, so the trip uses about 22.1 L and costs about €39.75, roughly 13% more.
A mid-size EV using 17 kWh/100 km at €0.25 per kWh needs 51 kWh (€12.75) on the flat. Climbing 1,500 m and coming back down the same amount adds only about 4 kWh net, because regenerative braking recovers part of the descent: about 55 kWh and €13.74.
How the calculation works
- You pick two places. Photon (built on OpenStreetMap) turns the names into coordinates.
- The OSRM routing engine returns the fastest driving route: its length, its normal-traffic driving time and the full line of the road.
- The line is thinned to 40 evenly spaced points, and Open-Elevation returns the ground height at each. Every rise between neighbouring points is added to the climb, every fall to the descent.
- Energy = distance ÷ 100 × consumption, plus a physics allowance for the climb (and, for EVs, a partial credit for the descent). Cost = energy × your price, plus any tolls you type in.
The full method, constants and limits are on the methodology page.
Common mistakes
- Using the brochure (WLTP or EPA) consumption figure unchanged for a fast motorway trip in winter. Real consumption is usually higher; the conversions guide lists the official speed and temperature figures.
- Pricing an EV road trip at the home electricity rate when most of the energy will come from public fast chargers. ADAC quotes 52 cents per kWh with a contract and up to 84 cents ad hoc at German motorway chargers.
- Forgetting the return leg. The route is one way; a round trip on the same roads costs about twice as much, and the climb on the way out becomes the descent on the way back.
- Mixing currencies: the fuel and electricity reference prices can come from different countries. Pick the same country on both sides before comparing totals.
When not to use this calculator
- Planning charging stops or checking whether an EV reaches its destination. This tool estimates cost; it does not model battery state of charge.
- Trucks, vans with heavy loads, caravans or motorcycles. The climb allowance assumes a typical passenger car mass (1,500 kg petrol/diesel, 1,900 kg electric).
- Exact expense claims. For reimbursement, use your country's official mileage rate or your real receipts.
Frequently asked questions
How is the cost of a road trip calculated?
Distance ÷ 100 × your car's consumption gives the litres (or kWh) needed, and that times the price per litre (or per kWh) gives the cost. PumpOrPlug uses the real driving distance from the route and adds an allowance for the climbing along the way.
Why does elevation change fuel consumption?
Lifting a car up a hill takes energy: mass × gravity × height. A 1,500 kg car climbing 1,000 m needs about 1.7 extra litres of petrol at a typical 25% engine efficiency. Most simple fuel calculators ignore this.
Do EVs get energy back going downhill?
Partly. Regenerative braking turns some of the descent back into battery charge; this calculator assumes about 60% is recovered. Petrol and diesel cars get no credit for descents, because engine braking wastes that energy.
Are the fuel and electricity prices live?
No. They are dated official reference prices: the EU Weekly Oil Bulletin of 2026-10-19 for EU fuel, Eurostat January–June 2026 for European household electricity, plus DESNZ and Ofgem for the UK and EIA for the US. Every price field is editable, so enter what you actually pay for an exact figure.
Does the calculator include tolls?
Only if you type them in. No free routing service returns toll prices for a route, so the toll field is manual and is added to both totals.
Sources
- OSRM routing engine (Project OSRM)
- OpenStreetMap
- Open-Elevation API
- Photon geocoder (Komoot)
- European Commission, Weekly Oil Bulletin (2026-10-19)
- Eurostat, household electricity prices nrg_pc_204 (January–June 2026)
- UK DESNZ, weekly road fuel prices (2026-10-19)
- Ofgem, energy price cap unit rates (1 October – 31 December 2026)
- US EIA, Gasoline and Diesel Fuel Update (2026-10-19)
- US EIA, Electric Power Monthly Table 5.6.A (August 2026)
Related pages
Last reviewed: 2026-10-25. Found an error? Email contact@pumporplug.com; corrections are listed on the updates page.
Embed this calculator
Free to use on your own travel blog, EV site, or route guide — paste this code where you want the calculator to appear.