Gas / Fuel Cost Calculator
Gas / Fuel Cost Calculator
Trip fuel cost in MPG or L/100km, plus gas vs EV side-by-side.
Gas / Fuel Cost Calculator
Fuel cost for one trip from distance, fuel economy and the pump price, in miles or kilometres, MPG (US or UK), L/100 km or km/L, and any currency. Shows the round trip, the cost per mile or km, each person's share, and the same trip in an electric car.
Switching a unit converts that box, so the trip stays the same trip. Changing the currency only relabels amounts; it clears the US default prices so you can enter your own.
How to Use the Fuel Cost Calculator
Enter trip distance
The one-way distance from a map's route planner, in miles or kilometres. Switching the unit converts the number in the box.
Set vehicle fuel economy
From your car's rating or, better, your own fill-up records. US MPG, UK (imperial) MPG, L/100 km or km/L — the last is how much of Southeast Asia and Japan quote it.
Enter the fuel price you will pay
Pick your currency first, then the price per litre or per gallon from your last receipt or the stations on your route. The starting figure is the US national average for regular in EIA's weekly survey (USD 4.153/gal, week of 2 November 2026); a single station can be well above or below it.
Compare an electric car, if you like
The starting EV is 30 kWh per 100 miles (3.3 mi/kWh, inside the 1.49–4.17 mi/kWh range of model-year-2024 EVs, US DOE Fact of the Week #1373) at USD 0.18 per kWh, the US residential average of 18.16 ¢/kWh for August 2026 (EIA Electric Power Monthly, Table 5.6.A). Use your car's rated consumption and your own tariff; public fast charging costs more than home power. Clear the electricity price to leave the comparison out.
Fuel Cost Math — Distance, MPG, and the EV Comparison
The Universal Formula
Fuel cost is one of the simplest financial calculations in personal travel: distance × (fuel price ÷ fuel economy). A 300-mile trip at 28 MPG on USD 4.15/gallon gasoline (EIA's US average was USD 4.153 in the week of 2 November 2026) costs 300 ÷ 28 × USD 4.15 = USD 44.46 one-way, USD 88.93 for the round trip. The same arithmetic works anywhere; only the units differ. The US uses miles and US gallons, the UK miles and imperial gallons (1.20 US gallons), and most of the world kilometres with L/100 km or km/L. 1 mile is 1.609344 km exactly, 1 US gallon is 3.785412 L and 1 UK gallon 4.54609 L (NIST Special Publication 811, Appendix B), which is where the 235.215 constant comes from — 100 × 3.785412 ÷ 1.609344 — so L/100 km = 235.215 ÷ MPG (US), and the other way round. A 350 km drive in a car doing 15 km/L uses 23.3 litres; at 2.00 a litre, in whatever currency, that is 46.67.
The single most useful number for cross-vehicle comparison is MPG (US) — every US car is rated by the EPA on a standardised testing cycle (city, highway, combined). EPA's Automotive Trends Report (2025 edition) puts real-world fuel economy for model-year 2024 new vehicles at a record 27.2 mpg, up 41% on model year 2004; without battery-electric and plug-in hybrid vehicles the figure is 1.7 mpg lower. Pure EVs are rated in MPGe (miles per gallon equivalent): model-year-2024 EVs ranged from 53 to 140 MPGe, or 1.49 to 4.17 miles per kWh (US DOE Fact of the Week #1373).
Gas Prices Across US Markets
US pump prices vary by state with taxes, blending rules and refinery access. The federal tax on gasoline is 18.4 cents per gallon (18.3 cents excise plus a 0.1 cent storage-tank fee) and has been since the 1993 increase (Federal Highway Administration); the average of state taxes was 33.27 cents per gallon in January 2026 (EIA). EIA's weekly retail survey gives national and regional averages: USD 4.153/gal for regular in the week of 2 November 2026, USD 1.134 above a year earlier, with the West Coast at USD 5.296 and the Gulf Coast at USD 3.636. On a multi-state trip, where you fill up matters.
European pump prices are far higher per litre than US prices because excise duty and VAT make up a large share of the price; the European Commission's Weekly Oil Bulletin tracks them by member state.
The EV vs Gas Total-Cost-of-Ownership Math
On energy alone, at US averages (EIA: gasoline USD 4.153/gal, week of 2 November 2026; home electricity 18.16 ¢/kWh, August 2026): an EV at 30 kWh/100 mi and USD 0.18/kWh costs about USD 0.054 per mile, against USD 0.148 per mile for a 28-mpg car — a 64% saving. Consumer Reports' 2020 ownership-cost analysis (Harto C, Electric Vehicle Ownership Costs) found the popular EVs then priced under USD 50,000 cost USD 6,000–10,000 less over their lifetime than the best-selling gasoline vehicles in their class, with roughly half the maintenance and repair cost. Whether that holds for you turns on purchase price, incentives, your annual mileage and whether you can charge at home — the more miles and the more home charging, the further the balance tilts to the EV.
Frequently Asked Questions
- Distance ÷ fuel economy × fuel price. For 300 miles at 28 MPG on USD 4.15/gal: 300 ÷ 28 = 10.7 gallons; 10.7 × USD 4.15 = USD 44.46 one way. In litres it is distance in km × L/100 km ÷ 100 × price per litre: 400 km at 7 L/100 km is 28 litres. The tool converts any mix of units for you.
- 1 UK (imperial) gallon = 4.54609 litres exactly, against 3.785412 litres for a US gallon (NIST SP 811) — so 1 UK gallon = 1.20095 US gallons. A UK car rated at 40 MPG (UK) is 33.3 MPG (US); the numbers look similar but use different gallon definitions. The tool's "MPG (UK)" option handles this conversion automatically. UK official figures are quoted in imperial mpg alongside L/100km.
- Inversely. L/100km measures consumption (lower is better); MPG measures distance per fuel (higher is better). Conversion: 235.215 ÷ L/100km = MPG (US). So 8 L/100km = 29.4 MPG. For example, 5–8 L/100km is 29–47 MPG (US), and 12–15 L/100km is 16–20 MPG. The two scales run in opposite directions but describe the same physics.
- In the US, EIA publishes a weekly retail survey with national and regional averages (USD 4.153/gal for regular in the week of 2 November 2026), and map and price apps show prices at individual stations along a route. Elsewhere, use your national price notice or the stations on your route. For the closest estimate, use the price where you will actually fill up.
- Yes. fueleconomy.gov puts the weight penalty at about 1% per extra 100 lb, and says it hits smaller cars harder, so four passengers and luggage — several hundred pounds — cost a few percent. Drag is the bigger factor: a large roof-top cargo box can cut fuel economy 2–8% in city driving, 6–17% on the highway and 10–25% at 65–75 mph, while a rear-mount box or tray costs 1–2% in the city and 1–5% on the highway. For a loaded highway trip with a roof box, those figures imply planning on 10–20% below your rated highway mpg; without one, a few percent.
- As accurate as the two numbers you give it. The starting figures are 30 kWh per 100 miles — 3.3 mi/kWh, inside the 1.49–4.17 mi/kWh range of model-year-2024 EVs (US DOE Fact of the Week #1373) — and USD 0.18/kWh, the US residential average of 18.16 ¢/kWh for August 2026 (EIA Electric Power Monthly). Both are in the boxes for you to change, and the electricity price is in the same currency as the fuel price. Real consumption rises at highway speed and in cold weather (fueleconomy.gov reports EV efficiency roughly 39% lower in mixed driving at 20°F), and public fast charging is priced well above a home tariff — check the network's posted rate. For a figure specific to your car, use its EPA kWh/100 mi rating and your own electricity rate.
- Significantly. fueleconomy.gov puts the cost of aggressive driving (speeding, rapid acceleration and hard braking) at roughly 15–30% of fuel economy at highway speeds and 10–40% in stop-and-go traffic, and says fuel economy usually falls quickly above 50 mph. In city driving a conventional car's mileage is about 15% lower at 20°F (−7°C) than at 77°F, and up to 24% lower on short 3–4 mile trips. Smoothing out acceleration is the cheapest improvement available to most drivers.
Method & sources
How it computes
Fuel cost = km × (L/100 km) ÷ 100 × price per litre, with miles (1.609344 km), US mpg (3.785412 L/gal), UK mpg (4.54609 L/gal), km/L and per-gallon prices converted exactly. EV = distance × kWh per 100 distance units ÷ 100 × price per kWh, in the fuel price's currency; left out when no electricity price is given.
What this tool implements
- Unit definitions from NIST SP 811 Appendix B: 1 mi = 1.609 344 km (exact), 1 US gallon = 3.785 412 L, 1 UK gallon = 4.546 09 L (exact). 235.215 = 100 × 3.785412 ÷ 1.609344. Shared with the Road Trip Cost Calculator.
- Currency: one currency for every amount on the page, chosen by the reader. Until 2026-11-04 the page printed "USD" whatever the price was in and set the EV at a fixed USD 0.18/kWh, so the EV "saving" could subtract dollars from ringgit. Switching away from USD now clears the untouched US default prices.
- Default prices are dated US averages for the reader to replace: regular gasoline USD 4.153/gal, EIA weekly retail survey, week of 2 Nov 2026 (entered as 4.15); residential electricity 18.16 ¢/kWh, EIA Electric Power Monthly Table 5.6.A, August 2026 (entered as 0.18).
- EV reference 30 kWh/100 mi (3.3 mi/kWh), inside the EPA-rated 1.49-4.17 mi/kWh range of model-year-2024 EVs (US DOE FOTW #1373); an editable input since 2026-11-04.
- Cut 2026-11-04 as unsourced or perishable: Singapore (SGD 2.80-3.20/L) and Philippine (PHP 60-70/L) price ranges, the Malaysian and Indonesian pump prices with FX conversions, the claim that high European prices are why Europe adopted diesel and hybrids earlier, and a fixed "USD 0.29/gal per 5 mph" figure that fueleconomy.gov computes from its own default price.
Sources
- National Institute of Standards and Technology. Special Publication 811, Appendix B.9 — conversion factors (mile 1.609 344 km; gallon (U.S.) 3.785 412 L; gallon [Canadian and U.K. (Imperial)] 4.546 09 L). https://www.nist.gov/pml/special-publication-811/nist-guide-si-ap…
- U.S. Energy Information Administration. Gasoline and Diesel Fuel Update — U.S. regular USD 4.153/gal, week of 2 Nov 2026. https://www.eia.gov/petroleum/gasdiesel/
- U.S. Energy Information Administration. Electric Power Monthly, Table 5.6.A — U.S. residential 18.16 ¢/kWh, August 2026. https://www.eia.gov/electricity/monthly/epm_table_grapher.php?t=e…
- U.S. Energy Information Administration. How much tax do we pay on a gallon of gasoline? (federal 18.40, state average 33.27 ¢/gal, January 2026). https://www.eia.gov/tools/faqs/faq.php?id=10&t=10
- Weingroff R. When did the Federal Government begin collecting the gas tax? Federal Highway Administration (18.4 ¢/gal since the 1993 increase). https://www.fhwa.dot.gov/infrastructure/gastax.cfm
- U.S. Department of Energy, Vehicle Technologies Office. FOTW #1373, 16 December 2024 — MY2024 EVs 1.49-4.17 mi/kWh (53-140 MPGe). https://www.energy.gov/node/4847495
- U.S. EPA. Highlights of the Automotive Trends Report — MY2024 real-world fuel economy 27.2 mpg, +41% on MY2004; 1.7 mpg lower without BEVs and PHEVs. https://www.epa.gov/automotive-trends/highlights-automotive-trend…
- fueleconomy.gov (US DOE/EPA). Driving More Efficiently — aggressive driving, roof and rear cargo boxes, extra weight. https://www.fueleconomy.gov/feg/driveHabits.jsp
Show 3 more
- fueleconomy.gov (US DOE/EPA). Fuel Economy in Cold Weather — 15% at 20°F, 24% on short trips, EVs about 39%. https://www.fueleconomy.gov/feg/coldweather.shtml
- European Commission. Weekly Oil Bulletin — consumer prices by member state, with and without taxes. https://energy.ec.europa.eu/data-and-analysis/weekly-oil-bulletin_en
- Harto C. Electric Vehicle Ownership Costs: Today's Electric Vehicles Offer Big Savings for Consumers. Consumer Reports; 2020. https://advocacy.consumerreports.org/wp-content/uploads/2020/10/E…
What can make this go out of date
- Default fuel and electricity prices are dated US averages (EIA, week of 2 Nov 2026 and August 2026) shown on the page with their dates; the reader replaces them. Re-read when the freshness stamp expires.