CCalcNest AI

Fuel Cost Calculator

Trip fuel cost.

$0.50$20
Enter values above — results appear instantly as you type.
AI Insight: EPA mileage assumes ideal conditions; real-world economy runs 10-20% lower on the highway and 20-30% lower in the city. Track three full tanks for an honest baseline — a 5 MPG gap between cars can swing $500-1,000 a year in fuel.
Notice: This calculator is for general information and education only. Results are estimates based on standard formulas and the values you enter, and may not suit your specific situation. Verify anything important independently before relying on it. See our full disclaimer.
Written with AI assistance and checked by automated validation · Last updated: August 2026 · How we build and check this · Methodology
Looking for a different calculator? Try our AI Finder — describe what you need in plain English. Try AI Finder →

Formula

Cost = (Dist/Efficiency) × Price

Example

300 mi at 25 mpg, $3.50 → $42.

Embed this calculator on your site

Add this free calculator to your own website with one line of code. The embedded version is responsive, ad-free, and includes a small attribution link back to CalcNest AI.

<iframe src="https://calcnestai.com/embed/fuel-cost-calculator.html" width="100%" height="700" frameborder="0" style="border: 1px solid #e5e5e5; border-radius: 12px; max-width: 720px;" loading="lazy" title="Fuel Cost Calculator — Free Tool by CalcNest AI"></iframe>

Understanding the Fuel Cost Calculator

A fuel cost calculator divides distance by efficiency to find fuel used, then multiplies by price. The efficiency field accepts either miles per gallon or litres per hundred kilometres, and those two work in opposite directions, which is the most common source of error here.

How it actually works

Enter distance, fuel efficiency, and fuel price. The calculator divides distance by efficiency for fuel volume and multiplies by price. Three hundred miles at 30 miles per gallon with fuel at $3.50 uses 10 gallons and costs $35.

Converting between the two systems
MPG (US)L/100kmMPG (Imperial)
2011.824
307.836
405.948
504.760

The deeper context most people miss

Miles per gallon and litres per hundred kilometres are inverses of each other, so higher is better in one and worse in the other. There is also a third figure in circulation, since the imperial gallon used in the UK is about 20% larger than the US gallon, which makes UK mpg figures look substantially better for identical consumption.

Why the inverse relationship distorts comparisons

Expressing efficiency as distance per unit of fuel produces a counterintuitive effect sometimes called the MPG illusion. Improving from 10 to 20 mpg saves considerably more fuel over a given distance than improving from 40 to 50, despite the second looking like a similar gain and the first being a doubling. Over 10,000 miles, going from 10 to 20 mpg saves 500 gallons, while 40 to 50 saves only 50. The reason is that fuel consumed is distance divided by efficiency, so the saving depends on the difference between reciprocals rather than between the figures themselves. This has real consequences for decisions: replacing an inefficient vehicle with a moderately better one saves more fuel than replacing an already efficient one with an excellent one, which runs against the intuition that upgrading a good car to a great one is the bigger win. Fuel consumption expressed per distance, as litres per hundred kilometres or gallons per hundred miles, avoids the illusion entirely because it is linear, and this is one reason most of the world uses it and why the US EPA added gallons per hundred miles to fuel economy labels. When comparing vehicles, converting to consumption per distance makes the differences legible. It also matters for policy: fleet average standards expressed in mpg weight improvements at the efficient end more heavily than the fuel savings justify.

A worked example: what a real trip costs

Three hundred miles at 30 mpg and $3.50 costs $35 in fuel, and that is not the cost of the trip. Vehicle operating cost per mile, which includes depreciation, maintenance, tyres, and repairs, typically runs several times fuel cost, with the IRS standard mileage rate at around 70 cents a mile as a reasonable proxy for the full marginal cost. On that basis a 300-mile trip costs roughly $210 in total vehicle cost rather than $35, which changes comparisons against alternatives substantially. For deciding whether to drive or fly, the fuel figure alone makes driving look far cheaper than it is, particularly for one person, while the full cost narrows the gap considerably and tolls and parking narrow it further. For sharing costs with passengers, fuel is a reasonable basis since the other costs would be incurred anyway on a trip already being made, which is why fuel-only splitting is the usual convention among friends and why commercial mileage reimbursement uses the higher full rate. The other thing the calculation assumes is that rated efficiency is achieved, and real-world figures frequently fall short, particularly in cold weather where a cold engine, denser air, winter fuel blends, and heater use combine to reduce economy noticeably for the first miles of every journey.

