Fuel Cost Calculator

Estimate trip gas cost using miles, MPG and price per gallon, or switch to kilometers, L/100 km and price per liter.

Trip inputs

miles
MPG

Use your real-world average MPG for the route and season when possible.

USD/gal

How is fuel cost calculated?

Divide trip miles by MPG to get gallons required, then multiply by the price per gallon. Cost per mile is total fuel cost divided by trip miles.

Gallons = trip miles ÷ MPG

Total gas cost = gallons × price per gallon

How to get a more accurate consumption figure

Fill the tank and record the odometer. At the next full refill, divide miles driven by gallons added. Average several tanks so one unusual trip does not distort your MPG.

Example: gas cost for a 300-mile trip

Fuel economyPriceGallonsTotal
20 MPG$3.50/gal15 gal$52.50
25 MPG$3.50/gal12 gal$42.00
30 MPG$3.50/gal10 gal$35.00

Example prices are illustrative and are not live local prices.

Frequently asked questions

Can I use dashboard consumption?

Yes for a quick estimate, but refill-to-refill averages are better for long-term budgeting.

Do traffic and air conditioning matter?

Yes. They affect real consumption, so use a figure that matches the route and conditions.

How do I calculate a return trip?

Enter the full round-trip distance in miles and allow for likely detours.