Skip to content
EveryFix

Fuel Cost Calculator

The Fuel Cost Calculator estimates how much fuel a trip will cost based on distance, your vehicle's fuel economy, and the local price of fuel. Works in U.S. units (miles, MPG, price per gallon) or metric (kilometers, L/100km, price per liter). Because the calculation assumes one constant fuel-economy figure for the entire trip, entering a combined city/highway MPG or L/100km rating — rather than a highway-only figure — gives the most realistic estimate for typical mixed driving. If you're planning a round trip, remember to enter the full there-and-back distance, since the calculator has no way to know whether the number you type already includes the return leg.

Beginner⏱ 30 secondsUpdated 2026-10-28
Units

Switch between U.S. Customary and Metric units.

miles
MPG
$
Enter your details above and click “Calculate Fuel Cost” to see your results here.

How This Tool Works

Pick your units, then enter your trip distance, your vehicle's fuel economy, and the current price of fuel to calculate the total fuel cost.

Formula & Method

U.S.: gallons needed = distance ÷ MPG, fuel cost = gallons × price per gallon. Metric: liters needed = (distance ÷ 100) × L/100km, fuel cost = liters × price per liter.

Example Calculation

U.S. example: A 450-mile trip in a car averaging 32 MPG, with gas at $3.79/gallon. Gallons needed = 450 ÷ 32 = 14.06 gal. Total fuel cost = 14.06 × $3.79 ≈ $53.30, or about $0.118 per mile. Metric example: A 750 km trip at 7.2 L/100km fuel consumption, with fuel priced at $1.65/liter. Liters needed = (750 ÷ 100) × 7.2 = 54 L. Total fuel cost = 54 × $1.65 = $89.10, or about $0.119 per km.

Please note: This calculator provides estimates for general informational purposes only. Results may not be accurate for every situation — use your judgment and consult a relevant professional when it matters.

About the Fuel Cost Calculator

Fuel is the one road-trip expense that is almost entirely predictable. Unlike a hotel that might be sold out or a restaurant bill that depends on appetite, fuel follows from three numbers you can look up in minutes: how far you are going, how efficiently the vehicle uses fuel, and what a unit of fuel costs at the pump. This calculator multiplies those three together and shows the gallons or liters consumed, the total cost, and the cost per mile or kilometer, so you can budget a drive before you leave the driveway.

The cost-per-distance figure is often the most useful output. A trip total only answers one question, but a per-mile number can be reused: compare it with a bus fare split among passengers, with a mileage reimbursement rate, or with what a rental car would add. Because the tool works in either U.S. units (miles, MPG, price per gallon) or metric (kilometers, L/100km, price per liter), the same page serves a family planning a drive across several states and a commuter in Europe, Canada, or Australia comparing weekly fuel spend.

Where the estimate is strongest is steady, mixed driving with a realistic fuel-economy figure. It is weaker when conditions change sharply during a trip, such as a long mountain climb, a loaded roof box, or heavy stop-and-go traffic, because it applies one constant efficiency number to every mile. Treat the result as a solid planning figure, then add a modest cushion for the conditions you know will be harder than average.

When to Use It

Planning a holiday drive for the family

A household deciding between driving 620 miles each way to relatives and flying wants a fuel number to put next to airfares. They enter the full round-trip distance, the minivan's real-world MPG, and the price they saw on a route-planning app. The result becomes the driving column of a simple comparison that also includes tolls, an overnight stop, and meals.

Checking whether a commute change is worth it

A worker offered a job 30 miles farther away can calculate the extra fuel for a typical month by entering the added daily distance multiplied by working days. Seeing a concrete monthly dollar figure, alongside wear on the car, makes it easier to weigh a higher salary against the real cost of the longer drive.

Quoting delivery or mileage charges

A small business owner who delivers orders or visits clients in a personal vehicle can enter a typical route length, the vehicle's fuel economy, and the current pump price to find a fuel cost per mile. That figure supports a delivery fee, a client travel charge, or a sanity check on a flat per-mile reimbursement.

