Fuel Cost Calculator
Estimate Fuel Cost by entering distance, fuel efficiency, and price per litre or gallon. See total fuel cost and CO₂ emissions for any journey.
Fuel Cost Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: Cost = (Distance / MPG) × Price per Gallon
Worked example — $37.50 total fuel cost
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer · Editorial policy
Fuel Cost Calculator Formula
Cost = (Distance / MPG) × Price per Gallon
Divide distance by fuel efficiency to get gallons consumed, then multiply by the price per gallon. For L/100km: gallons = distance × L/100km ÷ 100 ÷ 3.785.
Fuel Cost Calculator — Worked Examples
Example 1: 300-mile road trip at 28 MPG
Problem:Distance: 300 miles, Fuel efficiency: 28 MPG, Gas price: $3.50/gallon
Solution:Gallons used = 300 ÷ 28 = 10.71 gallons. Cost = 10.71 × $3.50
Result:$37.50 total fuel cost
Example 2: European trip in L/100km
Problem:Distance: 450 km, Fuel efficiency: 6.5 L/100km, Fuel price: €1.75/liter
Solution:Litres used = 450 × 6.5 ÷ 100 = 29.25 L. Cost = 29.25 × €1.75
Result:€51.19 total fuel cost
Fuel Cost Calculator — Frequently Asked Questions
How do you calculate fuel cost per mile?
Fuel cost per mile = Fuel price per gallon ÷ MPG. For example, at $3.50/gallon with 28 MPG: $3.50 ÷ 28 = $0.125 per mile. For a complete trip cost, multiply by total miles: 300 miles × $0.125 = $37.50. In metric, cost per km = (Fuel price per liter × L/100km) ÷ 100.
What is considered good fuel economy?
For modern vehicles: compact cars achieve 32-40+ MPG combined, midsize sedans 28-35 MPG, crossover SUVs 25-32 MPG, full-size trucks 18-24 MPG, and large SUVs 16-22 MPG. Hybrid vehicles typically achieve 45-58 MPG. The EPA considers anything above 30 MPG combined to be good fuel economy for a non-hybrid vehicle. Fuel economy also depends heavily on driving style — aggressive acceleration and high speeds can reduce efficiency by 20-40%.
How does speed affect fuel consumption?
Fuel consumption increases significantly at higher speeds due to aerodynamic drag, which grows exponentially. Most vehicles achieve peak fuel efficiency between 45-60 mph. Driving at 70 mph instead of 55 mph can reduce fuel economy by 15-20%. At 80 mph, efficiency drops 25-30% compared to 55 mph. City driving with frequent stops and starts is typically 20-30% less fuel-efficient than steady highway driving. Using cruise control on highways helps maintain optimal speed and saves 7-14% on fuel.
How does diesel compare to gasoline cost?
Diesel engines are typically 25-35% more fuel-efficient than equivalent gasoline engines due to higher energy density and better thermal efficiency. However, diesel fuel often costs $0.20-0.80 more per gallon than regular gasoline. The cost advantage depends on the price difference and your vehicle's efficiency gain. Diesel is generally more economical for high-mileage drivers and long highway trips. Diesel engines also last longer on average, lowering lifetime ownership costs.
How do electric vehicles compare in running costs?
Electric vehicles (EVs) cost roughly 3-5 times less per mile to fuel than gasoline cars. At the US average of $0.16/kWh and an EV efficiency of 3.5 miles/kWh, the energy cost is about $0.046/mile. At $3.50/gallon and 28 MPG, a gasoline car costs $0.125/mile — nearly 3x more. Over 15,000 miles per year, this saves approximately $1,185 annually. Home charging is cheapest; DC fast chargers can cost 2-3x more per kWh but are still usually cheaper than gasoline.
How do you measure your car's real MPG instead of using the sticker figure?
Use the brim-to-brim method. Fill the tank until the pump clicks off, reset the trip odometer, drive normally for a full tank, then refill to the same click-off point. Divide the trip miles by the gallons the pump dispensed on the second fill: 342 miles on 11.4 gallons is 342 ÷ 11.4 = 30.0 MPG. Repeat over three or four tanks and average, because a single tank is skewed by pump cut-off variation, terrain and weather. That averaged figure is the number to enter here.
What is the difference between a US gallon and an imperial gallon when comparing MPG?
A US gallon is 3.78541 litres and an imperial gallon, still used for MPG figures in the UK, is 4.54609 litres — about 20 percent larger. The same vehicle therefore scores roughly 1.20 times higher in imperial MPG than in US MPG: 30 US MPG is about 36 imperial MPG. Multiply US MPG by 1.201 to get imperial, or divide imperial by 1.201 to come back. Mixing the two is why UK review figures can look implausibly good to a US reader, and it will distort Fuel Cost Calculator's output if the price is quoted per US gallon.
How do you convert a price per litre into a price per gallon?
Multiply the per-litre price by 3.78541 to get the price per US gallon, or by 4.54609 for an imperial gallon. Fuel at 1.20 per litre is 1.20 × 3.78541 = 4.54 per US gallon. Going the other way, divide the per-gallon price by the same factor. Keep the pairing consistent inside the calculator: miles with MPG and price per gallon, or kilometres with L/100km and price per litre. Mixing a metric price with an imperial efficiency is the most common source of a wrong trip total.
Does premium octane fuel improve fuel economy?
Octane rating measures resistance to pre-ignition knock, not energy content — regular and premium gasoline carry almost the same energy per gallon. In an engine designed for regular, premium delivers no measurable efficiency gain and simply costs more per mile. In an engine that requires or is tuned for premium, the knock sensor retards ignition timing on lower octane, which does cost power and some efficiency. Follow the manufacturer's requirement in the fuel-filler door, and enter the price of the grade you actually buy.
How should you budget fuel for a round trip with detours?
Run the calculator on the full outbound plus return distance rather than doubling a one-way cost after rounding, and add the mileage of planned detours, airport runs and local driving at the destination. Then add a contingency of roughly ten percent for traffic diversions and a lower real-world MPG than the sticker figure. If fuel prices differ sharply along the route, run the legs separately with their own per-gallon prices instead of one blended average, since the cheapest region often does not cover the longest leg.
Fuel Cost Calculator — Background & Theory
History of the Fuel Cost Calculator
References
Related Calculators
🚛Fleet Fuel & Maintenance
Calculate fleet fuel efficiency and total ownership cost
🗺️Road Trip Fuel Estimator
Estimate fuel time and cost for delivery routes
🚗Gas Mileage
Calculate your car's fuel efficiency
⛽Fuel Consumption Converter
Convert between MPG, L/100km, and km/L
🅿️Parking & Commute Cost
Calculate true cost of commuting including parking
🚗Auto Loan Calculator
Calculate car loan payments and interest
🏎️Engine Horsepower
Calculate engine horsepower
🛞Tire Size Calculator
Compare and convert tire sizes