Skip to main content

Gas Mileage Calculator — MPG & Fuel Cost

Calculate your car's gas mileage in MPG or L/100km. Enter miles driven and fuel used, plus gas price to estimate monthly and annual fuel costs.

Share this calculator

Formula

MPG = Miles Driven ÷ Gallons Used

Divide total miles driven by gallons of fuel consumed. For accurate results, track multiple fill-ups and calculate based on cumulative totals rather than averaging individual tank MPG.

Worked Examples

Example 1: Single Tank Calculation

Problem: You drove 387 miles and filled up with 13.8 gallons. What's your MPG?

Solution: Formula: MPG = Miles Driven ÷ Gallons Used\n\nMPG = 387 ÷ 13.8\nMPG = 28.04\n\nRounded: 28.0 MPG\n\nThis represents the fuel economy for this specific tank of gas.

Result: 28.0 MPG for this fill-up

Example 2: Multi-Tank Average

Problem: Over 3 fill-ups: Tank 1: 350 mi/12.5 gal, Tank 2: 385 mi/13.2 gal, Tank 3: 342 mi/11.8 gal. What's average MPG?

Solution: Total miles = 350 + 385 + 342 = 1,077 miles\nTotal gallons = 12.5 + 13.2 + 11.8 = 37.5 gallons\n\nAverage MPG = 1,077 ÷ 37.5 = 28.72 MPG\n\nDo NOT average individual tank MPGs:\n(28 + 29.2 + 29) ÷ 3 = 28.7 (close but not exact)\n\nAlways use total miles / total gallons

Result: Average MPG: 28.7 across all tanks

Example 3: Converting MPG to L/100km

Problem: Your car gets 32 MPG. What is this in the metric L/100km?

Solution: Formula: L/100km = 235.215 ÷ MPG\n\nL/100km = 235.215 ÷ 32\nL/100km = 7.35\n\nThis means the car uses 7.35 liters to drive 100 kilometers.\n\nNote: Lower L/100km is better (opposite of MPG)

Result: 32 MPG = 7.35 L/100km

Frequently Asked Questions

How do I accurately calculate my car's MPG?

The most accurate method: Fill your tank completely, reset trip odometer. Drive normally. At next fill-up, note miles driven and gallons to fill. MPG = Miles ÷ Gallons. For best accuracy, track multiple fill-ups and average them. One fill-up can be affected by different fill levels - averaging 3-5 fill-ups gives true MPG. Don't trust the first calculation after resetting.

Why is my actual MPG lower than the EPA estimate?

EPA estimates are measured under controlled laboratory conditions that don't match real-world driving. Real MPG is typically 10-30% lower due to: city driving instead of highway, aggressive acceleration, excessive idling, AC use, cargo weight, cold weather, mountainous terrain, and individual driving habits. EPA revised testing in 2008 to be more realistic, but estimates still represent ideal conditions. Highway MPG is usually closest to reality; city MPG often falls short.

How does driving style affect fuel economy?

Aggressive driving (rapid acceleration, speeding, hard braking) can reduce MPG by 15-30% on the highway and 10-40% in stop-and-go traffic. Gentle acceleration and gradual braking improve MPG. Using cruise control on highways maintains steady speed for optimal efficiency. Anticipating traffic lights reduces unnecessary braking and acceleration. Each 5 mph over 50 mph costs roughly $0.20 per gallon in reduced efficiency. Smooth, predictable driving is key.

How much does tire pressure affect gas mileage?

Under-inflated tires increase rolling resistance and reduce MPG by up to 3% for every 1 PSI drop in all four tires. If your tires should be 35 PSI but are at 28 PSI (7 PSI low), you're losing about 2.5% fuel economy. Check tire pressure monthly when tires are cold. Proper inflation also extends tire life by 25% and improves safety. Over-inflation gives minimal MPG benefit but reduces traction and causes uneven wear.

What's the difference between MPG, MPGe, and L/100km?

MPG (Miles Per Gallon) measures distance per unit of gasoline - higher is better. MPGe (Miles Per Gallon equivalent) applies the same scale to electric and hybrid vehicles, where 33.7 kWh of electricity equals one gallon of gas. L/100km (Liters per 100 kilometers) used internationally - lower is better. Conversions: MPG × 235.215 = L/100km. A car rated 30 MPG = 7.8 L/100km = 30 MPGe if electric.

