Smekys
Ad Space

Fuel Cost Calculator

Free fuel cost calculator: estimate trip gallons and dollars from miles, car MPG, and price per gallon, with per-passenger cost split.

Enter Values

mi

One-way miles of the trip; leave it as the total distance you plan to drive.

mpg

Your car's average miles per gallon from the dashboard or your last fill-up.

$/gal

Price per gallon of regular unleaded at the pumps along your route.

people

How many people are splitting the fuel bill, used only for the per-person figure.

Result

Fuel Needed
12
Total Trip Fuel Cost
$42.00
Fuel Cost per Mile
$0.14
Fuel Cost per Person
$42.00

Whether you are planning a weekend road trip, a cross-country move, or simply trying to figure out what your commute is really costing you each month, the single most useful number is the fuel bill. This fuel cost calculator takes three things you already know — how far you are driving, how many miles per gallon your car gets, and what gas costs along the way — and turns them into the gallons you will burn and the dollars you will spend. It is built for US units (miles, miles per gallon, and dollars per gallon), the same inputs the US Environmental Protection Agency uses in its own trip cost calculator at fueleconomy.gov.

Unlike a gas mileage calculator, which starts from your fill-up receipts and works out your MPG, this page starts from a trip you have not taken yet and estimates what it will cost. Adjust any field and the result card updates instantly, so you can stress-test a route by raising the fuel price, swapping in a less efficient car, or splitting the bill among passengers.

How to Use

  1. Enter the Trip Distance in miles. This is the total one-way distance you expect to drive. If your trip is a round trip, double the figure before typing it in, or run the number once and multiply the result by two.
  2. Set your Vehicle MPG. This is your car's average miles per gallon. Most modern dashboards show an instantaneous or lifetime MPG readout; if you do not trust it, fill the tank, reset the trip odometer, and refill at your next stop — miles driven divided by gallons pumped is your true MPG.
  3. Type the Fuel Price per gallon. Use the average price at stations along your route, not just the cheap station near home. Apps that map gas prices are the quickest way to get this number right.
  4. Optionally, enter the number of Passengers. The calculator then divides the total fuel cost evenly so each traveler knows their share.
  5. Read the result card: it shows the Fuel Needed in gallons, the Total Trip Fuel Cost, the Fuel Cost per Mile, and — if you entered more than one passenger — the Fuel Cost per Person.

The math behind the result is deliberately simple. Gallons needed are distance divided by fuel economy, and the dollar cost is gallons multiplied by price per gallon. That is it. There are no hidden tolls, parking fees, or wear-and-tear add-ons here; the page is focused on the fuel line item of your budget.

The Fuel Cost Formula

Trip fuel cost follows the most basic relationship in driving economics:

Fuel Needed (gallons) = Trip Miles ÷ Vehicle MPG Trip Fuel Cost ($) = Fuel Needed × Price per Gallon

For example, a 300-mile trip in a car rated at 25 MPG needs 300 ÷ 25 = 12 gallons. At $3.50 per gallon, that is 12 × $3.50 = $42.00. From there, the cost per mile is simply $42.00 ÷ 300 = $0.14 per mile, which is a handy number to compare against public transit, a rental car, or a rideshare quote.

Two guards matter. If you set Vehicle MPG to zero, the division is undefined — a car that travels zero miles on a gallon of fuel cannot move you anywhere, so the engine rejects it rather than printing an infinite cost. If Trip Distance is zero, both the gallons and the cost come out to zero, which is the correct boundary result for "I am not driving."

Small MPG changes have an outsize effect. Dropping from 30 MPG to 20 MPG on that same 300-mile trip raises fuel used from 10 gallons to 15 gallons — a 50% jump in gas money for a car that only lost a third of its efficiency. That is why choosing the higher-MPG rental, or skipping the pickup truck for the sedan, often saves more on fuel than any coupon at the pump.

Examples

Example 1 — A typical road trip. A family drives 300 miles in a sedan rated at 25 MPG, with gas averaging $3.50 per gallon. Fuel needed is 12 gallons and the total fuel cost is $42.00, or about $0.14 per mile. With four people in the car, each traveler's share is $10.50.

Example 2 — A longer haul in a less efficient SUV. A 500-mile trip in an SUV that gets 20 MPG at a price of $4.20 per gallon burns 25 gallons and costs $105.00. Splitting that three ways comes to $35.00 per person, and the per-mile cost climbs to $0.21 — a reminder that fuel economy, not distance alone, drives the bill.

Example 3 — Scaling to a very long route. A 1,000,000-mile odometer-style scenario at 25 MPG and $3.50 per gallon works out to 40,000 gallons and $140,000.00 in fuel. The engine is built to handle numbers this large without overflow, so fleet managers and long-haul planners can test multi-million-mile annual budgets directly.

FAQ

How do I calculate fuel cost for a road trip?

Divide the trip miles by your car's MPG to get the gallons you will need, then multiply by the price per gallon. For a 300-mile trip at 25 MPG and $3.50 per gallon: 300 ÷ 25 = 12 gallons, and 12 × $3.50 = $42.00. Enter those three numbers above and the result card does the arithmetic for you.

What is a good MPG for a car?

For a modern gasoline car, 20–30 MPG combined is typical. Small hybrids and diesels often reach 40–50 MPG, while large trucks and SUVs may sit in the high teens. The US EPA publishes official combined MPG ratings for every vehicle on fueleconomy.gov, which is the most reliable baseline to type into the Vehicle MPG field.

How much does gas cost per mile?

Take your trip fuel cost and divide it by the trip miles. At 25 MPG and $3.50 per gallon, the cost per mile is $3.50 ÷ 25 = $0.14 per mile. Doubling the MPG halves the per-mile cost, which is why fuel-efficient cars are so much cheaper to drive on long trips.

Should I use highway or combined MPG?

Use combined MPG for mixed driving, because most trips blend city and highway miles. If your route is almost entirely interstate, highway MPG is the better estimate and will lower the fuel bill. If you will be stuck in city traffic, use the lower city figure so your budget is not optimistic.

How do I split gas cost between passengers?

Enter the number of travelers in the Passengers field. The calculator divides the total trip fuel cost evenly. On a $105.00 trip split three ways, each person owes $35.00. This covers fuel only; tolls, parking, and lodging are separate and should be split on their own.

Does the calculator account for headwinds, hills, or cargo?

No. It uses a straight miles-divided-by-MPG estimate. Real-world fuel use rises with aggressive acceleration, heavy cargo, roof racks, mountain grades, and cold weather. If your trip includes any of these, add a 10–20% buffer to the gallons figure before you fill up.

Disclaimer

This fuel cost calculator is provided for informational purposes only and does not constitute financial, automotive, or travel advice. Estimates are based on the inputs you enter and the standard formula fuelNeeded = miles ÷ MPG, tripCost = fuelNeeded × pricePerGallon. Actual fuel economy varies by vehicle condition, driving style, terrain, weather, and cargo; actual pump prices vary by station, region, and day. Always confirm your vehicle's official MPG rating and current local fuel prices before budgeting for a trip.

Related Calculators

Disclaimer

Results are estimates for illustration only. Verify important figures independently.