Time & Pay
Fuel Cost Calculator
Estimate gas or diesel for a trip you know the distance of. Use your vehicle’s fuel economy and pump price, then compare a second vehicle if you’re deciding which one to drive.
Estimated fuel cost
Enter trip distance, fuel economy and the price you expect to pay.
The method
How to calculate fuel cost for a trip
Use the total distance you expect to drive. In US units, miles divided by miles per US gallon gives US gallons. In metric units, multiply kilometers by liters per 100 km and divide by 100. Multiply the unrounded fuel amount by your price per gallon or liter.
Example 1
Gas for a 250-mile drive or round trip
At 25 US mpg and $3.50 per US gallon, a 250-mile drive uses 10 gallons and costs $35.00, or $0.14 per mile. Driving the same distance back makes 500 miles total and $70.00 in fuel. At 35 US mpg and the same fuel price, a different vehicle costs $25.00 for the 250-mile drive.
- 250 miles at 25 US mpg
- $35.00
- 500 miles at 25 US mpg
- $70.00
- 250 miles at 35 US mpg
- $25.00
Example 2
Fuel for 100 km at 8 L/100 km
In metric mode, 100 km at 8 L/100 km uses 8 liters. At an illustrative $1.50 USD per liter, fuel costs $12.00 for the trip, or $0.12 per kilometer.
- Fuel needed
- 8 L
- Trip cost
- $12.00
- Cost per kilometer
- $0.12
Before you calculate
Assumptions & limits
- Enter distance from your navigation app or odometer, then use measured fuel economy or the vehicle’s rated economy and your expected pump price. Traffic, terrain and speed can change actual fuel use.
- US mode pairs US gallons with US mpg. Metric mode pairs liters with L/100 km. Prices are in USD in both modes. Use matching units for both vehicles.
- One fuel economy and one price apply to the full distance for each vehicle. Estimate tolls, parking, maintenance and reimbursements separately.
- Trip totals round to cents after calculation. Fuel quantities and cost per mile or kilometer show up to four decimal places.
Keep in mind
Common mix-ups
When should I add an equal-distance return?
Turn it on when you entered only the outward distance and expect to drive the same distance back. For different legs, add their distances yourself and enter the total with the option off.
Can the two vehicles use different fuel prices?
Yes. Enter the price each vehicle uses, such as gasoline for one and diesel for the other. Both must use the selected fuel unit and USD. Both estimates cover the same trip distance.
What happens if the distance is zero?
The trip uses zero fuel and costs $0.00. Cost per mile or kilometer still follows your entered economy and fuel price.
Sources & calculation notes
Explains how fuel expenditures depend on the distances driven, vehicle fuel economy and fuel prices.
Defines the volume conversion factors for US and Imperial gallons and liters.
Method and input rules checked: . Engineering validation; no professional specialist review is claimed.