Does fuel quality affect MPG?

For most vehicles, premium gas provides zero MPG benefit over regular if the car is designed for regular fuel. Top Tier detergent gasoline (brands like Chevron, Shell, Costco) can improve MPG by 2-4% by keeping fuel injectors clean compared to minimum-additive fuel. E85 (85% ethanol) reduces MPG by about 15-30% compared to pure gasoline because ethanol has lower energy content. Use the fuel grade specified in your owner's manual.

Background & Theory

The Gas Mileage Calculator - Track Your MPG applies the following established principles and formulas. Transportation calculations center on the fundamental relationship between distance, speed, and time expressed as d = s × t. This triangle of variables allows any one quantity to be derived when the other two are known, supporting applications ranging from estimating arrival times to calculating required average speed for a journey. Real-world calculations must account for stops, speed variations, traffic delays, and speed limits, making simple division an approximation that practical tools refine with additional parameters. Fuel consumption is expressed differently in different regions. North American convention uses miles per gallon (MPG), a larger number indicating better efficiency. Most other countries use liters per 100 kilometers (L/100km), where a smaller number indicates better efficiency. The conversion between them is not a simple linear scaling but an inversion relationship: MPG = 235.21 / (L/100km). For aviation and long-distance navigation, straight-line map distances underestimate the actual path because the Earth is a sphere. The Haversine formula calculates great-circle distance — the shortest path across the Earth's surface between two points defined by latitude and longitude — accounting for spherical geometry. Flight times further depend on prevailing winds, particularly the jet stream, which can reduce eastward transatlantic crossing times by an hour or more compared to westbound flights. Carbon emissions vary substantially by transport mode. IPCC and comparable figures express emissions in grams of CO2 equivalent per passenger-kilometer. Short-haul flights produce roughly 255 g/pkm, private car travel averages around 170 g/pkm, long-distance rail averages about 41 g/pkm, and bus travel approximately 89 g/pkm. Electric vehicles shift emissions upstream to electricity generation, so their net footprint depends on the carbon intensity of the local grid. Electric vehicle range calculations depend on battery capacity in kilowatt-hours, consumption expressed as kWh/100km, and factors including temperature, speed, and auxiliary loads. Vehicle depreciation calculations use either straight-line methods, which allocate equal cost per year, or declining-balance methods, which front-load depreciation to reflect the faster early loss of market value typical of most vehicles.

History

The history behind the Gas Mileage Calculator - Track Your MPG traces back through the following developments. The history of transportation is inseparable from the history of human civilization. The invention of the wheel around 3500 BCE in Mesopotamia transformed overland transport, enabling carts and chariots that multiplied the load a person or animal could move. Roman engineers built over 80,000 kilometers of paved road radiating from Rome, integrating an empire that stretched from Scotland to Mesopotamia. These roads used standardized construction methods and milestones, creating the first large-scale infrastructure for consistent travel time estimation. For millennia, transportation speed was bounded by the pace of animals and the wind. The steam locomotive shattered this ceiling. Richard Trevithick's first steam-powered rail vehicle ran in 1804, and by the 1830s commercial railways were operating in Britain. The transcontinental railroad completed across the United States in 1869 reduced the coast-to-coast journey from months by wagon to under two weeks, transforming the economic geography of a continent. Karl Benz received a patent for the Benz Patent-Motorwagen in 1886, widely recognized as the first true gasoline-powered automobile. Within two decades the internal combustion engine had begun displacing the horse in cities. The United States Interstate Highway System, authorized by the Federal Aid Highway Act of 1956 and inspired partly by the German Autobahn, constructed 77,000 kilometers of controlled-access highway and reshaped American land use, commuting patterns, and the trucking industry. Orville and Wilbur Wright achieved powered heavier-than-air flight at Kitty Hawk in December 1903, a twelve-second flight of 37 meters. Within fifty years commercial jet aviation had made intercontinental travel routine. The Boeing 707 entered service in 1958, and by the 21st century over four billion passengers per year were traveling by air. The NAVSTAR GPS constellation, fully operational by 1995 and opened to civilian use, transformed navigation from a specialized skill to a universal utility. Smartphone-based navigation apps emerged after 2007, integrating real-time traffic data to optimize routes dynamically. The 21st century has seen the rise of electric vehicles and the early development of autonomous driving systems, promising further transformation in how transportation time and cost calculations are made.

References