Gas Cost Calculator
Calculate the cost of gasoline for a trip based on distance, fuel efficiency, and fuel price.
Was this calculator helpful?
How to use this tool?
How to Use the Gas Cost Calculator
This calculator estimates the total fuel cost for a trip based on distance, fuel efficiency, and fuel price. All inputs must be positive numbers.
- Step 1: Enter the Distance in miles (e.g., 150).
- Step 2: Enter your vehicle's Fuel Efficiency in miles per gallon (mpg) (e.g., 25).
- Step 3: Enter the Fuel Price per gallon in dollars (e.g., 3.50).
- Step 4: Click the Calculate button.
The result shows the total cost. Below it, you'll see the step-by-step calculation: gallons used = distance ÷ efficiency, then total cost = gallons × price per gallon. Invalid inputs (zero or negative) will be highlighted in red.
Previous Results
| Result | Inputs | Date |
|---|
Frequently Asked Questions
Divide the distance by your vehicle's fuel efficiency (mpg) to get gallons needed, then multiply by the fuel price per gallon.
It uses miles for distance, miles per gallon (mpg) for efficiency, and dollars per gallon for price. The result is in dollars.
Yes, just enter the fuel price in your currency per gallon. The result will be in that currency.