Free Gas Cost Calculator
Calculate the fuel cost for any trip based on distance, fuel efficiency, and gas price.
miles
MPG
USD/gal
Total Fuel Cost
$37.50
Gallons Used10.7 gal
Cost Per Mile$0.1250/mi
Total Fuel Cost vs Trip Distance
How to Calculate Gas Cost
Divide the trip distance by your MPG to find gallons needed, then multiply by the gas price.
Formula
Gallons = Distance / MPG
Fuel Cost = Gallons x Price Per Gallon
Example Calculation
300-mile trip in a car getting 28 MPG with gas at $3.50/gallon.
- 01Gallons needed = 300 / 28 = 10.71 gal
- 02Fuel cost = 10.71 x $3.50 = $37.50
- 03Cost per mile = $3.50 / 28 = $0.125
Frequently Asked Questions
Learn More
How to Calculate a Tip - Complete Tipping Guide
Learn how to calculate a tip at restaurants, salons, and other services. Covers standard percentages, mental math shortcuts, and how to split the bill fairly.