Deciding what actually improves fuel economy

The measures with real effect are unglamorous. Speed matters most on highways, since aerodynamic drag rises with the square of speed and power required with the cube, so economy typically peaks somewhere around 50 to 60 mph and falls noticeably above it, with the difference between 65 and 80 mph being substantial. Driving style matters next: hard acceleration and braking waste energy that smooth driving retains, and anticipating traffic to avoid unnecessary deceleration is the core of efficient driving. Tyre pressure has a measurable effect through rolling resistance and is the cheapest single improvement available, with underinflation being extremely common. Removing roof boxes and racks when not in use matters more than expected, since they wreck aerodynamics and can cost a substantial fraction of economy at highway speed. Excess weight has a modest effect, more so in stop-start driving. Air conditioning consumes fuel, though at highway speed the drag penalty of open windows can exceed it. Idling produces zero miles per gallon, and modern engines do not need warming up beyond a few seconds before gentle driving. Against these, several widely marketed fuel-saving devices have no credible evidence, and regulators in several countries have taken enforcement action against such claims. Maintenance matters, particularly air filters, spark plugs, and correct engine operation, though a well-maintained modern car offers less scope for improvement than older vehicles did.

Why rated figures and real figures differ

Official fuel economy figures come from standardised test cycles, and the gap between those and real-world results has been a persistent issue. Test cycles historically used gentle acceleration, moderate speeds, and no auxiliary loads, producing figures that few drivers achieved. The European NEDC cycle was particularly unrepresentative and was replaced by WLTP, which uses more realistic speeds and accelerations and produces figures closer to reality, though still optimistic for many drivers. US EPA testing has been adjusted several times to close the gap. Real consumption depends heavily on conditions the test cannot capture: short trips where the engine never reaches operating temperature can consume substantially more per mile, cold weather reduces economy through several mechanisms simultaneously, hills and traffic patterns matter, and load and driving style vary enormously between drivers. Hybrid vehicles show the largest divergence in both directions, performing exceptionally in stop-start urban driving where regenerative braking recovers energy, and offering less advantage at sustained highway speed. Electric vehicles have their own version of this, with rated range being reduced substantially in cold weather by battery chemistry and cabin heating, an effect that surprises new owners each winter. The practical response is to track your own consumption over time by recording fuel purchases and mileage, which gives a figure specific to your vehicle, driving, and conditions that no published rating can match.

Variations: units, fuel types, and electric comparison

The three efficiency conventions in common use are US miles per gallon, imperial miles per gallon used in the UK where the gallon is about 20% larger, and litres per hundred kilometres used across most of Europe and much of the world. Converting between US mpg and L/100km uses the constant 235.2 divided by the mpg figure. Fuel types differ in energy content, with diesel containing more energy per litre than petrol, which is part of why diesel vehicles show better economy figures independently of engine efficiency. Premium fuel offers no benefit in engines not designed for it, and the higher octane rating indicates resistance to pre-ignition rather than more energy. For electric vehicles, efficiency is expressed as miles per kilowatt-hour or kWh per 100 miles, and cost per mile depends on electricity price, which varies far more than fuel price between home charging on an off-peak tariff and public rapid charging, where the latter can approach or exceed petrol cost per mile. The MPGe figure on US labels converts electricity to a petrol-equivalent energy basis, which is useful for comparing efficiency and misleading for comparing running cost, since the price per unit of energy differs enormously between the two.

Calculating and reducing fuel cost

Check which efficiency convention you are entering, since miles per gallon and litres per hundred kilometres are inverses and the imperial gallon is about 20% larger than the US one. Convert to consumption per distance when comparing vehicles, since miles per gallon distorts comparisons and improving from 10 to 20 mpg saves ten times more fuel than 40 to 50. Track your own consumption from fuel purchases and mileage rather than relying on rated figures, which come from standardised test cycles and are optimistic for most drivers. Add vehicle operating cost for any decision beyond splitting fuel with passengers, since depreciation, maintenance, and tyres typically cost several times fuel per mile. Reduce highway speed, which has the largest effect since drag rises with the square of speed. Check tyre pressure, which is the cheapest improvement available and commonly neglected. Remove roof boxes when not in use, since they cost a substantial fraction of economy at speed. And ignore aftermarket fuel-saving devices, which have no credible evidence and have attracted regulatory enforcement.

