miles ÷ MPG × priceImperial & metricReviewed 1 Oct 2026Runs in your browser

Fuel Cost Calculator

Estimate what a trip will cost in fuel from the distance, your vehicle's fuel economy and the price of fuel. Switch between miles and gallons or kilometres and litres, double it for a round trip, and split the bill between passengers.

Who wrote it

Written by Suhaib Hassan. Unit factors follow NIST. Our methodology.

How the engine works

It divides distance by fuel economy to get fuel used, then multiplies by the price you enter.

Why we built it

To budget road trips with your own numbers instead of a flat average. Prices are not pulled live, so enter what you will pay.

Trip details

round trip doubles it
miles
Quick distance (miles)
miles per gallon (US)
Vehicle presets
per gallon
$
Total fuel cost—
—

—

Gallons needed—
Cost per mi—
Total distance—
Per person—
Fuel economy rating—

—

Equivalent

—

Cost by vehicle class

The same trip and fuel price as above, run for typical class averages. These are illustrations, not model ratings. Check fueleconomy.gov for your own vehicle.

—
Vehicle classMPGGallonsTrip costCost / mi

Popular road trips

Approximate driving distances. Tap one to load it into the calculator.

Formula

How the cost is calculated

Miles and gallons

fuel = distance ÷ MPG
cost = fuel × price per gallon

Kilometres and litres

fuel = distance × (L/100 km) ÷ 100
cost = fuel × price per litre

Your numbers

—

One US gallon is 3.785412 litres and one mile is 1.609344 km. L/100 km = 235.215 ÷ MPG.

Improving accuracy

Why real costs differ

Fuel economy varies with driving style, terrain, load, weather and speed. Highway driving usually beats stop-and-go city driving. For the most accurate estimate use the MPG you have actually measured over a few tanks rather than the manufacturer's rating.

For a long trip with mixed roads, price each leg with its own MPG and add them up.

Worked examples

Illustrative trips, each checked by hand.

450-mile road trip

32 MPG, gas at $3.60 a gallon.

450 ÷ 32 = 14.06 gal
14.06 × 3.60 = $50.63

Same trip, thirstier vehicle

22 MPG, same price.

450 ÷ 22 = 20.45 gal
20.45 × 3.60 = $73.64
that is $23.01 more

Metric trip

500 km, 8.0 L/100 km, $1.80 a litre.

500 × 8.0 ÷ 100 = 40 L
40 × 1.80 = $72.00

Ways to reduce fuel costs

  • Drive smoothly. Hard acceleration and braking and high highway speeds all cut MPG.
  • Keep tires inflated to the recommended pressure and remove roof cargo or excess weight.
  • Combine errands into fewer trips and avoid long idling.
  • Compare prices along the route and fill up where fuel is cheapest.

By Suhaib Hassan · Reviewed 1 October 2026 · How CalculatePilot verifies formulas →

Sources

  • U.S. Department of Energy and EPA, fueleconomy.gov, for vehicle fuel economy ratings.
  • NIST Special Publication 811, for gallon, litre, mile and kilometre conversion factors.

Frequently asked questions

Does this account for highway vs city driving?

Use your vehicle's combined MPG for a realistic estimate, or enter the city or highway figure that matches your trip.

How do I find my car's actual MPG?

Divide the miles driven since your last full fill-up by the gallons it took to refill the tank. Tracking this over a few tanks gives a more reliable average than the rated figure. Our Gas Mileage Calculator does this.

Does this account for fuel price changes during a long trip?

No. It uses one price. For a long trip, enter the average price you expect to pay along the route.

Does driving style really affect fuel economy that much?

Yes. Aggressive acceleration and braking, high speeds and idling can reduce fuel economy noticeably compared with smooth, moderate driving, especially in stop-and-go traffic.

Related calculators

More everyday tools.

All Everyday Calculators

Embed This Fuel Cost Calculator

Free and responsive, and it runs in the visitor's browser. Branding removal from $7.99/month.

<iframe src="https://www.calculatepilot.com/embed/fuel-cost-calculator.html" width="100%" height="720" loading="lazy" title="Fuel Cost Calculator"></iframe>
For website owners

Want this calculator on your own website?

Embed it in one line of code. Keep it free with a small CalculatePilot attribution link, or go white-label: your brand, no attribution, one license for all your domains.

  • All 159 calculators, unlimited embeds
  • Works on WordPress, Webflow, Squarespace, Wix and plain HTML
  • Runs in your visitor's browser, so nothing is sent to a server
  • License key emailed automatically after checkout, cancel anytime
$7.99 / month
or $89.99 / year · white-label Pro
Get the white-label license Embed free with attribution