Fuel cost calculator

Enter the distance, your vehicle's miles per gallon and the local gas price. You get the gallons used, the trip cost, the cost per mile and each rider's share.

Trip

miles
mpg
$/gal

Fuel cost

$28.57

250 miles at 28 mpg

Fuel used
8.9 gal
Cost per mile
$0.11

How it is calculated

Gallons used is the distance divided by the MPG; the cost is gallons times the price per gallon. Doubling the distance for a round trip and dividing by the number of riders gives each person's share.

Real-world economy depends on speed, load, terrain and weather, so use your own figure if you have one. The MPG calculator works it out from a fill-up.

Driving a car home after a private sale

Buying a car in another city? Add the fuel for the drive home to the price before you agree it, along with a temporary permit or transit plates if your state requires them to drive it legally before it is registered.

Questions

Which MPG figure should I use?

The highway figure for a long, steady drive, the combined figure for mixed driving. The EPA ratings at fueleconomy.gov are a good start for most models; your own fill-up records are better.

Does this work for diesel?

Yes. Enter the vehicle's MPG on diesel and the diesel price per gallon.

How do I split gas money fairly?

Set the number of riders, including the driver. Some groups leave the driver out because they also pay for wear and insurance; set riders to the number of people paying.

General information, not financial, tax or legal advice. Reviewed November 2026.