Automotive calculators

Mileage Cost Calculator

Updated Aug 23, 2026 By Jehan Wadia
Rate Formulas
Trip Details
Unit System
Switching converts every value already entered.
Enter one-way distance; the round-trip switch doubles it.
Trip Type
Unchecked = one way only.
Used for the cost-per-person split.
Display only — prices are entered in this currency.
Both units are shown side by side in the results.
Vehicle Details (3 of 3 compared)
Vehicle 1
Vehicle 2
Vehicle 3
Trip Cost Results
Total Distance
Fuel / Energy Used
Total Trip Cost
Cost Per Person
Cost Per Distance
CO₂ Emissions
Reimbursement Value
Cheapest Option
Vehicle Comparison
Cost Comparison
CO₂ Emissions Comparison
Step-by-Step Solution

Introduction

The Mileage Cost Calculator shows how much a drive will cost you in gas, diesel, or electricity. Type in your trip distance, your car's fuel economy, and the price you pay for fuel. The calculator gives you the total trip cost right away.

You can compare up to three vehicles side by side. Put in your car, a truck, and an electric SUV, and see which one is cheapest for the same trip. The tool also shows cost per person if you split the bill, cost per mile or kilometer, and how much CO₂ the trip makes.

It works in miles and gallons or kilometers and liters. Just flip the switch and every number changes for you. You can also check the mileage reimbursement value, which helps if you drive for work and get paid back per mile — our Mileage Reimbursement Calculator digs deeper into that side of the math.

A step-by-step section shows the math behind each answer, so you can see exactly how the trip cost was found. Charts let you compare costs and emissions at a glance. If you want a broader travel budget that includes lodging, food, and tolls, try the Trip Cost Calculator.

How to use our Mileage Cost Calculator

Enter your trip distance, how many people are riding, and details for up to three vehicles. The calculator shows your total trip cost, fuel or energy used, cost per person, cost per mile and kilometer, CO₂ emissions, and which car is cheapest.

Unit System: Pick Imperial (miles and gallons) or Metric (kilometers and liters). Switching changes every number you already typed.

One-Way Trip Distance: Type how far it is one way, then pick miles or kilometers. Not sure how far it is? Check the Driving Distance Calculator or the ZIP Code Distance Calculator first.

Trip Type: Leave the switch on for a round trip to double the distance. Turn it off for a one-way drive.

People Sharing the Cost: Type how many people will split the gas money. Use 1 if you drive alone.

Currency Symbol: Choose the money symbol you want to see, like $, €, or £. Enter your fuel prices in that same currency.

Mileage Reimbursement Rate: Type the rate your job pays per mile or per kilometer. The default is the 2025 IRS rate of $0.70 per mile.

Electricity Grid CO₂ Intensity: Type how much CO₂ your power grid makes per kWh. This only affects electric cars.

CO₂ Display Unit: Choose pounds or kilograms for the emissions results.

Vehicle Name: Give each car a short name so you can tell them apart in the table and charts.

Fuel Type: Pick regular, mid-grade, premium, diesel, or electric. This sets the CO₂ math and the price units.

Fuel Efficiency: Type your car's gas mileage or energy use, then pick the unit like MPG, L/100 km, or mi/kWh. Check your trip computer or window sticker, or work it out from your last few fill-ups with the Gas Mileage Calculator or the Fuel Consumption Calculator.

Fuel Price: Type what you pay per gallon, per liter, or per kWh for electric cars. For a quick single-tank estimate, the Fuel Cost Calculator and Gas Cost Calculator cover the basics.

Add or Remove Vehicle: Use these buttons to compare one, two, or three vehicles side by side.

Detailed For: Choose which vehicle gets the full step-by-step math and the result cards.

Press Calculate to see your results, or Reset to start over with the default values.

What Is Mileage Cost?

Mileage cost is how much money you spend on fuel or electricity to drive a certain distance. Every mile you drive burns a little fuel, and that fuel costs money. When you add it all up for a whole trip, you get your trip cost.

The Simple Math Behind It

Only three numbers matter:

  • Distance – how far you drive. For a round trip, double the one-way distance.
  • Fuel efficiency – how far your car goes on one gallon, one liter, or one kWh.
  • Price – what you pay per gallon, per liter, or per kWh.

Divide the distance by your efficiency to get how much fuel you need. Then multiply that by the price. For example, a 200-mile trip in a car that gets 25 MPG uses 8 gallons. At $3.50 a gallon, that trip costs $28. To see how long that drive takes as well as what it costs, pair this with the Drive Time Calculator or the Speed Distance Time Calculator.

Gas Cars vs. Electric Cars

