What the trip costs in gas
A 300-mile trip at 30 mpg and $3.50 a gallon costs $35.00 — 10 gallons at $0.117 a mile. Enter the distance, the mileage, and the price at the pump and the calculator works out what the trip costs.
★ MONEY · EVERYDAY
$35.00. Enter the distance, the mileage, and the price at the pump, and this calculator works out the fuel cost — so you see the total, the gallons, and the cost per mile before you leave.
A 300-mile trip at 30 mpg and $3.50 a gallon costs $35.00 — 10 gallons at $0.117 a mile. Enter the distance, the mileage, and the price at the pump and the calculator works out what the trip costs.
The fuel cost of a trip is three steps. First, the gallons: distance ÷ mpg. A 300-mile trip in a car that does 30 mpg needs 300 ÷ 30 = 10 gallons. Second, the cost: gallons × price. At $3.50 a gallon, 10 gallons cost $35.00. Third, the cost per mile: total ÷ distance, which is $35.00 ÷ 300 = $0.117 a mile, or $11.67 per 100 miles. Mileage is the lever that matters most: at 30 mpg the trip is $35.00, but the same 300 miles at 20 mpg needs 15 gallons and costs $52.50 — $17.50 more for the same road. The pump price moves the answer less than people expect: a 50-cent rise, from $3.50 to $4.00, adds only $5.00 to this trip.
Take the defaults: 300 miles, 30 mpg, $3.50 a gallon. Step one: the gallons. 300 ÷ 30 is 10 gallons. Step two: the cost. 10 × $3.50 is $35.00. Step three: the cost per mile. $35.00 ÷ 300 is $0.117 a mile. Step four: the cost per 100 miles. $35.00 ÷ 3 is $11.67. The same four steps work for any trip: 500 miles at 35 mpg and $3.20 a gallon is 500 ÷ 35 = 14.29 gallons, 14.29 × $3.20 = $45.71, and $45.71 ÷ 500 = $0.091 a mile. And a round trip is just double: the 300-mile trip there and back is $70.00 and 20 gallons.
This calculator prices the fuel only, and fuel is the smallest part of driving. It leaves out tolls, parking, and the wear on the car — tyres, brakes, oil, and the value the miles take off the car — so $0.117 a mile is the fuel, not the trip. It also assumes one steady mpg for the whole drive, and real mpg is never steady: motorway cruising beats the sticker, stop-start town driving misses it, and air conditioning, a loaded roof box, and a heavy right foot all cost gallons. The mpg that matters is your own, measured: fill the tank, reset the trip meter, drive normally, refill, and divide the miles by the gallons you just bought.
The number is most useful as a comparison. At $3.50 a gallon, a 40-mpg car costs $0.088 a mile and a 20-mpg car costs $0.175 a mile — on 300 miles that is $26.25 against $52.50, a $26.25 difference every trip, which is why the mileage figure matters more than the pump price when you are choosing a car. For the same trip priced in gallons instead of dollars, the road trip fuel calculator works out how much fuel the trip needs; for the cost of driving the same route every day, the commute cost calculator turns it into a monthly figure.
| Output | Formula | What it means |
|---|---|---|
| Total fuel cost | 10 gal × $3.50 | $35.00 at the defaults. |
| Gallons used | 300 ÷ 30 | 10.00 gal at the defaults. |
| Cost per mile | $35.00 ÷ 300 | $0.117 at the defaults. |
| Cost per 100 miles | $35.00 ÷ 3 | $11.67 at the defaults. |
| 200 mi, 25 mpg, $3.80 | cost / gallons | $30.40 / 8.00 gal. |
| 500 mi, 35 mpg, $3.20 | cost / gallons | $45.71 / 14.29 gal. |
| 120 mi, 28 mpg, $4.00 | cost / gallons | $17.14 / 4.29 gal. |
| 1,000 mi, 22 mpg, $3.65 | cost / gallons | $165.91 / 45.45 gal. |
| 60 mi, 40 mpg, $3.50 | cost / gallons | $5.25 / 1.50 gal. |
| 450 mi, 27 mpg, $3.90 | cost / gallons | $65.00 / 16.67 gal. |
| Round trip, 300 mi each way | 600 ÷ 30 × $3.50 | $70.00 / 20.00 gal. |
| At $4.50 a gallon | 10 gal × $4.50 | $45.00 / 10.00 gal. |
The arithmetic is exact: gallons = distance ÷ mpg, total cost = gallons × price per gallon, cost per mile = total cost ÷ distance, and the cost per mile is shown to three decimals because it is a small number. The estimate assumes one steady mpg for the whole trip and the price entered: real mpg varies with speed, load, air conditioning, and town versus motorway driving, and pump prices vary by station and state. It prices fuel only — not tolls, parking, wear, depreciation, or insurance. Distance is in miles and the price is per US gallon. For the same trip in gallons, use the road trip fuel calculator.
Bright Side Kit. "Fuel Cost Calculator: What Your Trip Will Cost in Gas" https://brightoolbox.com/fuel-cost-calculator/ Accessed November 5, 2026.In three steps: gallons = distance ÷ mpg, then cost = gallons × price per gallon. On the defaults, 300 ÷ 30 is 10 gallons and 10 × $3.50 is $35.00; cost per mile is the total ÷ the distance, or $0.117.
$35.00 at 30 mpg and $3.50 a gallon — 10 gallons at $0.117 a mile. At 20 mpg the same trip is $52.50, and at $4.50 a gallon it is $45.00.
$0.117 a mile on the defaults: $35.00 ÷ 300 miles. A 40-mpg car costs $0.088 a mile at $3.50 a gallon, and a 20-mpg car costs $0.175 a mile.
Fill the tank, reset the trip meter, drive normally, then refill and divide the miles driven by the gallons you just bought. That is your real mpg — use it here instead of the sticker figure.
No — it prices fuel only. Tolls, parking, wear, depreciation, and insurance are separate, so $0.117 a mile is the fuel cost, not the full cost of the trip.
Double the one-way figure: the 300-mile trip there and back is $70.00 and 20 gallons at 30 mpg and $3.50 a gallon.
The same 300 miles need 15 gallons instead of 10, and cost $52.50 instead of $35.00 — $17.50 more for the same road.
25 to 30 mpg is typical for a modern petrol car, 40 mpg or more is efficient, and under 20 mpg is thirsty. Hybrids and small diesels often beat 40 mpg on the motorway.