OmniCalc logo
OmniCalc

Mileage Calculator Guide: Calculate Fuel Cost, MPG & Trip Expenses

7 min read

Ready to calculate?

Use our free Mileage Calculator — no sign-up required.

Open Mileage Calculator

Whether you're planning a road trip budget, calculating mileage reimbursement for work, or tracking your vehicle's fuel economy, mileage calculations help you understand the true cost of driving. Fuel economy varies by speed, load, terrain, and driving style — understanding these factors helps you drive more economically and accurately predict trip costs.

Key Takeaways

  • Fuel cost = (miles ÷ MPG) × price per gallon; gallons needed = miles ÷ MPG
  • Actual MPG: (ending odometer − starting odometer) ÷ gallons added at fill-up
  • 2024 IRS business mileage rate: 67 cents per mile (updated annually)
  • Optimal MPG speed: 45–55 mph; every 10 mph above 55 reduces fuel economy ~4–8%
  • Fuel = only ~20% of total vehicle cost; depreciation is typically the largest expense

Calculating Fuel Cost for a Trip

Fuel cost for any trip = (distance ÷ fuel economy) × fuel price

Example: 350-mile road trip, car gets 28 MPG, gas costs $3.50/gallon • Gallons needed: 350 ÷ 28 = 12.5 gallons • Cost: 12.5 × $3.50 = $43.75

For metric units: • Fuel cost = (distance in km ÷ 100) × fuel consumption (L/100km) × price per liter • Example: 500 km trip, 8L/100km vehicle, $1.60/L: (500 ÷ 100) × 8 × 1.60 = $64.00

For longer road trips, plan your fuel stops: calculate gallons at each stop based on available range (tank capacity × MPG), and check prices along the route using GasBuddy or Google Maps.

  • Fuel cost = (miles ÷ MPG) × price per gallon
  • Gallons needed = miles ÷ MPG
  • Range on a full tank = tank capacity (gallons) × MPG
  • GasBuddy and Google Maps show real-time gas prices along routes

How to Calculate Your Car's Actual MPG

The most accurate MPG measurement comes from fill-up data:

Method: 1. Fill the tank completely and note the odometer reading (start_miles) 2. Drive normally until the next fill-up 3. Fill completely again and record: gallons added and new odometer (end_miles) 4. MPG = (end_miles − start_miles) ÷ gallons added

Example: • Odometer at fill 1: 45,210 miles • Odometer at fill 2: 45,517 miles • Gallons added: 10.3 • MPG = (45,517 − 45,210) ÷ 10.3 = 307 ÷ 10.3 = 29.8 MPG

Track several fill-ups for an average — MPG varies with driving conditions, temperature, and fuel quality.

  • Fill completely, record odometer, fill completely again — divide miles by gallons
  • MPG = (ending odometer − starting odometer) ÷ gallons added
  • Track 3–5 fill-ups and average for reliable baseline
  • Cold weather, AC, and aggressive driving reduce MPG by 10–25%

IRS Mileage Reimbursement: How to Track and Calculate

The IRS sets standard mileage rates annually for business driving deductions:

2024 IRS mileage rates: • Business use: 67 cents per mile • Medical or moving (certain active-duty military): 21 cents per mile • Charitable: 14 cents per mile

For employee reimbursement, many companies use the IRS rate as the standard: drive 150 miles for business, receive 150 × $0.67 = $100.50.

Self-employed and business owners can deduct actual vehicle expenses OR the standard mileage rate (but not both). The standard mileage method is simpler; the actual expense method (gas + maintenance + depreciation + insurance) may be higher for fuel-inefficient vehicles.

Mileage log requirements: the IRS requires documentation of date, destination, business purpose, and miles for every business trip.

  • 2024 IRS business mileage rate: 67 cents per mile
  • Medical/military moving: 21 cents/mile | Charitable: 14 cents/mile
  • Standard mileage vs. actual expense: calculate both to determine which is higher
  • IRS requires: date, destination, purpose, and miles for every trip in your log

Factors That Affect Fuel Economy

Understanding what hurts MPG helps you optimize:

Speed: fuel economy peaks at 45–55 mph for most vehicles. At 70 mph, fuel economy drops approximately 15–20% compared to 55 mph. At 80 mph: 25–30% penalty.

Acceleration and braking: aggressive acceleration and hard braking (jackrabbit driving) reduces fuel economy by 15–30% in city conditions. Smooth driving saves fuel.

Air conditioning: AC decreases fuel economy by 5–25% depending on conditions. At highway speeds, AC vs. open windows: approximately equal. In stop-and-go, windows are slightly better.