Gas and diesel cars are rated in MPG (miles per gallon) or L/100 km. Electric cars are rated in mi/kWh or kWh/100 km. Electricity usually costs less per mile than gas, because home power rates are often cheaper and electric motors waste less energy. You can check your home rate with the Electricity Cost Calculator or the kWh Calculator. Diesel engines get better mileage than gas engines, but diesel fuel usually costs more per gallon.

Splitting the Cost

If friends or coworkers ride along, the fuel cost can be shared. Divide the total by the number of people. A carpool of four people cuts each person's share to one quarter, which is one big reason carpooling saves money. Comparing a drive against a rideshare? The Uber Cost Calculator and Taxi Fare Calculator make that easy.

Mileage Reimbursement

If you drive for work, your job may pay you back by the mile instead of paying for fuel. The IRS business standard rate was 70 cents per mile in 2025. This rate covers more than gas — it also covers wear on tires, oil changes, repairs, insurance, and the value your car loses over time, which you can estimate with the Car Depreciation Calculator. That is why the rate is often higher than what you spend on fuel alone. Truckers and delivery fleets can also check the Fuel Surcharge Calculator, and toll-heavy routes are covered by the Toll Calculator.

CO₂ From Driving

Burning fuel makes carbon dioxide. One gallon of gasoline makes about 19.6 pounds of CO₂, and one gallon of diesel makes about 22.4 pounds. Electric cars make no CO₂ from the tailpipe, but the power plant that made the electricity may still make some. How much depends on your local grid. Clean grids with wind, solar, hydro, or nuclear power make far less than grids that burn coal. To see how driving fits into your whole year, try the Carbon Footprint Calculator.

Ways To Lower Your Cost Per Mile

  • Keep tires filled to the right pressure — the Tire Pressure Calculator helps you find it.
  • Drive smoothly and avoid hard stops and fast starts.
  • Slow down — most cars use much more fuel above 65 mph.
  • Take extra weight and roof racks out of the car.
  • Combine errands into one trip so the engine stays warm.
  • Compare fuel prices before a long drive.
  • Track your real-world economy over time with the Mileage Calculator.

Formulas used

Total trip distance
D = d_{\text{one-way}} \times m, \quad m = \begin{cases} 2 & \text{round trip} \\ 1 & \text{one way} \end{cases}
Fuel or energy consumed on the trip
V = c \times D, \quad c = \frac{1}{E}
Total trip cost
C = V \times P
Cost per person
C_{person} = \frac{C}{n}
Cost per unit distance
C_{dist} = \frac{C}{D}
Tailpipe CO2 emissions (liquid fuel)
m_{CO_2} = V \times k_{fuel}
Grid CO2 emissions (electric vehicle)
m_{CO_2} = E_{kWh} \times k_{grid}
Mileage reimbursement value and net result
R = D \times r_{rate}, \quad N = R - C

Frequently asked questions

Why is my answer different from what I paid at the pump?

The calculator uses the average fuel economy you type in. Real driving changes it. Cold weather, hills, traffic, wind, roof racks, and fast driving all burn more fuel. City driving also uses more than highway driving in most gas cars. For a closer match, use your car's real number from your last few fill-ups instead of the window sticker number.

Should I use my highway MPG or my city MPG?

Use the one that matches your trip. A long road trip is mostly highway, so use the highway rating. Short in-town drives use the city rating. For a mixed trip, use your car's combined number or your real average from the trip computer.

What is the difference between US MPG and UK MPG?

A UK gallon is bigger than a US gallon. One UK gallon is about 4.55 liters and one US gallon is about 3.79 liters. So the same car shows a higher number in UK MPG. A car rated 30 MPG (US) is about 36 MPG (UK). Pick the right unit in the dropdown so your cost is correct.

Can I mix units, like miles for distance and liters for fuel?

Yes. Each dropdown works on its own. You can enter distance in miles and set the price per liter, or use L/100 km with a price per gallon. The calculator converts everything for you behind the scenes.

Why does my electric car show CO₂ if it has no tailpipe?

Electric cars make zero CO₂ while driving. But the power plant that made the electricity may burn coal or gas. The calculator uses your grid CO₂ intensity to estimate that. If your power comes from wind, solar, hydro, or nuclear, lower the grid number or set it to 0.

What grid CO₂ number should I use?

The default is 0.85 lb/kWh, close to the US average. Clean grids can be under 0.2 lb/kWh. Coal-heavy grids can be over 1.5 lb/kWh. Your power bill or your utility's website often lists the number. If you charge with home solar, use 0.

Does the total cost include tolls, parking, or wear on the car?

