★ MONEY · EVERYDAY

Fuel Cost Calculator: What Your Trip Will Cost in Gas

$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.

2758

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.

How far you are driving, in miles. The default is 300 miles.

Your car’s miles per gallon. The default is 30 mpg.

The price of a US gallon of fuel at the pump. The default is $3.50.

Total fuel cost$35.00.$35.00. 300 miles at 30 mpg needs 10 gallons, and at $3.50 a gallon that is $35.00 — $0.117 a mile.

Total cost: $35.00

Gallons used: 10.00 gal

Cost per mile: $0.117

Cost per 100 miles: $11.67

$35.00. 300 ÷ 30 is 10 gallons, and 10 × $3.50 is $35.00 — $0.117 a mile, or $11.67 per 100 miles.

Defaults, 300 mi, 30 mpg, $3.50: the trip costs $35.00, uses 10.00 gallons, and runs $0.117 a mile.

200 mi, 25 mpg, $3.80: the trip costs $30.40, uses 8.00 gallons, and runs $0.152 a mile.

500 mi, 35 mpg, $3.20: the trip costs $45.71, uses 14.29 gallons, and runs $0.091 a mile.

120 mi, 28 mpg, $4.00: the trip costs $17.14, uses 4.29 gallons, and runs $0.143 a mile.

1,000 mi, 22 mpg, $3.65: the trip costs $165.91, uses 45.45 gallons, and runs $0.166 a mile.

60 mi, 40 mpg, $3.50: the trip costs $5.25, uses 1.50 gallons, and runs $0.088 a mile.

450 mi, 27 mpg, $3.90: the trip costs $65.00, uses 16.67 gallons, and runs $0.144 a mile.

Two divisions and a multiplication

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.

The worked example, in full

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.

What the pump price hides

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 · meaning

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.

Who uses this

  • The road-tripper: 300 miles at 30 mpg and $3.50 a gallon is $35.00, so she budgets $70.00 for the round trip before she leaves.
  • The commuter comparing routes: the motorway route is 60 miles at 40 mpg — $5.25 — against 45 miles of town driving at 22 mpg, which costs more despite being shorter.
  • The car shopper: a 40-mpg car costs $0.088 a mile and a 20-mpg car costs $0.175, so on 300 miles the efficient car saves $26.25 every trip.
  • The delivery driver: he runs 120 miles a day at 28 mpg and $4.00 a gallon, which is $17.14 a day in fuel — and now he knows the number to charge against each job.

Accuracy & limitations

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.

Cite this calculatorBright Side Kit. “Fuel Cost Calculator: What Your Trip Will Cost in Gas” brightoolbox.com, 2026. Method: gallons = distance ÷ mpg; total cost = gallons × price per gallon; cost per mile = total cost ÷ distance.Bright Side Kit. "Fuel Cost Calculator: What Your Trip Will Cost in Gas" https://brightoolbox.com/fuel-cost-calculator/ Accessed November 5, 2026.
Embed this calculator

Paste this into any web page to embed the live calculator. The “Powered by Bright Side Kit” link below it must stay intact.

Frequently asked questions

How do you calculate fuel cost?

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.

How much does gas cost for a 300-mile trip?

$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.

What is the cost per mile?

$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.

How do I work out my real mpg?

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.

Does the calculator include tolls?

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.

How much is a round 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.

What if my car does 20 mpg instead of 30?

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.

What is a good mpg?

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.