Transportation calculator

Free fuel cost calculator

Enter distance, your car's mpg, and gas price — this fuel cost calculator shows trip cost and annual fuel spend in seconds, updated live, as you type.

InputsLive
Calculate
Miles driven
mi
Fuel efficiency
MPG
Gas price
$/gal
Result
Fuel cost
$1,500
428.6 gallons · $28 MPG · 3.50/gal
Fuel cost$1,500
Gallons used428.6
Cost per mile$0.13
MPG28 MPG

Actual fuel consumption depends on driving style, terrain, and vehicle condition. EPA ratings are for comparison only.

Results are estimates. Consult a professional.

How it's calculated

How the fuel cost calculator works

This calculator converts trip or annual distance into a fuel cost using your vehicle's fuel economy (mpg) and the local price per gallon. The math is straightforward: divide total miles by fuel efficiency to find gallons consumed, then multiply by the price per gallon to get the total cost.

Gallons needed = Miles ÷ MPG
Fuel cost = Gallons needed × Price per gallon
Annual fuel cost = (Annual miles ÷ MPG) × Price per gallon

The EPA publishes combined, city, and highway mpg ratings for every new vehicle. Combined mpg (55% city / 45% highway) is the best single figure for mixed driving. Real-world mpg typically runs 15–20% below the EPA label, especially in cold weather, stop-and-go traffic, or at highway speeds above 65 mph. Using the EPA combined figure for trip planning provides a reasonable — if slightly optimistic — estimate.

EPA fueleconomy.gov — official source for US vehicle mpg ratings
Example

Worked example: annual fuel cost for a 28 mpg sedan

Example: 13,500 miles/year at 28 mpg, $3.50/gallon

Driver profile: Average US driver, 13,500 miles/year (FHWA 2023). Vehicle: mid-size sedan, EPA combined 28 mpg. Fuel: regular unleaded at $3.50/gallon.

Gallons/year = 13,500 ÷ 28 = 482.1 gallons
Annual cost = 482.1 × $3.50 = $1,687
Monthly cost = $1,687 ÷ 12 = $140.60/month
$1,687
An average US driver covering 13,500 miles per year in a 28 mpg vehicle pays approximately $1,687 in fuel annually at $3.50/gallon.
Quick reference

Annual fuel cost by mpg and price per gallon

The table below shows annual fuel costs at the US average of 13,500 miles per year. Find your vehicle's mpg column, then read across to your local gas price row for a quick estimate.

Price/Gallon25 mpg30 mpg35 mpg40 mpg
$3.00/gal$1,620$1,350$1,157$1,013
$3.50/gal$1,890$1,575$1,350$1,181
$4.00/gal$2,160$1,800$1,543$1,350
$4.50/gal$2,430$2,025$1,736$1,519

Source: EPA fueleconomy.gov, AAA 2024, FHWA 2023; assumes 13,500 miles/year.

Practical tips

Tips to reduce your fuel costs

Small changes in driving habits and vehicle maintenance can meaningfully cut fuel spending without changing your vehicle. The AAA estimates that poor maintenance and aggressive driving habits can reduce real-world mpg by 15–30%.

  • Maintain proper tire pressure — Under-inflated tires increase rolling resistance. The DOE estimates that each PSI drop below recommended pressure reduces mpg by about 0.2%. Check monthly; pressure drops ~1 PSI per 10°F temperature decrease.
  • Slow down on the highway — Aerodynamic drag increases with the square of speed. Driving 75 mph instead of 65 mph can cut fuel economy by 15–20%, adding hundreds of dollars per year for highway-heavy commuters.
  • Use cruise control on flat highways — Steady-speed driving beats the natural speed oscillation of manual throttle inputs. AAA testing shows 7–14% mpg improvement on flat interstate routes.
  • Track gas prices with GasBuddy or AAA — Prices at nearby stations can vary by $0.20–$0.40/gallon in the same ZIP code. Filling up at the cheapest station adds up: a $0.25/gallon savings on 500 gallons/year = $125.
  • Consider mpg when buying, not just payment — A vehicle with 10 mpg better fuel economy saves $450–$800/year at current prices. Over five years, that's $2,250–$4,000 — often more than the payment difference between trim levels.
Accuracy & limits

Accuracy and limitations

EPA mpg figures are measured under controlled laboratory conditions and consistently run higher than real-world results. The EPA itself notes that actual mpg will vary based on driving speed, traffic, weather, payload, and use of air conditioning. For planning purposes, multiplying the EPA combined figure by 0.85 gives a more realistic real-world estimate — especially for older vehicles, trucks, or turbocharged engines.

Gas prices are highly volatile and differ by region, season, and grade. The US average cited in this tool (~$3.40/gallon regular, AAA 2024) is a national midpoint; California, Hawaii, and the Pacific Northwest typically run $0.50–$1.50 above average, while the Gulf Coast and Midwest often run below. Enter your local price from GasBuddy.com or AAA's daily fuel gauge for the most accurate result.

Glossary

Fuel economy terms defined

The number of miles a vehicle travels on one gallon of fuel. Higher is better. The EPA tests city and highway mpg separately, then publishes a combined rating weighted 55% city / 45% highway.
The single mpg figure the EPA uses on the Monroney sticker, calculated as a weighted average of city and highway test cycles. Best proxy for mixed real-world driving.
87 octane gasoline — the most common grade at US pumps and what most non-luxury, non-performance vehicles require. Using premium in a regular-rated engine provides no benefit.
The total distance driven in a year. The US average is approximately 13,500 miles per year according to the Federal Highway Administration (FHWA) 2023 data.
Total fuel used over a given distance. Calculated as miles ÷ mpg. Used as the multiplier against price per gallon to determine total fuel cost.
Actual fuel economy achieved under normal driving conditions, typically 15–20% below the EPA label due to speed variation, cold starts, HVAC use, and payload.
The retail cost of one US gallon of gasoline at the pump, which includes federal (18.4¢/gal) and state taxes. National average tracked daily by AAA and GasBuddy.
About

About this fuel cost calculator

This calculator runs entirely in your browser — nothing you enter is sent to any server.

Browse more in our transportation calculators, or explore the complete library on the free calculators page.

Questions

Frequently asked questions about the free fuel cost calculator

A fuel cost calculator is a free online tool that helps you calculate trip cost from distance, vehicle mpg, and fuel price per gallon. Gallons used × price per gallon = trip cost. It runs entirely in your browser with instant results and no sign-up.
The base payment uses principal + APR. Sales tax can be added via the input. Doc fees, registration, and destination charges aren't included — add them to the principal.
Your new lender pays off the old loan and issues a new one in its place. The savings come from a lower rate or longer term. A longer term lowers monthly but raises total interest.
No — these are estimates for planning. Actual loan terms depend on credit score, lender, and current rates. Always read the disclosure (TILA box) before signing.

Want a calculator built for your business?

Customize any of our 400+ tools to match your brand, or commission a new one tailored to how your business actually calculates — pricing, payroll, quotes, anything. Deployed on your domain, math runs in your visitors' browsers.