Everyday
Fuel Cost Calculator
Estimate the fuel cost of a trip, or calculate your gas mileage (MPG) from a fill-up.
Trip Fuel Estimate
Gallons Needed
—
Total Cost
—
Gas Mileage Result
Fuel Economy (MPG)
—
Cost per Mile
—
Formulas
Gallons Needed
distance ÷ MPG
Fuel required to cover the trip distance
Trip Cost
gallons × price per gallon
Total estimated fuel cost for the trip
MPG
miles driven ÷ gallons used
Fuel economy calculated from a fill-up
L/100km
100 × liters used ÷ km driven
Metric fuel consumption; lower is better
Cost per Mile
gas price ÷ MPG
What each mile costs you in fuel
MPG → L/100km
235.215 ÷ MPG
Approximate conversion between systems
Trip Cost vs Gas Mileage
Trip Cost mode
Plan ahead: enter the distance you plan to drive, your car's fuel efficiency, and the local gas price to estimate what the trip will cost in fuel.
Gas Mileage mode
Look back: enter the miles driven since your last fill-up and the gallons it took to refill, to find your car's real-world MPG.
Switch to Metric to work in kilometers and liters, with results shown as L/100km.
Tips for Better Gas Mileage
Tire pressure: Underinflated tires increase rolling resistance and can lower MPG by several percent.
Driving habits: Smooth acceleration, steady highway speeds, and cruise control reduce fuel use.
Maintenance: Fresh air filters, spark plugs, and correct oil keep your engine running efficiently.
FAQ
Frequently asked questions.
How do I calculate gas mileage (MPG)?
To calculate gas mileage, fill your tank completely and reset your trip odometer to zero. Drive normally until you need to refuel, then divide the number of miles traveled by the number of gallons of gas it took to refill the tank. For example, if you drove 350 miles and it took 14 gallons to fill up, your gas mileage is 350 ÷ 14 = 25 miles per gallon (MPG). Repeat over a few fill-ups and average the results for a more reliable number, since short trips and cold starts can temporarily lower the reading.
How do you estimate gas price for a trip?
To estimate the fuel cost of a trip, divide the total distance by your vehicle's fuel efficiency (MPG) to get the gallons of gas needed, then multiply that by the current price per gallon. For a 300-mile trip in a car that gets 25 MPG at $3.50 per gallon: 300 ÷ 25 = 12 gallons, and 12 × $3.50 = $42.00 total fuel cost. Check current local gas prices before a long trip since prices can vary significantly by region and by gas station.
What is a good MPG for a car?
A good MPG depends on the vehicle type: compact and midsize sedans typically average 30–40 MPG on the highway, hybrids often reach 45–60 MPG, and full-size SUVs or trucks average 15–22 MPG. The EPA-rated combined average for new vehicles sold in the U.S. is around 25–28 MPG. Anything meaningfully above your vehicle class's average is considered good fuel economy, while a sudden drop in your own car's typical MPG can signal a maintenance issue like underinflated tires or a dirty air filter.
How do you convert MPG to L/100km?
MPG and L/100km measure fuel economy in opposite directions — MPG is distance per unit of fuel, while L/100km is fuel used per fixed distance — so a direct multiplication doesn't work. The standard conversion is L/100km = 235.215 ÷ MPG (using US gallons and miles). For example, 25 MPG converts to roughly 235.215 ÷ 25 = 9.4 L/100km. Lower L/100km values mean better fuel efficiency, which is the opposite of MPG where higher is better.
How is L/100km calculated directly from a fill-up?
If you track your fuel economy in metric units, L/100km = 100 × liters used ÷ kilometers driven. For example, if you used 24 liters of fuel to drive 300 km, your consumption is 100 × 24 ÷ 300 = 8.0 L/100km. This calculation works directly from your fill-up data without needing to convert from MPG first, which is why drivers in metric countries track fuel economy this way instead.
What are some tips for improving gas mileage?
Keep tires inflated to the manufacturer's recommended pressure, since underinflated tires increase rolling resistance and can lower MPG by several percent. Avoid aggressive acceleration and braking, remove excess weight and roof cargo boxes, use cruise control on the highway, and keep up with regular maintenance like air filter and spark plug changes. Combining errands into fewer trips and avoiding excessive idling also meaningfully improve real-world fuel economy over time.
Last updated: August 17, 2026