Attendance Tracker Sign in

Gas Mileage Calculator

Work out your car's miles per gallon from one fill-up, then figure out the gas cost of a trip: one way or round trip, split between everyone in the car. Free, no sign-up.

Miles per gallon

Your gas mileage

30.6 MPG

  • 7.7 L/100 km
  • 13.0 km per litre
  • 10.4¢ per mile
  • $32.54 this fill-up

312.4 miles ÷ 10.2 gallons = 30.63 miles per gallon

Gas cost for a trip

Split between
3

Gas for this trip

$50.04

  • $16.68 each for 3 people
  • 15.7 gallons
  • 480 miles there and back
  • 10.4¢ per mile

480 miles ÷ 30.6 MPG = 15.69 gallons × $3.19 = $50.04

Your numbers stay in this browser. Nothing is uploaded.

Logging the hours for the trip too? Time card calculator · Hours to decimal

How it works

  1. Fill the tank, note the miles since the last fill-up (or both odometer readings) and the gallons it took. Your MPG appears straight away, with L/100 km and the cost per mile.
  2. For a trip, type the one-way distance and the gas price. The car's MPG comes over from your fill-up, or type the MPG you know.
  3. Tick Round trip to double the distance, and set how many people are splitting the cost to see what each one owes.
  4. Press Copy result to paste the numbers into a message to your riders or into your own notes.

How to calculate miles per gallon

Divide the miles you drove by the gallons you put in. Fill the tank to full, reset the trip meter or note the odometer, drive as usual, then fill up to full again. If you drove 312.4 miles and the second fill-up took 10.2 gallons, your gas mileage is 312.4 ÷ 10.2 = 30.6 miles per gallon.

Working it out over a full tank, or better several, gives a truer number than the dashboard estimate, which is often a few MPG optimistic. Town driving, short trips, cold weather, a roof box and air conditioning all lower it.

How to figure out the gas cost of a trip

Divide the trip's distance by your car's MPG to get the gallons you will use, then multiply by the price per gallon. A 240 mile drive each way is 480 miles round trip; at 30.6 MPG that is 15.7 gallons, and at $3.19 a gallon about $50. Split between three people, that is under $17 each.

To estimate gas costs for travel before you go, use the gas price where you will fill up, and allow a little extra for traffic, detours and highway speeds, which use more fuel than steady driving.

Cost per mile and L/100 km

Cost per mile is the gas price divided by MPG: $3.19 at 30.6 MPG is about 10.4 cents a mile. It is handy for comparing two cars or a car with the train. This page counts gas only; it does not include wear, insurance or tax rules for mileage.

If you need metric figures, L/100 km is 235.21 divided by MPG, so 30.6 MPG is about 7.7 litres per 100 km, and km per litre is MPG × 0.425. Both are shown under your result.

Splitting gas for a carpool or road trip

Set Split between to the number of people sharing the ride and the page shows each person's share. Copy the result and paste it into the group chat so everyone sees the same numbers. For a regular commute carpool, work out one round trip and multiply by the days you drive.

Questions

How do I calculate my car's MPG?

Divide the miles driven since the last full tank by the gallons it took to fill up again. 300 miles on 10 gallons is 30 MPG.

How do I figure out gas cost for a trip?

Trip miles ÷ MPG = gallons; gallons × price per gallon = gas cost. 480 miles at 30 MPG and $3.20 a gallon is 16 gallons, or $51.20.

Does it work for a round trip?

Yes. Type the one-way distance and tick Round trip; the distance is doubled for you.

Can I split the cost between passengers?

Yes. Set Split between to the number of people and each person's share is shown.

Can I use odometer readings instead of trip miles?

Yes. Choose Odometer readings and type the reading at your last fill-up and the reading now.

Is my data saved?

Only in this browser on this device, so your car's numbers are there next time. Nothing is uploaded.