Free tool · No account required

Gas Cost Calculator

Estimate gallons used and fuel cost for a trip from distance, miles per gallon, and fuel price. Supports miles or kilometers and optional round trips.

Estimate trip fuel cost

Distance used
240 mi
Gallons (est.)
8.57
Fuel cost
$31.29

Fuel is only one piece of vehicle cost.

Log fuel and other expenses next to the miles that produced them in MileLedger.

How this tool works

Enter distance, choose miles or kilometers, set MPG and price per gallon, and optionally mark the trip as round-trip. Results update immediately.

Calculation methodology

Gallons = trip miles ÷ MPG. Cost = gallons × price per gallon. Kilometers are converted to miles at 0.621371 for the MPG-based estimate.

Worked example

A 120-mile round trip in a 28 MPG vehicle at $3.65/gal uses about 8.57 gallons and roughly $31.29 in fuel.