ReckonBox logoReckonBox

Fuel cost calculator for a trip

Work out the gas cost of a trip from the distance, your MPG, and the price per gallon, with the cost per mile for comparing trips or cars.

Inputs
Miles per gallon. Check your trip computer or the EPA rating.
Trip type
Result
Total fuel cost
$42.00
Gallons needed
12
Cost per mile
$0.140
Distance driven
300
How this works
A 300 mile trip at 25 MPG burns 12 gallons, which at $3.50 a gallon is $42.00, or $0.14 per mile.

Key takeaways

  • Fuel cost is the gallons used, distance divided by MPG, times the price per gallon.
  • A 300 mile trip at 25 MPG and $3.50 a gallon costs $42.00, or $0.14 per mile.
  • Cost per mile equals price per gallon divided by MPG, a clean way to compare two cars.
  • A round trip doubles the distance, so 300 miles becomes 600 miles and $84.00.
  • Real MPG usually trails the EPA sticker, so the figure from your trip computer gives a truer estimate.

What a trip costs in gas

Fuel cost is the gallons a trip burns, the distance divided by your MPG, multiplied by the price per gallon. Three numbers you already know turn into the cost before you leave the driveway.

A 300 mile trip in a car that gets 25 MPG needs 12 gallons. At $3.50 a gallon that is $42.00. The arithmetic is not the interesting part. What the tool adds is the cost per mile, $0.14 here, which is the number that lets you compare a route, a car, or a whole month of driving without the distance getting in the way.

Cost per mile is the honest comparison

Cost per mile for fuel is simply the price per gallon divided by your MPG. At $3.50 and 25 MPG it is $0.14 a mile, so 100 miles costs $14 in gas and 12,000 miles a year costs about $1,680.

Total trip cost mixes two things, how far you drove and how thirsty the car is. Cost per mile strips the distance out, so a 25 MPG sedan at $0.14 a mile and a 15 MPG truck at $0.23 a mile compare cleanly no matter whose commute is longer. It is also the figure that scales: multiply it by your annual miles and you have a fuel budget.

At $3.50 a gallonCost per mile12,000 miles a year
40 MPG$0.088$1,050
25 MPG$0.140$1,680
15 MPG$0.233$2,800

Round trips and real MPG

A round trip doubles the distance, so it doubles the gas, and the tool doubles it for you when you pick round trip, so you key in the one-way distance once. The bigger source of error is the MPG you feed it. The EPA sticker is measured under controlled conditions, and short hops, cold starts, highway speeds past 60 mph, a loaded roof rack, and a heavy right foot all pull real economy below it. For an honest estimate, use the number your trip computer actually shows on a real drive.

What this does not cover

This is fuel, and only fuel. It does not add tolls, the wear that the IRS captures in its far larger per-mile rate, or the depreciation and maintenance that make the true cost of driving a mile several times the gas alone. For an electric vehicle the same shape of math applies but the inputs change, cost per kWh and miles per kWh instead of price per gallon and MPG, so this gas-based tool does not fit an EV cleanly.

Run your real trip computer MPG through it once and the annual number is usually higher than the mental estimate.

Frequently asked questions

How do I calculate the fuel cost of a trip? Divide the distance by your MPG for the gallons, then multiply by the price per gallon. A 300 mile trip in a car that gets 25 MPG needs 12 gallons, and at $3.50 a gallon that is $42.00. Dividing the price by the MPG gives the cost per mile, $0.14 here, which is handy for comparing routes or vehicles.

What is the cost per mile to drive? Cost per mile for fuel is the price per gallon divided by your MPG. At $3.50 a gallon and 25 MPG it is $0.14 a mile, so every 100 miles costs $14 in gas. It is a cleaner number than total trip cost for comparing two cars, because it strips out how far you happen to be going.

How much does a round trip cost? A round trip doubles the distance, so it doubles the fuel and the cost. The 300 mile example becomes 600 miles, 24 gallons, and $84.00 at $3.50 a gallon. Select round trip and the calculator doubles the distance for you rather than making you enter it twice.

Why is my real MPG lower than the sticker? Because the EPA rating is measured under controlled conditions, and real driving rarely matches them. Short trips, cold starts, highway speeds above 60 mph, roof racks, and hard acceleration all cut fuel economy. For an honest trip estimate, use the MPG your trip computer actually shows rather than the window sticker.

Sources

Built and reviewed by DexTechLabs against the primary sources cited above. Last reviewed 2026-07-26. How we build and verify tools.