Skip to main content

Calcu.fit

Mileage Calculator: MPG, Trip Fuel Cost, and Mileage Reimbursement

Use this free mileage calculator in three ways. Find your fuel mileage (miles per gallon, kilometers per liter, or liters per 100 km) from the distance you drove and the fuel you used. Estimate the fuel cost of a trip. Or calculate mileage reimbursement or a tax deduction by multiplying your miles by the IRS standard mileage rate. No signup needed.

Mileage Calculator

Fuel mileage

Enter the distance driven and the amount of fuel consumed.

Fuel mileage result
30 MPG
Fuel efficiency

Calculation details

MPG = Distance driven ÷ Gallons used

Results are estimates based on the information you enter. Actual fuel economy and trip costs may vary depending on driving conditions, fuel prices, vehicle condition and other factors. Reimbursement rates are based on US IRS 2026 standard mileage rates.

How to Use This Mileage Calculator

For fuel mileage:

  1. Choose “Fuel mileage.”
  2. Enter the distance you drove (or the start and end odometer readings) and the fuel you used.
  3. Click Calculate to see miles per gallon, km per liter, and liters per 100 km.

For trip cost:

  1. Choose “Trip cost.”
  2. Enter the distance, your vehicle’s fuel mileage, and the price of fuel.
  3. Click Calculate to see the fuel needed and the cost.

For reimbursement or a deduction:

  1. Choose “Mileage reimbursement.”
  2. Enter your miles and choose the purpose (business, medical or moving, or charity).
  3. Choose the period, since the 2026 rate changed in July.
  4. Click Calculate.

What You’ll See in Your Results

  • Fuel mileage in MPG, km/L, and L/100 km
  • Fuel used and fuel cost for a trip, and the cost per mile
  • Mileage reimbursement or deduction amount
  • The rate used, and its source
  • Conversions between fuel efficiency units

The Mileage Formulas

Fuel mileage:

  • MPG = Miles driven ÷ Gallons used
  • Fuel needed = Distance ÷ MPG
  • L/100 km = 100 × Liters used ÷ Kilometers driven

Conversions (U.S. gallons):

  • L/100 km = 235.215 ÷ MPG
  • MPG = 235.215 ÷ (L/100 km)
  • km/L = MPG × 0.425144
  • MPG = km/L ÷ 0.425144

Trip cost:

  • Fuel cost = (Distance ÷ MPG) × Price per gallon
  • Cost per mile = Price per gallon ÷ MPG

Mileage reimbursement or deduction:

  • Amount = Miles × Rate per mile

Distance from an odometer: Miles = End reading − Start reading

Electric vehicles:

  • MPGe = 33.7 ÷ (kWh per mile), since 33.7 kWh is the energy in one gallon of gasoline
  • Cost per mile = kWh per mile × Price per kWh

IRS Standard Mileage Rates for 2026 (United States)

PurposeJan 1 – Jun 30, 2026Jul 1 – Dec 31, 2026
Business72.5 cents per mile76 cents per mile
Medical and certain moving20.5 cents per mile23.5 cents per mile
Charitable service14 cents per mile14 cents per mile
  • The business rate is based on an annual IRS study of fixed and variable costs of operating a car. The IRS raised the business and medical rates in the middle of 2026.
  • The charitable rate is set by law and does not change with costs.
  • The rates apply to cars, vans, pickups, and panel trucks, including electric, hybrid, gasoline, and diesel vehicles.
  • Use the rate for the date of the trip. Miles driven before July 1 use the first rate, and miles on or after July 1 use the second.
  • The IRS usually announces the rates for the next year in late in the year. Check IRS.gov for the current figures.

Mileage Examples

Example 1: Fuel Mileage in MPG

You drive 342 miles and use 11.4 gallons of fuel.

  • MPG: 342 ÷ 11.4 = 30 MPG
  • L/100 km: 235.215 ÷ 30 = 7.84 L/100 km
  • km/L: 30 × 0.425144 = 12.75 km/L

Example 2: Distance from the Odometer

The odometer reads 45,230 at the start and 45,980 at the end.

  • Distance: 45,980 − 45,230 = 750 miles

Example 3: Converting Fuel Efficiency

  • 25 MPG = 235.215 ÷ 25 = 9.41 L/100 km
  • 8 L/100 km = 235.215 ÷ 8 = 29.4 MPG
  • 15 km/L = 15 ÷ 0.425144 = 35.3 MPG

A U.S. gallon (3.785 liters) is smaller than an imperial (UK) gallon (4.546 liters), so UK and US MPG numbers are not the same. For example, 40 MPG in the UK is about 33.3 MPG in the US.

Example 4: The Cost of a Trip

You drive 450 miles in a car that gets 28 MPG, and fuel costs $3.40 a gallon.

  • Fuel needed: 450 ÷ 28 = 16.07 gallons
  • Fuel cost: 16.07 × 3.40 = $54.64
  • Fuel cost per mile: 3.40 ÷ 28 = $0.121
  • Split among 3 people: $18.21 each

This counts fuel only, and not wear, insurance, tolls, or parking.

Example 5: A Metric Trip

You drive 280 km in a car that uses 7.5 L/100 km, and fuel costs 1.30 per liter.

  • Fuel needed: 280 × 7.5 ÷ 100 = 21 liters
  • Fuel cost: 21 × 1.30 = 27.30

Example 6: A Year of Fuel Costs

You drive 12,000 miles a year in a 30 MPG car, with fuel at $3.40.

  • Fuel: 12,000 ÷ 30 = 400 gallons
  • Cost: 400 × 3.40 = $1,360 a year