Splitting gas with friends on a shared ride

When four friends carpool to a festival, the driver can enter the round-trip distance and pump price, then divide the total by the number of riders. Because the per-mile cost is also displayed, the group can agree on a fair contribution beforehand rather than arguing over a gas receipt later.

How to Use It, Step by Step

  1. Choose your measurement system with the unit toggle first. U.S. mode uses miles, MPG, and price per gallon; metric mode switches the same fields to kilometers, L/100km, and price per liter, so set this before typing any numbers.
  2. Enter the Trip distance. For a round trip, type the full there-and-back total, because the tool cannot tell whether your number already includes the return leg. Route-planning apps show one-way distance by default, so double it when needed.
  3. Enter your Fuel economy (MPG) or Fuel consumption (L/100km). The most honest source is your own measured figure from a few full tanks; the second-best is the combined rating on the window sticker or in the owner's manual.
  4. Enter the Price per gallon (or Price per liter). Use the price posted at the pump, which already includes fuel taxes. If you will fill up in several regions, use a rough average of the stations you expect to use.
  5. Press Calculate Fuel Cost and read the Total fuel cost first. This is the headline budget number for the whole trip based on the three inputs you supplied.
  6. Look at Gallons needed (or Liters needed) next. This tells you roughly how many tank fill-ups the trip requires, which helps you plan fuel stops and check that the number looks plausible for your vehicle's tank size.
  7. Use the Cost per mile (or Cost per km) line to compare against other options such as a reimbursement rate, a rental car, or splitting costs among passengers.
  8. Run a second scenario with a lower fuel-economy figure, roughly 10 to 15 percent worse, to see a cautious version of the budget for towing, mountain roads, heavy luggage, or winter conditions.

Understanding Your Results

The three outputs describe the same trip from different angles. Gallons needed (or Liters needed) is the physical quantity of fuel; Total fuel cost is that quantity multiplied by your pump price; Cost per mile (or Cost per km) is the total divided by the distance, shown to three decimals. For many gasoline cars on mixed roads in the United States, the per-mile figure lands somewhere in the low-to-mid teens of cents when fuel is moderately priced, while a thirsty truck or an expensive-fuel region pushes it noticeably higher.

To sanity-check a result, compare the fuel quantity to the tank size. If the tool says a 900-mile trip needs 30 gallons and your car holds 14 gallons, you should expect about two fill-ups along the way, not one. If the answer implies something wildly different from your experience, the most likely culprit is a mistyped fuel-economy figure, or a mix-up between MPG and L/100km, which move in opposite directions: a larger MPG is better, a larger L/100km is worse.

Once you have the number, decide what it is for. For a budget, add a cushion of 10 to 15 percent if the route includes long climbs, towing, or heavy traffic. For a cost split, divide the total by riders. For comparison with other transport, put the cost per mile next to the alternative's cost per mile, remembering that fuel is only one part of true driving cost, since tires, maintenance, depreciation, and insurance are not included here.

More Worked Examples

Long family drive in a crossover

Scenario: U.S. units: a 1,240-mile round trip in a crossover that averages 27 MPG, with gas priced at $3.42 per gallon.

Enter 1240 for Trip distance, 27 for Fuel economy, and 3.42 for Price per gallon. The tool returns 45.93 gallons needed, a total fuel cost of $157.07, and a cost of $0.127 per mile. That is roughly three fill-ups for a car with a 15-gallon tank. If the same car only managed 24 MPG because of a loaded roof box, the cost would rise to about $176.70, a difference of nearly $20.

Short round trip with expensive fuel

Scenario: U.S. units: an 86-mile day of errands and client visits in an older sedan that gets 22.5 MPG, with gas at $4.15 per gallon.

Enter 86, 22.5, and 4.15. The result shows 3.82 gallons needed and a total of $15.86, with a cost per mile of $0.184. Short days with an older, thirstier car and pricier fuel cost noticeably more per mile than a highway cruise in an efficient vehicle. Repeated over a five-day week, the same pattern would put fuel near $79 for the week.

