Skip to main content

Gas Mileage Calculator

Use our free gas mileage calculator and gas mileage estimator to measure your car's true MPG from a fill-up, calculate gas mileage cost per mile, and plan accurate road trip and monthly fuel budgets.

Gas Mileage Calculator MPG & Cost Estimator

Calculate vehicle MPG, gas cost per mile, and road trip gas budget

|
Miles driven since your last full tank
Gallons required to refill to full
To calculate cost per mile & total cost

Instant Gas Mileage Analysis

Calculate vehicle MPG from your latest fill-up, or forecast trip fuel costs with monthly and yearly commute budgets.

Formula: Gas Mileage (MPG) = Miles Driven ÷ Gallons Used
NextCodeHub Gas Mileage EstimatorReal-time Formulas

Gas Mileage Cost: How to Calculate Cost Per Mile

Understanding your gas mileage cost allows you to evaluate your daily commute expenses, split road trip fuel fairly, and compare the true running cost of different vehicles. Calculating your cost per mile requires two figures: your gas mileage (MPG) and your local gas price.

Worked Gas Mileage Cost Example

1
Calculate Your Vehicle's MPG:

350 miles driven ÷ 11.5 gallons pumped = 30.4 MPG

2
Divide Gas Price by MPG (Cost Per Mile Formula):

Cost Per Mile = Gas Price ($/gal) ÷ Vehicle MPG

At $3.50 per gallon: $3.50 ÷ 30.4 MPG = $0.115 per mile (11.5¢ / mile)

At $3.40 per gallon: $3.40 ÷ 30.4 MPG = $0.112 per mile (11.2¢ / mile)

3
Scale to Any Journey:

• 100 Miles: 100 × $0.115 = $11.50 (uses 3.29 gallons)
• 500 Miles: 500 × $0.115 = $57.50 (uses 16.45 gallons)
• 1,000 Miles: 1,000 × $0.115 = $115.00 (uses 32.89 gallons)

Cost Per Mile & Distance Comparison Table

Vehicle MPG ClassGas Burned per MileCost/Mile ($3.25/gal)Cost/Mile ($3.75/gal)Cost for 100 Miles
18 MPG (Truck / Full-Size SUV)0.055 gal/mi$0.181 / mi$0.208 / mi$18.06 – $20.83
24 MPG (Midsize Crossover)0.042 gal/mi$0.135 / mi$0.156 / mi$13.54 – $15.63
30 MPG (Standard Sedan)0.033 gal/mi$0.108 / mi$0.125 / mi$10.83 – $12.50
36 MPG (Compact Car)0.028 gal/mi$0.090 / mi$0.104 / mi$9.03 – $10.42
52 MPG (Hybrid Vehicle)0.019 gal/mi$0.062 / mi$0.072 / mi$6.25 – $7.21

How to Calculate Gas Mileage (MPG)

Gas mileage — measured in miles per gallon (MPG) — measures how far your car travels on one gallon of gasoline. While modern dashboards display digital averages, calculating your gas mileage manually with the tank-to-tank method gives you the most accurate real-world measurement.

Step-by-Step Gas Mileage Calculation

  1. 1Fill your gas tank completely to auto shut-off and note your current odometer reading (e.g., 42,000 miles).
  2. 2Drive normally until your tank is roughly a quarter full or ready for a refill.
  3. 3Fill the tank completely again. Note the exact gallons pumped (e.g., 12.0 gallons) and new odometer reading (e.g., 42,360 miles).
  4. 4Subtract starting odometer from ending odometer (360 miles), then divide by gallons pumped (12.0) = 30.0 MPG.

Gas Mileage (MPG) = Miles Driven ÷ Gallons Pumped

Example: 350 miles ÷ 11.5 gallons = 30.4 MPG

Gas Mileage by Vehicle Type

Economy / Compact Car

✅ Excellent Efficiency

30–45 MPG

Midsize Sedan

✅ Good Everyday Commute

24–35 MPG

Full-Size Sedan

⚠️ Average

20–28 MPG

Small SUV / Crossover

⚠️ Average

23–32 MPG

Large SUV / Pickup Truck

❌ Below Average

14–20 MPG

Hybrid Vehicle

🌟 Best Mileage

42–60 MPG

Using a Gas Mileage Calculator to Plan Road Trips

Before heading out on a road trip, smart drivers use a car gas mileage calculator to budget expenses and map out refueling stops. Follow this 5-step checklist:

1

Determine your real-world MPG

Use Tab 1 to calculate your actual highway mileage rather than the window sticker rating, which can be 10–15% higher than highway conditions with passengers and baggage.

2

Calculate total gallons required

Divide your total round-trip distance by your MPG rating. For example, a 600-mile round trip in a 30 MPG sedan requires 20.0 gallons of gas.

3

Check gas prices along the route

Gasoline prices fluctuate between states and counties. Identify discount gas stations or exit plazas beforehand to avoid expensive highway rest stops.

4

Schedule stops based on your tank range

Tank range = Tank Capacity in Gallons × MPG. If your car has a 14-gallon tank at 30 MPG, your max range is 420 miles. Plan stops when your fuel needle hits ¼ full (around 315 miles).

5

Add a 10% safety cushion

Factors such as mountain climbing, idling in traffic, head-winds, and running the air conditioner increase fuel burn. Multiply your estimated gas cost by 1.10 for your final trip budget.

5 Common Gas Mileage Myths — Busted

❌

Myth: Premium fuel increases gas mileage in every car

✅

