A complete guide — with formulas and examples — to trip fuel cost, cost per mile, round trip, per-person splitting, and regular vs premium vs diesel comparison.
Fuel cost calculation means estimating, in advance, how much the gas for a trip will cost. It takes three inputs: the distance you'll drive (in miles), your vehicle's fuel efficiency (in MPG, miles per gallon), and the current price per gallon at the pump. This tool handles a single trip, a regular commute (monthly/annual), and lets you compare fuel types and two different routes side by side.
What is the fuel cost formula?
Quick answerCost = (Distance ÷ MPG) × Price per gallon. First divide the distance by your vehicle's miles-per-gallon rating to get the gallons you'll burn, then multiply by the current price per gallon. Cost per mile = Total cost ÷ Distance.
- Gallons needed = Distance (mi) ÷ MPG
- Total fuel cost = Gallons needed × Price per gallon
- Cost per mile = Total cost ÷ Distance
- Range from 1 gallon = your vehicle's MPG rating (that's the definition of MPG)
How many gallons and how much does 100 miles cost? (example table)
Quick answerGallons used for 100 miles equal 100 ÷ MPG. A car averaging 32 MPG uses about 3.1 gallons per 100 miles, costing about $10.90 at $3.49/gal — $0.109 per mile. The table below uses different distances at a constant 32 MPG and $3.49/gal.
Example trip cost (32 MPG · $3.49/gal)
| Distance | Gallons used | Fuel cost | Per mile |
| 50 mi | 1.6 gal | $5.45 | $0.109 |
| 100 mi | 3.1 gal | $10.90 | $0.109 |
| 200 mi | 6.3 gal | $21.81 | $0.109 |
| 300 mi (typical road trip) | 9.4 gal | $32.72 | $0.109 |
| 500 mi | 15.6 gal | $54.53 | $0.109 |
| 1,000 mi | 31.3 gal | $109.06 | $0.109 |
Note: the price per gallon in this table is only an example. Use the calculator above with your own current price and MPG for an exact result.
How do round-trip and per-person costs work?
Quick answerFor a round trip, double the distance; just turn on the round-trip switch in advanced settings. Per-person cost = Total cost ÷ Number of riders. For example, if 3 people split a $32.72 fill-up, each person owes about $10.91. Splitting fuel cost with passengers meaningfully lowers everyone's per-person expense.
Is regular, premium, or diesel cheaper per mile?
Quick answerIt depends on both price and MPG, not price alone. Diesel often costs more per gallon but frequently gets 15–25% better MPG, which can make it cheapest per mile overall. Premium usually costs 15–20% more per gallon without a matching MPG gain unless your engine specifically requires it, making it the most expensive option per mile in most cases. Use the "Fuel type" tab with your own MPG and current prices; the calculator highlights the cheapest option in green.
Don't forget: a more fuel-efficient vehicle (like a hybrid or diesel) may cost more upfront or need different maintenance. See the fuel-efficient vehicle payback calculator below to see how many miles it takes for a more efficient vehicle to earn back an extra purchase cost.