Gas Cost Calculator — 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**
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**
Exemplo Resolvido
300-mile trip in a car getting 28 MPG with gas at $3.50/gallon.
- Gallons needed = 300 / 28 = 10.71 gal
- Fuel cost = 10.71 x $3.50 = $37.50
- Cost per mile = $3.50 / 28 = $0.125