Metric trip in a diesel hatchback

Scenario: Metric units: a 420 km trip in a vehicle using 6.8 L/100km, with fuel at 1.89 per liter.

Switch to Metric, then enter 420 for Trip distance, 6.8 for Fuel consumption, and 1.89 for Price per liter. Liters needed is (420 divided by 100) times 6.8, which the tool shows as 28.56 L. Total fuel cost is $53.98 in the tool's currency formatting, and the cost per km is 0.129. A figure of 6.8 L/100km corresponds to roughly 34.6 MPG, so the result is comparable to the first U.S. example.

Tips for Better Results

  • Measure your own fuel economy over three or four full tanks before trusting the number on the window sticker, since real-world driving habits, tire pressure, and climate shift the figure more than most people expect.
  • Highway speed matters more than people think: most vehicles use noticeably more fuel per mile at 80 mph than at 65 mph, so if you plan to drive fast, enter a somewhat lower MPG than your average.
  • Check pump prices along the actual route, not just near home. Fuel can be meaningfully cheaper or dearer across state or regional lines, and a route-planning app that shows station prices can help you pick where to fill up.
  • When towing a trailer or carrying a roof box, rerun the calculation with a deliberately lower MPG. Aerodynamic drag and extra weight can cut fuel economy substantially, and the tool will only reflect that if you tell it.
  • If you drive an electric or hybrid vehicle, this tool is not the right fit for the electric portion; use the EV charging cost or Gas vs EV comparison tools to price kilowatt-hours instead of gallons.
  • Keep a running note of your cost per mile over the year. Seeing that figure drift up can be an early hint that tires are underinflated, a tune-up is due, or your driving mix has shifted toward short, inefficient trips.

Common Mistakes to Avoid

  • Entering a one-way distance for a round trip. Always confirm whether your mapping app's mileage includes the return, and double it if not, otherwise your budget will be half of what the drive really costs.
  • Using the best-case highway MPG for a mixed route. A highway-only number overstates efficiency in towns and traffic; use the combined rating or your measured average for realistic results.
  • Mixing unit systems, such as typing a price per liter while the tool is set to U.S. units. Check the unit toggle first and make sure every field's unit label matches what you typed.
  • Confusing MPG with L/100km. A bigger MPG means better efficiency, but a bigger L/100km means worse efficiency, so entering one where the other is expected produces an absurd answer.
  • Forgetting that the result is fuel only. Tolls, parking, tire wear, maintenance, and depreciation are not included, so a full per-mile driving cost is higher than the figure shown here.

Assumptions and Limits

  • The tool applies a single, constant fuel-economy number to the entire distance. Real vehicles use more fuel in cold weather, with air conditioning running, at high speed, on hills, or when heavily loaded, so the estimate is a planning figure rather than a prediction.
  • The price you enter is treated as the same for every gallon or liter purchased. If prices vary across your route, use a blended average, and remember that stations near highways are often priced higher than those a few blocks away.
  • Results are rounded for display: gallons and liters to two decimals, total cost to the cent, and cost per mile or kilometer to three decimals. The underlying calculation runs at full precision, so small rounding differences against a hand calculation are normal.
  • Cost is shown with a dollar sign in both modes, but nothing is converted between currencies. In metric mode, enter the price per liter in whatever currency you pay and read the total in that same currency.

Key Terms

MPG (miles per gallon)
The number of miles a vehicle can travel on one U.S. gallon of fuel. Higher numbers mean a more efficient vehicle.
L/100km
The liters of fuel a vehicle uses to travel 100 kilometers. This metric is common outside the United States, and lower numbers mean better efficiency.
Combined fuel economy
A rating that blends city and highway results, usually weighted toward a mix of both. It is the most representative single number for ordinary mixed driving.
Cost per mile
Total fuel cost divided by distance. It lets you compare trips of different lengths or compare driving with alternatives such as transit or ride sharing.
Fuel consumption
The amount of fuel a vehicle burns over a distance. It can be expressed as gallons per mile, liters per 100 km, or as its inverse, miles per gallon.
Fill-up
One refueling stop that brings the tank back to a full level. The number of fill-ups a trip needs is roughly the fuel required divided by your usable tank size.

