Fuel Cost Calculator

Work out the fuel cost of a trip from the distance, your vehicle's fuel efficiency, and the price of fuel.

Updated September 2026
miles
mpg
$/gallon
Total fuel cost
14 $

The formula

Fuel cost = (Distance ÷ Fuel Efficiency) × Fuel Price
# distance in miles, efficiency in mpg, price per gallon

Calculate Fuel Cost for Your Vehicle

Understanding how to calculate fuel cost is essential for budgeting and optimizing your vehicle's efficiency. Whether you're planning a road trip or simply tracking monthly expenses, knowing the exact cost of fuel can save you money and reduce unnecessary spending. This guide will walk you through the process, provide useful tools, and answer common questions to help you make informed decisions.

Fuel costs depend on several factors, including the price per gallon (or liter), your vehicle's fuel efficiency, and the distance traveled. By mastering these calculations, you can plan better and even identify ways to improve your car's fuel economy.

How to calculate fuel cost

Fuel cost for a trip is distance divided by how far the vehicle goes on a gallon, multiplied by the price of a gallon: the mpg figure converts miles into gallons burned, and the price converts gallons into dollars.

A 100-mile trip at 25 mpg burns 4 gallons; at $3.50/gallon that is $14. Real-world mpg typically runs 10-20% below the rated figure because of highway speed, air conditioning and stop-start driving, so a trip costed from the rated mpg tends to undershoot the real cost.

What to enter:

  • Distance (miles)
  • Fuel efficiency (mpg) — use a figure that reflects your typical driving, not just the rated combined mpg
  • Fuel price ($/gallon)

Everything recalculates as you type, and the numbers in the address bar update with it, so a link to this page carries your figures with it.

Some of the fields above will accept figures that seem unusual for your own situation, and that is deliberate: the formula behind fuel cost works the same way regardless of scale, so the calculator does not stop you testing a hypothetical scenario a long way from your actual numbers — often the fastest way to see which input the result is most sensitive to.

Factors Affecting Fuel Cost

Several key factors influence the total fuel cost for your vehicle:
  • Fuel price: The cost per gallon or liter varies by location and time.
  • Vehicle efficiency: Measured in miles per gallon (MPG) or liters per 100 kilometers (L/100km).
  • Distance traveled: Longer trips naturally require more fuel.
  • Driving habits: Aggressive driving can lower fuel efficiency.
Understanding these factors will help you calculate fuel cost more accurately.

Why fuel cost matters

Most people who look up a fuel cost calculation already have a specific number in mind — a quote, an offer, a target — and want to check it rather than learn the theory behind it. This page is built for that: enter your own figures, see the result immediately, and change any field to see how the answer moves without redoing the arithmetic from scratch each time.

It is also useful as a sense check before signing anything. A quote, an offer letter or a spreadsheet from someone else can contain an error, an optimistic assumption, or simply a different convention for rounding — running the same inputs through an independent calculator is a quick way to confirm a number before relying on it.

The reason a page like this exists at all, rather than leaving the calculation to a spreadsheet or a textbook appendix, is that the formula behind fuel cost is fiddly enough to get wrong by hand but not complicated enough to need specialist software. That middle ground — real enough maths to matter, simple enough to check instantly — is exactly what a dedicated calculator is for, and it is why the same figure recalculated here should match a careful manual calculation almost exactly.

A calculator like this one is often bookmarked and returned to repeatedly over months rather than used once, particularly for anything tied to an ongoing plan such as a mortgage, a savings goal or an investment being tracked. Because the figures live in the web address rather than only in memory, coming back to the same page with updated numbers is quicker than starting from a blank spreadsheet each time.

Fuel Cost Calculation Example

Formula: Total Cost = (Distance / MPG) * Price per Gallon

Example:
Distance: 300 miles
MPG: 30
Price per gallon: $3.50

Calculation:
(300 / 30) * 3.50 = 10 * 3.50 = $35.00

This means the trip will cost $35.00 in fuel.

Worked example

Here is the calculation with the starting values:

  • Distance: 100 miles
  • Fuel efficiency: 25 mpg
  • Fuel price: 3.5 $/gallon

That gives:

  • Total fuel cost: 14 $

These figures are only the calculator's own starting values, included so the working is visible rather than hidden inside the tool above. Replace them with your own numbers and the same arithmetic applies — nothing about the method changes, only the inputs feeding it.

How to Improve Fuel Efficiency

Improving your vehicle's fuel efficiency can significantly reduce fuel costs. Here are some tips:
  • Maintain proper tire pressure.
  • Avoid excessive idling.
  • Use cruise control on highways.
  • Remove unnecessary weight from your vehicle.
