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

Formula

## 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**

Esempio Risolto

300-mile trip in a car getting 28 MPG with gas at $3.50/gallon.

  1. 01Gallons needed = 300 / 28 = 10.71 gal
  2. 02Fuel cost = 10.71 x $3.50 = $37.50
  3. 03Cost per mile = $3.50 / 28 = $0.125