Tire pressure: under-inflated tires reduce MPG by ~0.2% per PSI below optimal. Keep tires at manufacturer-recommended pressure (on the door jamb, not the tire sidewall).

Cargo and weight: every extra 100 lbs reduces fuel economy by about 1–2%. Remove unnecessary cargo from your trunk.

  • Speed: optimal fuel economy at 45–55 mph; 70 mph = 15–20% MPG penalty
  • Aggressive driving: 15–30% fuel economy reduction vs. smooth driving
  • AC: 5–25% MPG reduction; minimal difference vs. windows at highway speeds
  • Tires: under-inflation reduces MPG; check pressure monthly

Total Cost of Driving: Beyond Fuel

Fuel is typically 20–25% of total vehicle operating cost. The full picture:

IRS's 67 cents/mile all-in estimate accounts for: • Fuel: approximately 12–18 cents/mile (varies by MPG and gas price) • Depreciation: typically 15–20 cents/mile for an average vehicle • Insurance: approximately 8–12 cents/mile • Maintenance and tires: 5–8 cents/mile • Registration and taxes: 2–3 cents/mile

For comparison: owning and operating an average car in 2024 costs approximately $900–$1,200/month when all costs are included (for 15,000 miles/year). A $3.50/gallon price for a 28-MPG car is only ~$150/month in fuel alone.

  • Fuel = only 20–25% of total vehicle cost; depreciation is often the largest cost
  • IRS 67¢/mile captures all-in operating costs for average vehicle
  • Depreciation: average car loses $3,000–$5,000 in value per year
  • Total ownership: $900–$1,200/month for average US vehicle (2024)

Electric Vehicle Range and Efficiency

For electric vehicles, the equivalent of MPG is MPGe (miles per gallon equivalent):

MPGe = miles per 33.7 kWh (one gallon of gasoline contains ~33.7 kWh of energy)

Cost per mile for EV: (kWh per mile) × (electricity price per kWh) Example: EV uses 0.3 kWh/mile, electricity costs $0.15/kWh • Cost per mile: 0.3 × $0.15 = $0.045 (4.5 cents/mile vs. ~12–16 cents/mile for gasoline)

EV range calculation: (battery capacity in kWh) × efficiency (miles/kWh) Example: 75 kWh battery, 3.5 miles/kWh → range ≈ 262 miles

EV efficiency drops significantly in cold weather (20–40% range reduction below freezing) and at highway speeds above 65 mph.

Frequently Asked Questions

How do I calculate my car's fuel cost for a road trip?

Divide total trip miles by your car's MPG to get gallons needed. Multiply by the expected gas price. For a 500-mile trip in a 30-MPG car at $3.60/gallon: 500 ÷ 30 = 16.7 gallons × $3.60 = $60.12. Add 10% buffer for detours and highway vs. city driving differences.

What qualifies for IRS mileage deduction?

Business miles (between work locations, to client sites, for business purposes). Medical miles (to doctor, therapy, hospital — deductible only if medical expenses exceed 7.5% of AGI). Charitable miles (volunteering). Commuting miles (home to regular place of work) are NOT deductible. Keep a contemporaneous mileage log — the IRS can deny deductions without documentation.

What is a good MPG for a car?

Above 30 MPG combined is considered good for a gasoline car. 25–29 MPG is average. Below 20 MPG (typical for large trucks and SUVs) is poor. Hybrids average 40–50 MPG; plug-in hybrids 50–60 MPGe; pure EVs 80–130 MPGe. The EPA's fueleconomy.gov has official ratings for every vehicle.

Why is my actual MPG lower than the EPA estimate?

The EPA testing cycle doesn't perfectly represent all driving conditions. Common gaps: highway driving above 55–60 mph (EPA tests at lower speeds), aggressive acceleration, towing, cold weather, running AC, city stop-and-go in heavy traffic, and terrain (mountain driving burns significantly more fuel). Most drivers see 80–90% of the EPA estimate in real-world use.

Is it worth driving further to get cheaper gas?

Use this quick calculation: savings per gallon × gallons needed = total savings. If the detour uses D extra miles: cost of detour = D ÷ MPG × current gas price. Only makes sense if savings > detour cost. For 15 gallons at $0.10/gallon savings = $1.50 savings. If the detour is 2 miles at 30 MPG and $3.60/gallon: $0.24 in extra fuel. Worth it for just $0.10/gallon savings in this case.

Try the Mileage Calculator

Free, instant, and accurate — calculate now.

Open Mileage Calculator