Calculator Gas Cost: Estimate a Trip’s Fuel Expense
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
A gas cost calculator estimates how much fuel a trip will use and what that fuel will cost. Enter your travel distance, your vehicle’s fuel economy, and the fuel price; the calculator returns the estimated fuel cost, fuel needed, and distance in the other unit system.
Formula
For U.S. customary inputs, estimated fuel cost equals distance divided by fuel economy, multiplied by fuel price:
Cost = distance (mi) ÷ fuel economy (mi/gal) × price ($/gal)
- Distance is the one-way or total trip distance you enter, in miles.
- Fuel economy is the vehicle’s expected miles per U.S. gallon (mpg).
- Fuel price is the price per U.S. gallon.
- Fuel needed is distance ÷ fuel economy, in gallons.
- Kilometres are calculated as miles × 1.609344.
The calculator’s main result is the estimated cost, rounded to cents. Its fuel and kilometre results are rounded to two decimal places. The formula assumes the same fuel economy and price throughout the distance; it does not include electricity, tolls, maintenance, or other travel costs.
Worked Example
With the calculator’s defaults—100 miles, 25 mpg, and $3.50 per gallon:
- Fuel needed = 100 mi ÷ 25 mi/gal = 4 gal.
- Estimated gas cost = 4 gal × $3.50/gal = $14.00.
- Distance in kilometres = 100 mi × 1.609344 = 160.93 km.
The estimated cost is therefore $14.00, before any variation in route, traffic, fuel economy, or fuel price.
How to Use a Gas Cost Calculator
Choose a distance that matches the journey you want to estimate. For a return trip, enter the round-trip distance rather than entering the one-way distance and forgetting the return leg. Then enter fuel economy and a price per gallon. The calculator uses U.S. gallons because mpg and the example price are expressed in U.S. customary units.
- Use the same distance basis for the whole calculation: miles with miles per gallon, or kilometres with kilometres per litre.
- Use a representative fuel-economy figure for the vehicle and driving conditions, rather than assuming the best figure it can achieve.
- Enter the fuel price in the same currency as the result. The calculator does not convert currencies.
- For a multi-day journey, calculate each leg separately if fuel prices or expected efficiency differ substantially.
To estimate a group’s share, divide the trip’s fuel cost by the number of people sharing that cost. That simple split does not account for different arrangements, such as one person paying for parking or tolls.
Fuel Economy and Unit Conversions
Fuel economy is a ratio, not a fuel quantity. A vehicle rated at 25 mpg is expected to travel about 25 miles on one U.S. gallon under the conditions represented by that rating. Dividing distance by mpg gives gallons: miles ÷ (miles per gallon) = gallons. Multiplying gallons by dollars per gallon gives dollars.
For metric inputs, use this equivalent formula: cost = distance (km) ÷ fuel economy (km/L) × price ($/L). The units must match: do not divide kilometres by miles per gallon, or multiply gallons by a price per litre. One U.S. gallon is approximately 3.785 litres, and one mile is exactly 1.609344 kilometres. An imperial gallon, used in some contexts, is larger than a U.S. gallon, so an mpg figure must be identified before comparing it.
Also distinguish miles per gallon from litres per 100 kilometres (L/100 km). Higher mpg means less fuel used per mile, while lower L/100 km means less fuel used per distance. To use L/100 km, calculate litres as distance in kilometres × L/100 km ÷ 100, then multiply by the price per litre.
What Can Change the Estimate?
The calculation is an estimate, not a promise of the final amount paid. Actual fuel use can differ from a published or dashboard figure. Stop-and-go traffic, high speeds, hills, cold starts, idling, cargo, towing, tyre condition, and driving style can all affect consumption. A route with detours or congestion may also be longer or less efficient than its map distance suggests.
Fuel prices vary by location and over time. If the trip crosses regions with different prices, a single price is only an approximation; a more useful estimate can calculate each portion using its own expected price and fuel use. Rounding is another small source of difference: the calculator rounds displayed outputs, but the underlying estimate may be more precise than the shown fuel quantity.
A common misconception is that the listed cost is the complete cost of driving. It covers only the fuel implied by the inputs. It does not include vehicle wear, depreciation, insurance, parking, tolls, or other expenses. For a comparison between driving and another travel option, account for relevant costs on both sides.
Frequently Asked Questions
How do I calculate gas cost for a trip?
Divide trip miles by the vehicle’s mpg to estimate gallons used, then multiply by the price per gallon. For example, 150 miles at 30 mpg uses about 5 gallons; at $3.50 per gallon, that is $17.50.
How much gas will my trip use?
Divide the total trip distance by the vehicle’s fuel economy in matching units. For instance, 240 miles ÷ 30 mpg = 8 U.S. gallons. This is an estimate and actual use can vary.
Can I calculate fuel cost in kilometres and litres?
Yes. Divide kilometres by kilometres per litre to find litres, then multiply by the price per litre. If you use L/100 km instead, multiply kilometres by that figure and divide by 100 to find litres.
Should I enter one-way or round-trip distance?
Enter the full distance whose fuel cost you want. Use a round-trip total if you want the estimated cost of travelling to a destination and back.
Why is my actual fuel cost different from the estimate?
The estimate assumes constant fuel economy and price. Traffic, route changes, weather, driving conditions, vehicle load, and price differences can change the fuel used or the amount paid.
Related
Formula used
in d | Trip distance | mi | 100 | 0 in e | Fuel economy | mpg | 25 | 0 in p | Fuel price | $/gal | 3.50 | 0 out cost | Estimated gas cost | $ | d / e * p | 2 out fuel | Fuel needed | gal | d / e | 2 out km | Trip distance | km | d * 1.609344 | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.