Small changes can add up to substantial savings over time.

Reading the result

Cost per mile is the more useful figure for comparing vehicles or trips: at the defaults that is $0.14/mile. Fuel-cost-per-mile noticeably below $0.10-0.12 is doing better than a typical mid-size car on the road today.

Where this goes wrong. People often use city mpg for a mostly-highway trip, or the reverse. Highway mpg is commonly 20-30% higher than city mpg for the same car, so using the wrong figure over- or understates the true cost by a similar margin.

A useful check on any unfamiliar result is to compare it against a rough mental estimate first — round the inputs to convenient numbers and see whether the calculator's answer lands in roughly the same territory. A wildly different figure usually means one of the fields was entered in the wrong unit, most often a percentage typed as a whole number where a decimal was expected, or the reverse.

It depends on your needs. If you're budgeting, calculate it monthly. For trips, do it before you leave to estimate expenses.

Yes, premium fuels are more expensive but may improve performance in certain vehicles. Check your owner's manual for recommendations.

No, it assumes the fuel efficiency figure you enter already reflects your typical driving conditions. For a mixed trip, use a blended mpg between your city and highway ratings rather than either extreme.

Cold weather can reduce efficiency due to longer warm-up times and increased air resistance.

Reset your trip odometer at a full tank, drive until you need to refuel, then divide the miles driven by the gallons it took to fill up again. Averaging two or three fill-ups gives a more reliable number than one.

Fuel prices often rise on weekends and holidays. Filling up mid-week can sometimes save money.

It returns total fuel cost. With 100 miles distance, 25 mpg fuel efficiency and 3.5 $/gallon fuel price, that comes to 14 $. Change any field and the figure moves with it.

Fuel Cost for Electric Vehicles

Formula: Total Cost = (Distance / Efficiency) * Price per kWh

Example:
Distance: 200 miles
Efficiency: 4 miles per kWh
Price per kWh: $0.12

Calculation:
(200 / 4) * 0.12 = 50 * 0.12 = $6.00

This shows the cost of electricity for the trip.

Whenever one of the underlying figures changes — a new interest rate, a different balance, an updated term — since the result only reflects what is currently in the fields. There is no need to keep a separate record of past results; the web address for a filled-in version already carries the figures used to produce it.

Fuel Cost Comparison: Gas vs. Electric

Comparing fuel costs between gas and electric vehicles can help you decide which is more economical. Electric vehicles often have lower "fuel" costs but higher upfront prices. Consider your driving habits and local fuel/electricity prices for a fair comparison.

Not unless a tax rate or a fee is explicitly one of the inputs above. Where it is not, the figure shown is a gross calculation, and any tax due depends on your personal circumstances and current tax rules, which are worth checking separately.

Fuel Cost for Hybrid Vehicles

Formula: Total Cost = (Gas Cost) + (Electric Cost)

Example:
Gas Cost: $20.00
Electric Cost: $5.00

Calculation:
20.00 + 5.00 = $25.00

This is the combined cost for a hybrid vehicle.

The arithmetic itself is exact — the calculator applies the formula shown above precisely, with no rounding until the final figure is displayed. The uncertainty, where it exists, is entirely in the inputs: an estimated rate or an approximate balance carries that same approximation through to the result.

Fuel Cost and Environmental Impact

Reducing fuel costs isn't just about saving money—it also benefits the environment. Lower fuel consumption means fewer emissions. Consider carpooling, public transport, or biking to further reduce your carbon footprint.

Fuel Cost for Long-Distance Travel

For long trips, calculate fuel cost in advance to budget accurately. Factor in rest stops, potential detours, and varying fuel prices along your route.

Fuel Cost for a Fleet of Vehicles

Formula: Total Cost = (Total Distance / Average MPG) * Price per Gallon

Example:
Total Distance: 10,000 miles
Average MPG: 25
Price per gallon: $3.50

Calculation:
(10,000 / 25) * 3.50 = 400 * 3.50 = $1,400.00

This is the estimated fuel cost for a fleet.

Fuel Cost and Tax Deductions

If you use your vehicle for business, you may be able to deduct fuel costs on your taxes. Keep detailed records and consult a tax professional for guidance.

Fuel Cost: Final Thoughts

Mastering how to calculate fuel cost empowers you to make smarter financial and environmental decisions. Use the tools and tips in this guide to optimize your vehicle's efficiency and reduce expenses. Happy driving!

Was this calculator helpful?

Tap a star to rate it. Your feedback helps us improve the tools people rely on most.