Everyday life · Trip costs

Fuel Cost Calculator

Estimate what a drive costs in gas. Enter a one-way distance, your vehicle's MPG, and the price you pay per U.S. gallon, then add a round trip or a trip count. The result shows the miles counted, gallons burned, and total fuel cost.

A round trip doubles the one-way distance before fuel is calculated. For legs of different lengths, calculate each leg separately and add the costs.

Trip and vehicle

mi
One-way miles for a single leg.
MPG
Miles per U.S. gallon on this kind of driving.
/gal
The price you pay per U.S. gallon, including fuel tax.
trip
Optional. Repeat the same trip this many times; blank means one.

The estimate uses the MPG and price you enter. It does not use a live fuel price, a route, a tank size, or an official EPA rating.

Calculated in your browser.
Estimated fuel cost

$35.00 · 10 gal

300 mi one way · 1 trip · 30.0 MPG · $3.50/gal

Gallons needed10 gal300 mi ÷ 30.0 MPG
Total miles300 miOne way × 1 trip
Cost per mile$0.117/mi$3.50/gal ÷ 30.0 MPG
Gallons per 100 miles3.33 gal100 mi ÷ 30.0 MPG
Calculation300 mi × 1 (one way) × 1 trip = 300 mi300 mi ÷ 30.0 MPG = 10 gal10 gal × $3.50/gal = $35.00$3.50/gal ÷ 30.0 MPG = $0.117/miRounded for display only; gallons and cost come from the unrounded entries. Distance is multiplied before fuel is calculated.

Estimate only. Fuel prices and driving conditions are inputs you supply, not live data: the price and MPG are yours, and conditions show up only through that MPG. Tank size is not an input and does not change the fuel burned. Tolls, parking, and other trip costs are not included.

Distance, economy, price

How the fuel cost calculator works

Three entries drive the result: the trip distance in miles, the vehicle's miles per U.S. gallon, and the price per U.S. gallon. The calculator divides distance by MPG to get gallons, then multiplies gallons by the price to get the fuel bill. Two optional entries change the distance that is counted, not the formula.

Distance is one-way. Enter the length of a single leg, then choose Round trip if you drive back over the same route. The trip count repeats that whole trip; commuting the same drive five days takes a trip count of 5. Both multipliers act on distance before any fuel is calculated, so a 300-mile round trip and a 300-mile entry with two one-way trips both count 600 miles.

MPG is yours to supply. Use the figure the vehicle returns on this kind of driving, ideally an average from your own fill-ups. The window-sticker rating is a laboratory estimate, and a loaded car at 75 mph rarely matches it. The page never fetches a price, a route, or a vehicle rating, and it does not know your tank size.

Formulastotal miles = one-way distance × 2 for a round trip × trip countgallons = total miles ÷ MPGfuel cost = gallons × price per U.S. galloncost per mile = price per U.S. gallon ÷ MPGgallons per 100 miles = 100 ÷ MPG

The result panel leads with the total cost and the gallons needed, then repeats the inputs it used. Cost per mile and gallons per 100 miles are cross-checks: they let you compare two vehicles or two trips without re-running the whole calculation.

Formula and a worked example

The page opens with 300 miles one way, 30 MPG, and $3.50 per gallon, with one trip and no return leg. The panels resolve that example in four steps:

Worked example300 mi × 1 (one way) × 1 trip = 300 mi300 mi ÷ 30 MPG = 10 gal10 gal × $3.50/gal = $35.00$35.00 ÷ 300 mi = $0.1167 per mile, shown as $0.117

Gallons and dollars are rounded only for display. The calculator keeps the unrounded values, so a 317.5-mile trip at 28.6 MPG uses 11.1 gallons; at $3.499 per gallon the fuel bill is $38.84. Rounding gallons to whole numbers first would give a different, less accurate cost.

If the tank holds more or less fuel than the trip needs, the fuel bill is unchanged. The gallons figure is fuel burned, not a single fill-up.

Round trips and repeated trips

The two options multiply the same one-way distance, and the order does not matter: 2 × 1 trip is the same as 1 × 2 trips. The difference is what you are describing. A round trip returns home each time; a trip count without the round-trip setting repeats a one-way leg, which is useful for a daily commute counted in one direction.

Entry and settingsMiles counted → gallons → cost
300 mi one way, 1 trip300 mi → 10 gal → $35.00
300 mi each way, 1 round trip600 mi → 20 gal → $70.00
300 mi one way, 5 one-way trips1,500 mi → 50 gal → $175.00
240 mi each way, 24 MPG, 1 round trip480 mi → 20 gal → $75.00 at $3.75/gal

All rows use $3.50 per gallon unless the row says otherwise. The last row changes both MPG and price to show that the multipliers and the rate inputs are independent: doubling distance doubles gallons, while a lower MPG raises gallons for the same distance.