What people get wrong

  • Entering litres per hundred kilometres where miles per gallon is expected, since the two are inverses and produce wildly wrong results in either direction.
  • Comparing US and UK mpg figures directly, when the imperial gallon is about 20% larger and makes UK figures look substantially better for identical consumption.
  • Judging upgrades by mpg difference, when improving from 10 to 20 saves ten times more fuel over a given distance than improving from 40 to 50.
  • Using fuel cost alone to compare driving against other transport, when depreciation, maintenance, and tyres typically cost several times more per mile.

Where the math comes from

Fuel Used = Distance / Efficiency. Cost = Fuel Used × Fuel Price. The efficiency input must match the distance unit and fuel unit consistently. Note that miles per gallon and litres per hundred kilometres are inverse measures, converting via 235.2 divided by the mpg figure, and that the imperial gallon is roughly 20% larger than the US gallon.

Questions and answers

Why is my real MPG lower than the sticker?

EPA tests use standardized conditions that do not match most driving. Cold weather, short trips, aggressive driving, and mountainous terrain all reduce MPG.

Are EVs cheaper to fuel?

Generally yes - typically 50-75% less per mile, though varies with electricity prices. Charging at home is dramatically cheaper than public DC fast charging.

Should I buy used or new?

Used vehicles avoid the steepest depreciation curve (years 1-3). 2-3 year old vehicles with strong reliability records often offer the best value.

How do I track real MPG?

Reset the trip computer at fillup and divide miles driven by gallons added. Track over multiple tanks for an accurate average.

What is the biggest cost?

For most drivers, depreciation is the largest annual cost ($3-5K), followed by insurance ($1-2K), fuel ($1-2K), and maintenance ($0.5-1K). Owning long-term reduces depreciation as the largest cost.

Can I enter L/100km instead of MPG?

Only if you keep the units consistent, since the two are inverses and the calculation divides distance by efficiency. Entering L/100km where the formula expects miles per gallon produces a result that is wrong by a large factor, and the conversion is 235.2 divided by the mpg figure.

Why do UK and US mpg figures differ?

Because the imperial gallon used in the UK is about 20% larger than the US gallon. A car achieving 30 US mpg achieves about 36 imperial mpg for identical fuel consumption, which is why UK figures look better and why comparing across the two without converting is misleading.

Why does improving a poor mpg figure save more fuel?

Because fuel consumed is distance divided by efficiency, so savings depend on the difference between reciprocals. Over 10,000 miles, going from 10 to 20 mpg saves 500 gallons while 40 to 50 saves only 50, which is why consumption per distance is a clearer measure for comparison.

Why is my real economy worse than the rated figure?

Rated figures come from standardised test cycles that historically used gentle acceleration and no auxiliary loads. Real consumption depends on short trips where the engine stays cold, winter conditions, traffic, load, and driving style, none of which the test captures well.

What actually improves fuel economy?

Reducing highway speed matters most, since drag rises with the square of speed. Smooth driving, correct tyre pressure, and removing unused roof boxes all have measurable effects. Aftermarket fuel-saving devices have no credible evidence and have attracted regulatory enforcement in several countries.

Should I use fuel cost to compare against other transport?

Not alone. Depreciation, maintenance, tyres, and repairs typically cost several times more per mile than fuel, with the IRS standard mileage rate around 70 cents a mile as a proxy. Fuel-only costing is reasonable for splitting with passengers on a trip already being made.

Is premium fuel worth buying?

Not for engines not designed for it. The higher octane rating indicates resistance to pre-ignition rather than greater energy content, so it delivers no benefit in a vehicle whose manufacturer specifies regular fuel, and the price difference is a straightforward loss.

Related calculators

Commute Cost · Electricity vs Gas Car · Gas Mileage Improvement · Taxi Fare · Uber Cost Estimate