If a car gets 35 MPG instead of 25 MPG, the fuel for 12,000 miles falls from 480 gallons to about 343 gallons, a saving of about $466 a year at $3.40.

Example 7: Business Mileage Reimbursement

  • 1,200 business miles in March (72.5¢ rate): 1,200 × 0.725 = $870
  • 800 business miles in August (76¢ rate): 800 × 0.76 = $608
  • Round trip of 85 miles each way (170 miles) in April: 170 × 0.725 = $123.25

Example 8: A Full Year of Business Miles

You drive 6,000 business miles from January to June and 6,000 from July to December.

  • First half: 6,000 × 0.725 = $4,350
  • Second half: 6,000 × 0.76 = $4,560
  • Total: $8,910

Example 9: Medical and Charitable Miles

  • 300 medical miles from January to June: 300 × 0.205 = $61.50
  • 300 medical miles from July to December: 300 × 0.235 = $70.50
  • 500 charitable miles in any month: 500 × 0.14 = $70

Example 10: An Electric Vehicle

An electric car uses 30 kWh per 100 miles, or 0.30 kWh per mile. Electricity costs $0.16 per kWh.

  • MPGe: 33.7 ÷ 0.30 = 112 MPGe
  • Cost per mile: 0.30 × 0.16 = $0.048
  • Cost for 100 miles: $4.80

Which Miles Count for Tax?

Rules are set by the IRS and by your employer or country, and can change. In general, for the U.S.:

  • Business miles can include driving between work locations, to meet clients, and to run business errands. Driving from your home to your regular workplace (commuting) is generally not deductible.
  • Medical miles are for driving to get medical care that qualifies as a medical expense, and the deduction applies only if you itemize and your medical expenses exceed the required threshold.
  • Charitable miles are for driving while you volunteer for a qualifying charity.
  • Employees may be reimbursed by their employer at the standard rate or at another rate. Rules about deducting unreimbursed employee expenses are limited, so check current law.
  • Self-employed people can use the standard mileage rate or deduct actual vehicle costs, and the choice may have to be made in the first year you use the car for business.
  • Keep a log: date, miles, starting point, destination, and purpose. A good record is needed to support a claim.

This is general information, not tax advice. Check the IRS website or a qualified tax professional for your situation. Other countries have their own mileage rates and rules.

What Affects Your Fuel Mileage?

  • Speed: most vehicles use more fuel at higher highway speeds.
  • Driving style: hard acceleration and braking use more fuel.
  • Traffic and short trips: stop-and-go driving and cold starts lower mileage.
  • Tire pressure and tire type: low pressure increases fuel use.
  • Weight and roof racks: more weight and more drag use more fuel.
  • Air conditioning and heating: extra load on the engine or battery.
  • Weather and terrain: cold weather, wind, and hills lower mileage.
  • Maintenance: a poorly maintained engine can use more fuel.

Tips for Using a Mileage Calculator

  • To measure MPG accurately, fill the tank, note the odometer, drive, then fill again and divide the miles by the gallons added.
  • Use the average of several tanks of fuel, not just one.
  • Use the right unit for your region: US gallons, imperial gallons, or liters.
  • Choose the correct reimbursement rate for the date and the purpose.
  • Keep a mileage log, using an app or a notebook.
  • Add other costs if you want the full cost of driving, such as maintenance, insurance, depreciation, and tolls.
  • Check current fuel prices before you plan a trip.

Mileage Calculator vs. Other Tools

  • Distance Calculator: the distance between two points or locations.
  • Fuel Cost Calculator: the cost of fuel for a trip.
  • Car Loan Calculator: your car loan payment.
  • Lease Calculator: a car lease payment.
  • Speed Calculator: speed, distance, and time.
  • Unit Converter: convert between units.

Frequently Asked Questions (FAQ)

How do I calculate miles per gallon?

Divide the miles you drove by the gallons of fuel you used. If you drove 342 miles and used 11.4 gallons, you got 30 MPG.

Divide 235.215 by the MPG. 30 MPG is 7.84 L/100 km.

 Divide the distance by your MPG to get the gallons needed, then multiply by the price per gallon. For 450 miles at 28 MPG and $3.40 a gallon, the cost is about $54.64.

For business, 72.5 cents per mile from January 1 to June 30, and 76 cents per mile from July 1. For medical and certain moving purposes, 20.5 cents, then 23.5 cents from July 1. For charity, 14 cents.

Multiply the miles by the mileage rate. For 1,200 business miles at 72.5 cents, the amount is $870.

Generally no. Driving between your home and your regular workplace is treated as personal. Check the current IRS rules.

Yes, for tax claims. Record the date, miles, destination, and the business or other purpose of each trip.

For fuel only, divide the price per gallon by the MPG. At $3.40 and 28 MPG, it is about 12 cents per mile. The full cost of driving is higher when you include maintenance, insurance, and depreciation.

 Miles per gallon equivalent, which compares the energy used by an electric vehicle with the energy in a gallon of gasoline (33.7 kWh).

 It depends on the vehicle type. Compare cars of similar size and type. A higher MPG (or lower L/100 km) means better fuel economy.

Driving style, speed, traffic, weather, tire pressure, and load all affect real-world fuel economy.

Yes. It is free, with no registration and no limits.

It uses standard formulas and the numbers you enter, and the IRS rates are those published for 2026. Always check the IRS or your tax professional for the rates that apply to you.

Disclaimer

This calculator is for general informational purposes only and is not tax, financial, or legal advice. Mileage rates and tax rules change, and what you can claim depends on your situation, your employer, and your country. Check IRS.gov or a qualified tax professional before you claim a deduction or reimbursement.