Fuel Cost Calculator (Cost per Mile vs Gallon)

Fuel Cost Calculator (Cost per Mile vs Gallon)

Emerging AI Skill PRO

Enter Calculation

Results

Total Fuel Cost for the Trip
$42
based on your MPG and gas price
Fuel Needed 12 gallons
Cost per Mile $0.14

Formula

Cost=Distance (mi)MPG×Price ($/gal)\text{Cost} = \frac{\text{Distance (mi)}}{\text{MPG}} \times \text{Price (\$/gal)}

Example

Cost=30025×3.5=42\text{Cost} = \frac{300}{25} \times 3.5 = 42
Show calculation steps (1)
  1. Cost per Mile

    Cost per Mile=Price ($/gal)MPG\text{Cost per Mile} = \frac{\text{Price (\$/gal)}}{\text{MPG}}

    Total fuel cost divided by trip distance, which simplifies to Price per gallon divided by MPG.

Usage stats

Advertisement

Report an error on this page

What Is the Fuel Cost Calculator?

This calculator estimates how much you will spend on gasoline for any trip. By entering the distance you plan to drive, your vehicle's fuel economy in miles per gallon (MPG), and the current price per gallon, it instantly shows your total fuel cost, the number of gallons you'll burn, and your cost per mile. It works with any currency value entered in the price field, though the unit shown is the US gallon and mile.

How to Use It

Enter three values: the trip distance in miles, your car's MPG (check your dashboard average or window sticker), and the price per gallon you expect to pay. Press calculate and the result panel updates with the total cost. Use the cost-per-mile figure to compare vehicles or to bill mileage.

The Formula Explained

The math is straightforward. First, divide distance by MPG to find how many gallons the trip requires. Then multiply gallons by the price per gallon to get the total cost:

$$\text{Cost} = \frac{\text{Distance (mi)}}{\text{MPG}} \times \text{Price (\$/gal)}$$

Cost per mile is simply the total cost divided by the distance, which is handy for budgeting longer journeys or comparing efficiency.

Advertisement
Diagram showing distance, MPG, and price per gallon combining into total fuel cost
The three inputs — distance, MPG, and price per gallon — feed into the total fuel cost.

Worked Example

Suppose you drive 300 miles in a car that gets 25 MPG, and gas costs $3.50 per gallon. Gallons used \(= 300 \div 25 = 12\) gallons. Total cost $$= 12 \times \$3.50 = \mathbf{\$42.00}.$$ Cost per mile \(= \$42.00 \div 300 = \mathbf{\$0.14}\) per mile.

Line chart comparing trip cost versus distance for a low-MPG and high-MPG vehicle
A more efficient vehicle (higher MPG) keeps trip cost lower as distance grows.

Fuel prices this week: United States

Average retail prices of regular gasoline and diesel across the United States, week of 2026-11-09, taxes included, as published by the U.S. Energy Information Administration. Use them as the fuel price in the calculator above.

Regular gasoline (2026-11-09)
$3.995/gal +30.7% since 2025-11-10
Diesel (2026-11-09)
$6.127/gal +59.7% since 2025-11-10
Regular gasoline ($/gal)

World crude oil prices, October 2026

World market prices of crude oil in U.S. dollars per barrel, monthly averages from the World Bank. These are commodity prices, not pump prices: the price at the pump also includes refining, distribution and taxes, and it differs from country to country.

Crude oil, average of Brent, Dubai and WTI (2026-10)
$108.50/bbl +72.2% since 2025-10
Brent (2026-10)
$125.00/bbl +93.2% since 2025-10
WTI (2026-10)
$97.70/bbl +62.3% since 2025-10
Dubai (2026-10)
$102.70/bbl +59.7% since 2025-10
Crude oil, average of Brent, Dubai and WTI (2026-10) ($/bbl)

Pump prices in the EU, week of 2026-11-09

Pump prices of petrol (Euro-super 95) and diesel by EU country, week of 2026-11-09, taxes included. Use them as the fuel price in the calculator above.

EU average (petrol)
1.877 €/L
  1. Denmark2.391
  2. Netherlands2.196
  3. Finland2.144
  4. France2.088
  5. Germany2.067
  6. Greece2.042
  7. Italy1.995
  8. Ireland1.958
  9. Portugal1.922
  10. Latvia1.846
  11. Romania1.844
  12. Belgium1.844
  13. Lithuania1.843
  14. Estonia1.805
  15. Croatia1.749
  16. Spain1.730
  17. Cyprus1.699
  18. Slovakia1.691
  19. Hungary1.673
  20. Austria1.670
  21. Czechia1.653
  22. Slovenia1.634
  23. Luxembourg1.627
  24. Bulgaria1.582
  25. Sweden1.437
  26. Poland1.384
  27. Malta1.340
Petrol 95 (€/L)
CountryPetrol 95 (€/L)Diesel (€/L)
Denmark2.3912.435
Netherlands2.1962.361
Finland2.1442.485
France2.0882.178
Germany2.0672.253
Greece2.0422.099
Italy1.9952.218
Ireland1.9582.119
Portugal1.9222.135
Latvia1.8462.083
Romania1.8442.033
Belgium1.8442.357
Lithuania1.8432.225
Estonia1.8052.084
Croatia1.7492.025
Spain1.7301.898
Cyprus1.6992.000
Slovakia1.6911.965
Hungary1.6731.985
Austria1.6702.087
Czechia1.6531.899
Slovenia1.6341.950
Luxembourg1.6271.987
Bulgaria1.5821.896
Sweden1.4371.954
Poland1.3841.753
Malta1.3401.210

Latest figure: 2026-11-09 Data last updated 2026-11-11 · current

Source: U.S. Energy Information Administration (EIA), Gasoline and Diesel Fuel Update Public domain (U.S. government work); World Bank, Commodity Markets (Pink Sheet), modified CC BY 4.0; © European Union, Weekly Oil Bulletin (European Commission) CC BY 4.0

Prices per litre are converted by CalculatorLib from the bulletin's prices per 1,000 litres. Changes over one year are computed by CalculatorLib.

Source details and methodology

Fuel prices in United States: all figures and history

FAQ

What MPG should I enter? Use your real-world average rather than the official rating if you know it — highway driving is usually higher, city driving lower.

Does this include tolls or maintenance? No. This estimates fuel cost only. Add tolls, parking, and wear separately for a full trip budget.

Can I use kilometers and liters? The labels assume miles and gallons. To use metric, convert your inputs first (1 mile = 1.609 km, 1 gallon = 3.785 L).

Last updated:

Most popular in Industry-Specific

View all Industry-Specific calculators