FinanceUpdated 2026-05-19

Fuel Cost Calculator

Estimate fuel needed, trip cost, and cost per mile.

DistanceFuel economyFuel price

Inputs

Fuel Cost Calculator

Results update as you type.

Input status

3/3

mi
MPG
USD/gal

Live result

Gallons needed

10.00

Total fuel cost

$35.00

Cost per mile

$0.12

Scenario compare

Save scenario A, change a few inputs, then save scenario B.

Scenario A

Not saved yet

Scenario B

Not saved yet

Quick check

Change one or two inputs to compare a second scenario before using the number.

Need more detail?

Formula, examples, and FAQ stay tucked away until you need them.

FXFormula ExplanationThe core logic behind the numbers on this page.+

To calculate fuel costs, we use the formula: Gallons needed = distance / MPG. Then, we multiply the gallons needed by the price per gallon to get the total fuel cost. Keep in mind that actual fuel costs can vary due to factors like traffic, terrain, driving style, and fuel price changes.

USEHow to UseA short path from input to result.+
  1. Enter trip distance in miles.
  2. Enter fuel economy in MPG.
  3. Enter fuel price per gallon.
EXExamplesReference scenarios to sanity-check your inputs.+

Example: A 300-mile trip at 30 MPG and $3.50 per gallon costs about $35 in fuel.

FAQFAQCommon edge cases and quick clarifications.+
What type of fuel does this calculator support?

This calculator is designed for gasoline-style fuel economy and price per gallon. It does not support electric vehicles or other alternative fuel types.

How do I choose between highway and city MPG?

Choose the MPG that best matches your expected driving conditions. If you'll be driving mostly on highways, use the highway MPG. If you'll be driving in the city, use the city MPG.

Can I use this calculator for long-term fuel cost estimates?

Yes, you can use this calculator to estimate fuel costs for long trips or daily commutes. Simply enter the total distance and other relevant factors to get an estimate of the fuel needed and total cost.

Are there any factors that can affect actual fuel costs?

Yes, actual fuel costs can vary due to factors like traffic, terrain, driving style, and fuel price changes. This calculator provides an estimate based on the provided information, but actual costs may differ.

MAPRelated CalculatorsNeighboring tools in the same decision flow.+