Fuel is one of the largest recurring costs of owning a car, yet most drivers have only a rough guess at how much they actually spend each mile. This gas mileage calculator from Smekys turns a simple fill-up into four useful numbers: your real-world miles per gallon (MPG), what each mile costs you at today's pump price, what the fill-up itself cost, and what you can expect to pay for fuel over a full year of average driving. It works the same way whether you drive a compact commuter, an SUV, or a pickup, and it takes only seconds to fill in.
The most accurate way to measure MPG is the tank method: fill the tank full, drive normally, then refill it to the same level and record the gallons it took. That second refill is the number that matters, because it tells you exactly how much fuel you burned over the miles on the odometer.
How to Use
- Enter the Miles Driven. This is the distance covered between two fill-ups — best read straight from your odometer. If you reset a trip meter at the last fill-up, that reading is ideal.
- Enter the Gallons of Gas Used. The cleanest value is the gallons it took to refill the tank after the trip, not the amount you pumped this time. A refill-to-full measurement removes the guesswork of a half-empty tank.
- Enter the Fuel Price per gallon. Use the actual price on your receipt for the most accurate cost figures, or your local average if you are planning ahead.
The result card then shows your Miles Per Gallon, the Fuel Cost per Mile, the Fuel Cost This Trip, and your Estimated Annual Fuel Cost based on 15,000 miles of average US driving. A higher MPG means you go farther on every dollar, so small improvements in driving habits or vehicle maintenance can noticeably lower the numbers below.
The Gas Mileage Formula
Fuel economy is defined the same way the US Environmental Protection Agency (EPA) measures it:
MPG = Miles Driven ÷ Gallons of Gas Used
From MPG, the cost figures follow directly:
- Fuel Cost per Mile = Fuel Price per Gallon ÷ MPG
- Fuel Cost This Trip = Fuel Price per Gallon × Gallons Used
- Estimated Annual Fuel Cost = (15,000 ÷ MPG) × Fuel Price per Gallon
For example, if you drive 300 miles and burn 12 gallons, your MPG is 300 ÷ 12 = 25 MPG. At $3.50 per gallon, each mile costs $3.50 ÷ 25 = $0.14, and filling up those 12 gallons cost $42.00 for the trip. Projected over 15,000 miles a year, your estimated annual fuel cost is (15,000 ÷ 25) × $3.50 = $2,100.00.
Notice the inverse relationship: cost per mile moves against MPG. Doubling your MPG from 20 to 40 at the same fuel price halves your per-mile cost, which is why buyers often focus on a few MPG points when shopping — over 15,000 miles a year, a 5 MPG difference can mean hundreds of dollars saved at the pump.
What Affects Your Real-World MPG
The MPG printed on a window sticker is a lab test result; your actual number is usually lower. Several factors move it around:
- Driving style — aggressive acceleration and braking can reduce MPG by 15%–25% versus relaxed cruising.
- Speed — fuel economy typically drops sharply above 60 mph; every 5 mph faster can cost you the equivalent of roughly $0.25 per gallon.
- Terrain — hills, mountains, and stop-and-go city traffic consume noticeably more fuel than steady highway driving.
- Maintenance — under-inflated tires, clogged air filters, and worn spark plugs all drag down MPG.
- Cargo and aerodynamics — extra weight and roof racks reduce efficiency, especially at speed.
Because of these variables, measure your MPG over several tanks rather than trusting a single fill-up. Average three or four readings and you will have a dependable baseline you can compare against when fuel prices rise or your car starts consuming more gas than usual.
Examples
Example 1 — A typical commuter. You fill up, drive 300 miles around town, then refill with 12 gallons at $3.50 per gallon. MPG = 300 ÷ 12 = 25.0 MPG, fuel cost per mile = $0.14, and the trip cost $42.00. Projected over 15,000 annual miles, expect about $2,100.00 per year in fuel.
Example 2 — A highway road trip. You drive 420 highway miles and use 14 gallons at $3.25 per gallon. MPG = 420 ÷ 14 = 30.0 MPG, cost per mile = $0.11, and the trip fuel cost is $45.50. Higher steady-speed driving pushed the MPG up and the per-mile cost down compared with city commuting; at 30 MPG the projected annual fuel bill is about $1,625.00.
Example 3 — Comparing two cars. Car A gets 22 MPG and Car B gets 38 MPG. At $3.50 per gallon over 1,000 miles, Car A spends (1,000 ÷ 22) × $3.50 ≈ $159.09, while Car B spends (1,000 ÷ 38) × $3.50 ≈ $92.11. The more efficient car saves roughly $67 on every 1,000 miles — over $1,000 a year at 15,000 miles.
FAQ
How do I calculate my car's MPG?
Divide the miles you drove by the gallons of gas you used. The most accurate method is to fill the tank, record the odometer, drive normally, then refill to full and note the gallons added: MPG = (new odometer − old odometer) ÷ gallons added. This calculator does that division for you.
What is a good MPG for a car?
Average gasoline vehicles in the United States get roughly 24–26 MPG combined. Anything above 30 MPG combined is generally considered efficient, while hybrids commonly reach 45–55 MPG. Large trucks and SUVs often fall between 15 and 22 MPG. Compare your result against the EPA rating for your specific make and model.
How much does gas cost per mile?
Divide your fuel price per gallon by your MPG. For example, at $3.50 per gallon and 25 MPG, the fuel cost per mile is $3.50 ÷ 25 = $0.14. This figure ignores wear, insurance, and depreciation — it counts only the fuel burned.
How much will I spend on gas in a year?
Multiply your annual miles by your fuel cost per mile, or compute (Annual Miles ÷ MPG) × Price per Gallon. Using the US average of 15,000 miles a year at 25 MPG and $3.50 per gallon, your annual fuel cost is about $2,100.00. Drive fewer or more miles than that, and the total scales up or down proportionally.
How can I improve my gas mileage?
Keep tires properly inflated, replace clogged air filters, ease off aggressive acceleration, avoid excessive idling, remove heavy cargo and roof racks, and stay near 60 mph on the highway. These habits can realistically raise your MPG by 10%–20% without buying a new car.
Why is my real MPG lower than the window sticker?
EPA ratings are measured under controlled lab conditions. Real-world numbers fall because of hot or cold weather, hills, stop-and-go traffic, fast highway speeds, and heavy loads. A gap of 10%–20% below the advertised combined MPG is normal.
Disclaimer
This gas mileage calculator from Smekys is provided for informational purposes only and does not constitute financial, automotive, or fuel-purchasing advice. Estimates are based on the inputs you enter and the standard MPG = miles ÷ gallons formula; actual fuel economy varies with driving habits, terrain, weather, vehicle condition, and fuel price. The annual fuel cost assumes the US average of 15,000 miles per year. Always confirm your vehicle's official ratings and fuel costs directly with the manufacturer and at the pump. Smekys makes no guarantee of specific fuel economy or pricing and is not liable for any purchasing decision made using these estimates.