Fuel Cost Calculator

Find out how much gas a trip will cost — and how much each person owes if you share the ride.

Use your car's real-world figure, not the brochure.
2 for a round trip.
Fuel cost$36.43
  • Fuel needed10.7 gal
  • Cost per person$36.43
  • Total distance300 mi
  • Cost per distance$0.121 / mi
  • Cost per 100$12.14 / 100 mi
  • Your fuel economy in other units8.4 L/100 km

The trip costs about $36.43 in fuel for 300 mi.

100% private. Everything is calculated in your browser. Nothing you type is sent or stored on a server.

Estimates for guidance only. Real-world results depend on your car, driving and local prices.

How to calculate the fuel cost of a trip

Fuel cost depends on three things: how far you drive, how efficient the car is and what fuel costs. This gas cost calculator works in US units (miles, mpg, dollars per gallon) or metric units (km, L/100 km, price per liter) — switch with the Units menu.

US: gallons = miles ÷ mpg cost = gallons × price per gallon Metric: liters = km × L/100 km ÷ 100 cost = liters × price per liter

Worked example

A 300-mile trip in a car that gets 28 mpg uses about 10.7 gallons. At $3.40 a gallon the trip costs about $36.43. Make it a round trip (2 trips) and split it between 3 people, and each pays about $24.29.

Tips to spend less on fuel

  • Use your real-world mpg from the trip computer or by tracking a full tank — use the gas mileage calculator.
  • Highway speed matters: driving 75 mph instead of 65 can raise fuel use noticeably.
  • Check tire pressure and remove roof boxes when you don't need them.
  • Thinking about going electric? Compare running costs with the EV charging cost calculator.

Work out your yearly fuel cost

Enter the miles you drive in a year as the distance and leave one trip. For 12,000 miles a year at 30 mpg and $3.40 a gallon you use 400 gallons, which costs $1,360 a year — about 11.3 cents a mile. Divide by 12 for a monthly budget ($113).

Fuel cost per mile

Knowing your cost per mile makes many decisions easier: whether a longer route avoids tolls profitably, whether to take the car or the train, or how much a commute really costs. At 28 mpg and $3.40 a gallon, every mile costs about 12 cents in fuel; a 30-mile round-trip commute on 230 working days adds up to around $840 a year.

Splitting the cost fairly

For shared rides, splitting fuel equally is simple and fair for a one-off trip. For regular car-pooling, some people also add a share of wear and tear — a common shortcut is to use a per-mile rate such as the IRS business rate, which includes depreciation and maintenance, not just fuel.

Fuel is only part of the cost

Insurance, tires, maintenance and depreciation often cost as much as fuel or more. If you are comparing cars, also check the car depreciation calculator and, for electric cars, the EV charging cost calculator.

Frequently asked questions

How do I calculate gas cost for a trip?

Divide the distance by your car's mpg to get gallons, then multiply by the price per gallon. For a round trip, double the distance.

How do I split gas money with friends?

Calculate the total fuel cost and divide it by the number of people. Enter the number of people in the calculator to see each share.

What mpg should I use?

Use your car's real-world figure. Official ratings are often a little optimistic, especially at highway speeds or in cold weather.

Does the calculator work with liters and kilometers?

Yes. Choose Metric in the Units menu to enter km, L/100 km and price per liter.

Does it include tolls or parking?

No, it only covers fuel. Add tolls, parking and wear separately if you want the full cost of the trip.

How do I work out my yearly fuel cost?

Enter the miles you drive in a year, your car's mpg and the fuel price. For example, 12,000 miles at 30 mpg and $3.40 a gallon is 400 gallons, or $1,360 a year.

Add this calculator to your website

Free, no sign-up and no ads inside. Copy the code and paste it into your page or blog post.

More lease calculators

Car leasing

Buying & car loans

Running costs & taxes

Tires & conversions