The round-trip option is exactly a ×2 multiplier. Five round trips of 300 miles is 3,000 miles, which is 100 gallons at 30 MPG and $350.00 at $3.50 per gallon. Entering 300 miles with 10 one-way trips produces the same 3,000 miles.

What changes the real cost

The arithmetic is exact for the numbers you enter; the uncertainty comes from the numbers themselves. On the price side, the per-gallon figure varies by station, state, and date, and diesel is priced separately from gasoline. The price you enter for a trip is a snapshot, not a guarantee of what every stop will charge, and it normally already includes federal, state, and local fuel taxes.

On the MPG side, a single vehicle can span a wide range within one week. Cold starts and short trips burn extra fuel, stop-and-go traffic lowers economy, air conditioning, roof racks, passengers, cargo, and towing add load, and sustained highway speed above roughly 50 mph increases aerodynamic drag. Underinflated tires, idling, and winter fuel blends also pull the number down. That is why an average from several tanks is a better input than a single highway run.

The sensitivities are not symmetrical. A 10% lower MPG raises gallons and cost by about 11%, because 1 ÷ 0.9 = 1.11. A 10% lower price lowers cost by exactly 10%. If both move together, multiply the two factors: 10% worse MPG and a 10% higher price produce about 22% more cost (1.11 × 1.10 = 1.22).

The combined fuel-economy rating on a new vehicle's window sticker comes from U.S. EPA test cycles, not from a road test. The U.S. Department of Energy's fueleconomy.gov publishes those ratings and the test procedures behind them; this calculator uses neither.

Input limits and what is excluded

The calculator accepts U.S. customary units only: miles, U.S. gallons, and U.S. dollars per U.S. gallon. A U.S. gallon is 231 cubic inches, or exactly 3.785411784 liters. Prices quoted per liter or per imperial gallon are not converted, so convert the volume and the price before entering a non-U.S. figure.

  • Distance must be greater than zero and no more than 100,000 miles per leg.
  • MPG must be greater than zero and no more than 1,000.
  • Gas price must be greater than $0 and no more than $100 per gallon.
  • Trip count is optional: blank means one trip, and an entered value must be a whole number from 1 to 1,000.
  • Empty, non-numeric, zero, and negative entries are rejected with a message on the affected field. Nothing is treated as zero.
  • One MPG and one price apply to the whole trip. There is no city/highway split, no per-leg MPG, no towing or payload profile, and no seasonal adjustment.
  • Tank size is not an input. Fuel stops depend on usable tank capacity and the reserve you keep, not on the fuel bill.
  • No live fuel prices, route distances, traffic, tolls, parking, depreciation, or maintenance costs are included. The result is a fuel estimate for budgeting, not a reimbursement rate or a quote.

Need the MPG rather than the cost? The MPG Calculator works in the other direction from a fill-up. If you are converting fuel volume for a non-U.S. price, use the Gallons to Liters Calculator.

Fuel cost calculator FAQs

Does the calculator count the drive home?

Only when you choose Round trip. The distance field is one-way miles, so a 300-mile entry with Round trip selected becomes 600 miles and doubles both gallons and cost. The trip count repeats the whole trip, so 300 miles one way with Round trip and 5 trips is 3,000 miles, not 1,500. For a return leg of a different length, run each leg separately and add the two costs.

How do you calculate gas cost per mile or for a trip?

For a trip, multiply one-way distance by the round-trip and trip-count multipliers, divide total miles by MPG, then multiply gallons by price per U.S. gallon. Cost per mile is price per gallon ÷ MPG. For example, $3.50 ÷ 30 MPG = $0.1167 per mile.

Why is the estimate different from what I actually spend?

The estimate assumes the MPG you entered holds for every mile and that the price stays the same at every fill-up. Real driving includes cold starts, stop-and-go traffic, air conditioning, highway speed, hills, loads, and idling, all of which can lower MPG. Prices also differ between stations and change during a trip. Use your own tank-to-tank MPG for a closer figure, and treat the result as a budget estimate rather than a receipt total.

Should I enter the highway, city, or combined MPG?

Enter the MPG you expect for this specific drive. A highway trip at a steady speed usually returns more than the combined figure, while short city errands usually return less. The combined number on a new vehicle's window sticker is a U.S. EPA test-cycle estimate, not a measurement of your trip, so it is a starting point. If you have an average from your own fill-ups, that number already reflects the mix of driving you do.

Does my tank size change the fuel cost?

No. The calculator reports the fuel burned, and tank size does not change how much fuel the engine uses over a given distance. Tank size only affects how often you stop: divide the gallons needed by the gallons you can safely use between fill-ups to count tankfuls. A 100-gallon trip with 12 usable gallons between stops is about nine tankfuls, or roughly eight refueling stops after the full tank you start with. The fuel bill is the same either way.