Everyday math calculator

Fuel cost calculator

Illustration for the fuel cost calculator

Estimate trip fuel use and cost from distance, fuel efficiency and local fuel price.

Formula and example

Gallons used = miles ÷ miles per gallon (MPG). Cost = gallons used × price per gallon.

Worked example

A 250-mile trip at 28 MPG uses about 8.93 gallons. At $3.50 per gallon, the estimated gas cost is $31.25. The gas price is only an example; enter your local price.

Assumptions and limits

Assumes the fuel-efficiency figure applies across the full trip. Actual use varies by vehicle, route, load, weather and driving style.

Trip fuel cost examples

DistanceMPGPrice per gallonGallonsCost
50 mi25$3.252$6.50
100 mi30$3.503.33$11.67
250 mi28$3.508.93$31.25
500 mi22$3.7522.73$85.23
1000 mi35$3.4028.57$97.14

Common mistakes to avoid

  • Entering a one-way distance for a round trip.
  • Using the best-case highway MPG for city driving.
  • Forgetting tolls and parking, which are not part of fuel cost.

Privacy

Values are processed in your browser and are not sent to Earnwell Atlas. Your host may still record standard visit logs.

Advertisement

Frequently asked questions

How do I calculate the fuel cost of a trip?

Divide the trip distance by your car's MPG to get gallons used, then multiply by the price per gallon. 250 miles at 28 MPG and $3.50 a gallon costs about $31.25.

Should I use city or highway MPG?

Use the figure closest to the trip. Highway MPG suits long motorway drives, while city MPG suits stop-and-go traffic. A combined figure works for mixed trips.

How do I calculate a round trip?

Enter the total distance there and back. For a 125-mile trip each way, enter 250 miles.

How much gas does a 500-mile trip use at 22 MPG?

500 ÷ 22 = 22.73 gallons. At $3.75 a gallon that is $85.23.

How do I split the fuel cost between passengers?

Calculate the trip cost here, then divide it with the bill-splitting calculator.

Built and maintained by Faris Dinware, founder of Earnwell Atlas. Last updated 29 November 2026. How we build and check these tools.