Frequently Asked Questions

How do I find my car's MPG?+

Check your owner's manual for the EPA-estimated MPG, or use our MPG Calculator to compute your actual real-world fuel economy from a recent fill-up.

Can I calculate fuel cost in liters and kilometers?+

Yes — switch the unit toggle to Metric and enter distance in kilometers, fuel consumption in L/100km, and price per liter. Results are shown in liters and cost per kilometer.

Does this account for highway vs. city driving?+

No, it uses a single fuel-economy value you provide. For more accuracy, use an average that reflects your mix of highway and city driving on the trip.

Should I add a buffer for traffic or detours?+

Yes, if you expect significant traffic or route changes, add 10–15% to your distance estimate to account for extra fuel use from idling and detours.

Does the price I enter already include fuel taxes?+

Yes — enter whatever price is posted at the pump, since that's already the final price including federal, state, and any local fuel taxes. The calculator doesn't add or estimate taxes separately.

How accurate is this for mountain driving, towing, or a heavily loaded vehicle?+

Less accurate than for flat, unloaded driving — the calculator uses a single fuel-economy number for the whole trip, and towing, steep grades, and heavy cargo can all reduce real-world MPG well below your everyday average. Enter a lower MPG (or higher L/100km) figure to reflect those conditions and get a more realistic cost.

How many fill-ups will a long drive need?+

Divide the Gallons needed (or Liters needed) shown by the tool by the usable capacity of your tank. A 45-gallon requirement with a 15-gallon tank means about three fill-ups, though most drivers refuel before the tank is empty, so plan for a stop at roughly the three-quarters-used mark. Check your owner's manual for tank capacity, and remember that the fuel gauge's warning light usually leaves a reserve of a gallon or two.

Is it cheaper to drive faster to save time or slower to save fuel?+

Fuel use per mile generally rises as speed climbs past moderate highway speeds, because aerodynamic drag grows rapidly with speed. Driving a bit slower saves fuel, but it also adds travel time, and whether that trade is worthwhile depends on how much you value your time. To compare, run this tool twice with different MPG figures for the speeds you would drive, then weigh the dollar difference against the minutes saved.

Does using cruise control or air conditioning change the cost enough to matter?+

Both can influence real fuel economy, though by modest amounts compared with speed, load, and terrain. Steady speeds from cruise control on level highways tend to help efficiency, while heavy air conditioning use can reduce it, especially in stop-and-go traffic. If you want the estimate to reflect those conditions, lower the Fuel economy field slightly rather than expecting the tool to model them separately.

How do I use this tool for a trip with several fill-up locations at different prices?+

Estimate the gallons you will buy at each stop, multiply each by its local price, and add them up, or simply enter an average price weighted by how much fuel you expect to buy where. A simple approximation is the average of the prices at the stations you will most likely use. The Gallons needed output is helpful here because it tells you the total quantity you need to split across those stops.

Can I use this to compare fuel cost to a mileage reimbursement rate?+

Yes. Take the Cost per mile line and compare it to the reimbursement rate your employer or client offers. Keep in mind that published mileage rates are designed to cover more than fuel, including maintenance, tires, insurance, and depreciation. A rate that looks much higher than your fuel-only cost per mile is not necessarily generous, because the difference is meant to cover those other costs of operating the vehicle.

Found this useful? Share it

Help someone else out — or link to it from your own site.

Link to this tool

Writing about fuel cost calculator? Paste this on your site to link here.

<a href="https://everyfix.net/tools/fuel-cost-calculator/">Fuel Cost Calculator</a> by <a href="https://everyfix.net">EveryFix</a>