How to use the gas calculator
Enter the distance one way. Choose Round trip and the return leg is added for you, so don't double it yourself.
Use your real MPG if you know it. The window sticker figure is a lab rating, and highway speed, traffic, cargo and weather all change what you get on the road.
- Enter the one-way distance in miles or kilometers, and pick one way or round trip.
- Set the number of identical trips, such as 20 commutes, and an optional extra percentage for detours.
- Enter fuel economy as U.S. MPG, Imperial MPG, km/L or L/100 km.
- Enter the gas price and whether it's per U.S. gallon, Imperial gallon or liter.
- Add tolls or parking as a total, set how many people share the cost, and press Calculate gas cost.
Gas money calculator: splitting the cost
Set the number of travelers and the calculator divides the cost evenly. It shows two figures per person: the gas alone and gas plus whatever tolls or parking you entered.
On the 500-mile round trip above, with $20 in tolls and four people, the gas is $16.74 each and the full share is $21.74 each. If the driver isn't paying a share, set travelers to the number of passengers instead.
| People | Gas per person | Gas plus $20 tolls, per person |
|---|---|---|
| 1 | $66.96 | $86.96 |
| 2 | $33.48 | $43.48 |
| 3 | $22.32 | $28.99 |
| 4 | $16.74 | $21.74 |
Trip gas cost formula
Distance comes first. One-way miles are doubled for a round trip, multiplied by the number of trips, and then raised by any detour allowance. Fuel is that distance over MPG. Cost is fuel times price.
Planned miles = one-way miles x (2 for round trip) x trips x (1 + allowance % / 100)Gallons needed = planned miles / MPGGas cost = gallons needed x price per gallonCost per person = (gas cost + other costs) / travelers
Worked fuel cost examples
Each row below came from the calculator. The commute row shows why repeated trips add up: $3.50 a day becomes $70 over 20 workdays.
| Trip | Fuel economy and price | Fuel needed | Gas cost |
|---|---|---|---|
| 100 mi each way, round trip | 25 MPG, $3.50/gal | 8 gal | $28.00 |
| 15 mi commute each way, 20 round trips | 30 MPG, $3.50/gal | 20 gal | $70.00 |
| 200 mi one way plus 10% detours | 30 MPG, $4.00/gal | 7.33 gal | $29.33 |
| 250 mi each way, round trip | 22 MPG, $3.75/gal | 22.73 gal | $85.23 |
| 300 km one way | 7.5 L/100 km, EUR 1.80/L | 22.5 L | EUR 40.50 |
Gas cost per mile
Price per gallon divided by MPG gives the cost of gas for each mile. At $3.75 and 28 MPG it's about 13 cents a mile. Drop to 22 MPG and it's about 17 cents. The result shows this figure for every trip, in both miles and kilometers.
That number is gas only. The IRS standard mileage rate is much higher because it also covers wear, maintenance, insurance and depreciation, so don't compare the two directly.
Gas cost per mile = price per gallon / MPG
MPG, Imperial MPG and L/100 km
A U.S. gallon is 3.785411784 liters and an Imperial gallon is 4.54609 liters. So a car doing 28 MPG in U.S. gallons does about 33.6 MPG in Imperial gallons, with the same fuel use. Mixing a UK MPG figure with a U.S. gas price makes the trip look cheaper than it is.
L/100 km runs the other way: lower is better. Natural Resources Canada gives the quick conversion of 235.21 divided by L/100 km for U.S. MPG. The calculator handles every combination and shows the equivalents.
Limits and when to double-check
The estimate is only as good as the MPG and price you enter. According to the EPA, speed, traffic, terrain, weather, load and tire pressure all move real mileage. To show the range, the result includes a table from 20% less to 20% more fuel use.
The tool doesn't look up live gas prices or routes. For work mileage claims, use your employer's policy or the IRS rate, not this gas-only figure.
Sources
These sources back the fuel economy, unit and mileage-rate points on this page.