Fuel Cost Calculator

Estimate the fuel cost for a trip from the distance, your vehicle's fuel economy, and the price per gallon. Enter the three values to see the total fuel needed and the estimated cost.

Estimated fuel cost

$35.00

Fuel needed

10 gal

Who should use it: Drivers budgeting fuel for a road trip, commute, or delivery route.

How to use this calculator

  1. 1Enter the trip distance in miles.
  2. 2Enter your vehicle's fuel economy in miles per gallon (MPG).
  3. 3Enter the fuel price per gallon.
  4. 4Review the estimated fuel needed and total cost.

Understanding the inputs

Trip distanceThe distance you will travel, in miles.
Fuel economyYour vehicle's efficiency in miles per gallon (MPG).
Fuel price / gallonThe price you pay per gallon of fuel.

How the calculation works

The calculator first works out how much fuel the trip needs by dividing the distance by your fuel economy (miles ÷ MPG = gallons). It then multiplies the gallons by the fuel price per gallon to estimate the total cost. This is a fuel cost estimate, not a measure of fuel economy itself — use the Gas Mileage calculator to work out your MPG from miles driven and gallons used.

Fuel needed = distance ÷ MPG; fuel cost = fuel needed × price per gallon

Worked example

Scenario: A 300-mile trip in a car that gets 30 MPG, with fuel at $3.50 per gallon.

Result: Fuel needed = 300 ÷ 30 = 10 gallons; fuel cost = 10 × $3.50 = $35.00.

How to interpret your result

The fuel needed is how many gallons the trip should consume at your stated fuel economy, and the fuel cost is the estimated amount you will pay at the stated price per gallon. Real-world results vary with driving conditions, traffic, load, and fuel price changes along the route.

Factors that can affect the result

  • Distance: the cost scales directly with how far you drive.
  • Fuel economy: a higher MPG lowers both the fuel needed and the cost.
  • Fuel price: the cost scales directly with the price per gallon you enter.
  • Real-world driving: city driving, heavy loads, and speed reduce actual MPG, so the estimate may be low.

Limitations and assumptions

  • Uses miles and US gallons only; it does not accept kilometers or liters.
  • Assumes a constant fuel economy for the whole trip, which real driving rarely matches.
  • Uses a single fuel price; prices often vary along a route or between stations.
  • Does not account for idling, traffic, towing, or vehicle condition, all of which affect actual fuel use.

Frequently asked questions

Related calculators

Related guides

Methodology

The calculator divides the trip distance by the fuel economy in MPG to get gallons needed, then multiplies by the price per gallon to estimate the total fuel cost.

Sources and references

  • Mathematical basis — the fuel needed and cost follow directly from distance, fuel economy, and price; no external source is required
Last reviewed: August 2026. Read our editorial policy.

Disclaimer: Results are provided for informational purposes and may vary depending on the values entered, the assumptions described above, and rounding. They are not a substitute for professional advice specific to your situation. Read the full disclaimer.