No. This tool only counts fuel or electricity. It does not add tolls, parking, food, hotels, tires, oil, or repairs. The reimbursement number is the only figure that covers those extras, because per-mile rates are meant to cover the full cost of owning a car.

Why is the reimbursement value higher than my fuel cost?

Because a per-mile rate pays for more than gas. It also covers tires, oil changes, repairs, insurance, and the value your car loses each year. Fuel is only part of the real cost of driving. The gap you see is the "net" number in the results.

How do I set the reimbursement rate for my job?

Type the exact rate your employer pays into the box. Many companies use the IRS rate, but some pay less. Set the unit to per mile or per km to match your paperwork. If you never get paid back for driving, set it to 0.

How do I enter an electric car's efficiency?

Pick Electric as the fuel type. Then choose mi/kWh, km/kWh, kWh/100 mi, or kWh/100 km. Most EVs get about 2.8 to 4.2 mi/kWh. Your dash screen shows this number. For the price, enter your home power rate per kWh, which is often on your electric bill.

Should I use my home rate or a public charger rate for an EV?

Use the rate you will actually pay. Home charging is usually cheapest. Public fast chargers cost much more, sometimes two or three times the home rate. For a road trip where you fast charge, enter the charger's price per kWh instead.

Does the EV cost include charging losses?

No. The number is based on energy used by the car. Charging wastes a little power as heat, usually 10% to 15%. To include that, lower your mi/kWh a bit or raise your kWh price by about 10%.

Can I compare a gas car and an electric car in the same table?

Yes. That is what the three vehicle cards are for. Set one to gas, one to diesel, and one to electric. The table shows total cost, cost per person, cost per mile, and CO₂ for all of them side by side. The cheapest one gets a green highlight.

How do I compare only two vehicles?

Click Remove on the card you do not need. The table and charts update right away. Use Add vehicle to bring it back. You can compare one, two, or three vehicles at a time.

What does "Detailed for" do?

It picks which vehicle gets the big result cards and the step-by-step math. The comparison table and charts always show every vehicle. Switch it to see the full worked math for a different car.

Why does the cost per person seem too low?

It splits the fuel cost evenly by the number of riders you enter. If only the driver pays for gas, set People to 1. If riders split the cost with the driver, count everyone including the driver.

Does the round trip switch double my fuel cost too?

Yes. It doubles the distance, so fuel used, cost, CO₂, and reimbursement all double as well. Turn it off if you are only driving one way, like a one-way move or a ride home with someone else.

Can I use this for a monthly commute instead of one trip?

Yes. Enter your one-way commute distance, keep round trip on, and you get the daily cost. Multiply that by your work days to get a month. Or enter your total monthly miles as a one-way distance with round trip turned off.

Does towing a trailer or carrying a heavy load change the answer?

Yes, a lot. Towing can cut fuel economy by 20% to 50%. The calculator does not know you are towing, so lower the MPG you enter to match. A truck that gets 24 MPG empty may only get 14 MPG while pulling a trailer.

Why do premium and regular gas show the same CO₂?

All gasoline grades burn about the same, near 19.6 pounds of CO₂ per gallon. The octane rating changes how the fuel resists knocking, not how much carbon it holds. Diesel makes more CO₂ per gallon, about 22.4 pounds, because it is denser.

Can I switch currencies to convert my cost?

No. The currency picker only changes the symbol shown. It does not convert money. Enter your fuel price in the same currency you pick, and every result stays in that currency.

Why does switching to Metric change all my numbers?

It converts them so nothing is lost. Miles become kilometers, MPG becomes L/100 km, and a price per gallon becomes a price per liter. The math and the final cost stay the same. Only the units on screen change.

What is a good cost per mile?

For fuel only, most gas cars land near 10 to 18 cents per mile. Efficient hybrids can be under 8 cents. Electric cars charged at home are often 4 to 6 cents. Big trucks and SUVs can top 25 cents. Your number depends on fuel price and your car's economy.

Is driving cheaper than flying or taking a rideshare?

Often yes for short and medium trips, especially with riders splitting the cost. Compare the total cost here against a ticket price or fare. Remember this tool only counts fuel, so add tolls, parking, and a hotel for very long drives before you decide.

Why is my diesel truck cheaper per mile than my gas car sometimes?

Diesel engines usually go farther on a gallon. Even though diesel costs more per gallon, better mileage can win. Try both in the table and see which one comes out ahead at today's prices.

My results are not showing. What went wrong?

Check for a red message under a box. Distance, efficiency, and price must all be more than 0, and People must be at least 1. Blank boxes stop the math. Fix the flagged box and results appear again. You can also press Reset to start clean.