Gas Cost Calculator
Enter the trip distance, your car's mpg and the gas price and get the fuel cost for the trip, one way or round trip, split by riders.
Optional: get the driving distance
Highway mpg suits a long road trip; city mpg suits stop-and-go driving. Your car's own trip computer beats both.
250 mi
$28.57 in fuel
8.93 gallons · $0.11 per mi
What this page cannot tell you
Real fuel use changes with speed, load, air conditioning, terrain, traffic and tyre pressure. Tolls, parking and wear on the car are not included. Fuel prices change daily and by station.
How to work out the gas cost of a trip
- Get the distance. Type it, or enter start and destination and press Get distance.
- Enter your car's fuel economy. Miles per gallon, or L/100 km in metric mode.
- Enter the gas price. Per gallon or per litre.
- Choose round trip and riders. The result shows the total and each person's share.
10 trips where knowing the fuel cost helps
Splitting gas with friends
Four friends driving to a festival split the fuel cost fairly.
Road trip budgets
A family budgets fuel for a week-long drive.
Driving versus flying
A traveller compares the fuel cost of driving with airfare.
Commuting
A worker prices a daily commute by car.
Carpool payments
A driver works out what to ask carpool riders to chip in.
Moving with a rental truck
Someone moving checks the fuel for a truck with low mpg.
Comparing two cars
A family sees how much a more efficient car saves on a trip.
Business mileage
A contractor estimates fuel for a job site visit.
College move-in
Parents price the drive to campus and back.
Holiday visits
Someone plans the fuel for a holiday trip to relatives.
How the fuel cost is worked out
Fuel = distance ÷ mpg (or distance × L/100 km ÷ 100); cost = fuel × price; each share = cost ÷ people. Round trip doubles the distance.
The optional distance lookup finds both places with Photon (OpenStreetMap) and the road route with OSRM on the FOSSGIS servers, over OpenStreetMap roads.
Limits: real fuel use changes with speed, load, air conditioning, hills, traffic and tyre pressure. Tolls, parking and wear are not included. Fuel prices change daily.
Frequently asked questions
How do I calculate gas cost for a trip?
Divide the distance by your car's mpg to get gallons, then multiply by the price per gallon.
How much gas for 300 miles at 30 mpg?
10 gallons. At $3.50 a gallon, $35.
Should I use city or highway mpg?
Highway mpg suits long trips at steady speed; city mpg suits stop-and-go driving.
Does it work in kilometres?
Yes. Switch the units to kilometres, L/100 km and price per litre.
How do I split gas money fairly?
Enter the number of people sharing; the page divides the total evenly.
Is the driving distance exact?
It is the OSRM route over OpenStreetMap roads; your own route may differ.
Related tools
Take-Home Pay Calculator
Enter your salary and state and get your 2026 take-home pay after federal tax, Social Security, Medicare and state income tax.
IRS 2026 brackets; IRS Topics 751 and 560; Tax Foundation 2026 state brackets
Hourly to Salary Calculator
Turn an hourly wage into yearly, monthly, biweekly and weekly pay for your hours, or a salary back into an hourly rate.
Pay arithmetic; OPM 2,087-hour divisor for reference
Sales Tax Calculator
Pick a state, add your city's local rate and get the sales tax and total on any price, or take the tax back out of a total.
Tax Foundation 2026 state and local sales tax rates
Tip Calculator
Enter the bill and tip percentage and get the tip, the total and each person's share, rounded up if you like.
Percentage arithmetic
Monthly Car Payment Calculator
Enter the price, down payment, trade-in, tax, APR and term and get your monthly car payment and total interest.
Standard amortizing loan formula
Gold Price per Gram
Today's gold and silver spot price per gram, tola and ounce for 24k, 22k, 18k, 14k and sterling, in your city's currency.
gold-api.com spot price; ExchangeRate-API currency rates