Unless your engine is designed and tuned for high-octane fuel (turbocharged or high-compression engines), premium 91/93 octane delivers zero MPG gain over standard 87 octane.

❌

Myth: Warming up your engine for 5–10 minutes saves fuel

✅

Modern fuel-injected engines only need 30 seconds of gentle driving to reach operating temperature. Extended idling burns 0.2 to 0.5 gallons of gas per hour and reduces your average MPG.

❌

Myth: Driving with windows down always uses less gas than AC

✅

At highway speeds over 45–50 mph, aerodynamic drag caused by open windows consumes more fuel than running the car's air conditioning system.

❌

Myth: Manual transmissions always achieve better gas mileage

✅

Modern automatic transmissions and CVTs have 8 to 10 gears and computer-optimized shift points that frequently beat manual gearboxes in real-world fuel economy.

❌

Myth: You will always match the official EPA window sticker MPG

✅

EPA figures are produced on indoor laboratory dynamometers. Real-world traffic, cold weather, terrain, and vehicle payload generally cause real gas mileage to be 10–20% lower.

How Driving Conditions Affect Your Gas Mileage

Your actual gas mileage varies depending on road conditions, speed, and environmental factors. Use these benchmarks to adjust your fuel estimates:

Driving ConditionImpact on Gas MileageActionable Advice
Stop-and-go city traffic-20% to -40%Accelerate smoothly and anticipate stops to minimize braking
Highway cruising at 75+ mph-15% to -25%Cruising at 60–65 mph delivers up to 15% better MPG than 75 mph
Air conditioning on maximum-5% to -20%Use vent air at lower speeds; pre-cool car in the shade
Carrying 500 lbs extra luggage-2% to -5%Empty trunk of unnecessary tools, cargo, and roof racks
Winter freezing temperatures-10% to -30%Engine takes longer to reach optimal heat; monitor tire pressures
Steep uphill mountain roads-10% to -25%Maintain steady throttle and avoid rapid acceleration

Vehicle Maintenance That Directly Improves Gas Mileage

Keeping your vehicle properly maintained directly protects your fuel budget. Check your gas mileage before and after servicing to verify efficiency improvements:

Tire Pressure Check

Up to 3% MPG gain

📅 Monthly

Under-inflated tires increase rolling resistance. Keep tires inflated to the PSI listed on your driver door sticker.

Engine Air Filter Check

Up to 10% MPG gain

📅 Every 15,000 miles

A clogged air filter restricts airflow into the combustion chamber, wasting unburned fuel.

Spark Plug Replacement

Up to 4% MPG gain

📅 Every 30,000–60,000 mi

Worn or fouled spark plugs cause engine misfires and incomplete combustion.

Oxygen (O2) Sensor Replacement

Up to 40% MPG gain

📅 When faulty / 100k mi

A failing O2 sensor sends incorrect fuel-air mixture signals, dumping excessive fuel into cylinders.

Synthetic Motor Oil Change

Up to 2% MPG gain

📅 Every 5,000–7,500 mi

High-quality oil reduces internal engine friction. Use the manufacturer's recommended viscosity.

Wheel Alignment Inspection

Up to 2% MPG gain

📅 Every 12 months

Misaligned wheels drag across asphalt, creating friction that forces your engine to work harder.

Frequently Asked Questions

How do I calculate my gas mileage?

Fill your tank completely and note your odometer reading. Drive normally until you need more fuel, then fill the tank completely again. Divide the miles driven by the gallons of fuel required to refill: Miles Driven ÷ Gallons Pumped = MPG. Alternatively, enter both numbers into Tab 1 above.

How much does 100 miles of gas cost?

To calculate the gas cost for 100 miles, divide 100 by your vehicle's MPG and multiply by the gas price per gallon: (100 ÷ MPG) × Gas Price. For example, in a 30 MPG car with gas at $3.50/gallon, 100 miles requires 3.33 gallons and costs $11.67 ($0.117 per mile). In a 20 MPG truck, 100 miles costs $17.50.

How many miles is 1 gallon of gas?

One gallon of gas moves your vehicle for as many miles as its MPG rating. If your car gets 28 MPG, one gallon yields approximately 28 miles of driving. A typical compact car covers 32–40 miles per gallon, while a hybrid can cover 50 miles or more on a single gallon of gas.

Why is my gas mileage lower than the EPA sticker rating?

EPA window sticker ratings are generated on laboratory test benches without wind resistance, aggressive overtaking, freezing temperatures, or heavy air conditioning. In real-world driving, traveling above 65 mph, short stop-and-go trips, under-inflated tires, and extra cargo typically reduce gas mileage by 10% to 25% below official ratings.

Does gas mileage decrease as a car gets older?

Yes, mechanical wear over time can cause gas mileage to drop slightly. Carbon deposits on fuel injectors, worn spark plugs, degraded oxygen sensors, and dirty air filters decrease combustion efficiency. Regular tune-ups and oil changes will restore your vehicle's gas mileage close to its original factory efficiency.

What is a good gas mileage for a passenger car?

A good gas mileage for a gasoline passenger car is 30–40 MPG for highway driving. Vehicles achieving over 40 MPG are considered exceptionally fuel-efficient. Hybrid passenger cars routinely achieve 45–60 MPG.

How can I estimate my gas cost for a road trip?

Switch to Tab 2: Trip & Monthly Cost in the calculator above. Enter your trip distance, your vehicle's average MPG, and local gas price. Toggle the Round Trip button if returning, and our estimator instantly displays total gallons required, total trip cost, and cost per mile.