⛽ Free Gas Calculator  •  No sign-up  •  Instant live results  •  US + Metric units
★ Free Gas Calculator — No Sign-Up

Gas Calculator — Trip Fuel Cost in Seconds

Calculate your trip fuel cost before you turn the key. Enter distance, MPG and gas price — see total cost, gallons used, cost per mile and cost per person, live as you type.

  • ✓ (Distance ÷ MPG) × Price formula
  • ✓ US + Metric units
  • ✓ Round-trip & cost split
  • ✓ 100% free, nothing stored
Free Tool

Gas Calculator

+ Split cost, tolls & fuel stops
Total Trip Cost$42.00
Gallons Used12.00
Cost Per Mile$0.14
Per Person$42.00
Fuel Stops0
Trip Distance300 mi
Fuel Cost Only$42.00

Formula: (Distance ÷ MPG) × Gas Price • Live results — no sign-up, nothing is stored.

🧮Only 3 InputsDistance, MPG, gas price
⚡Instant ResultsUpdates live as you type
🌎US + MetricMiles, km, MPG, L/100km
🔒Private & FreeRuns in your browser

Simple Math, No Black Box

How the Gas Calculator Works

Three numbers in, your full trip cost out. The same formula behind every result is shown openly, so you can check any calculation by hand.

1

Enter Your Distance

The total miles or kilometers you plan to drive. Tip: copy the distance from Google Maps, and tick "Round trip" if you are driving back.

2

Add Your Car's MPG

Your vehicle's fuel efficiency. Use the combined EPA figure, your dashboard average — or best of all, your own tank-to-tank measurement.

3

Add the Gas Price

The price per gallon (or per litre) where you will fill up. The calculator instantly shows total cost, gallons used and cost per mile.

Total Cost = (Distance ÷ MPG) × Gas Price

Real Numbers

Gas Cost for Common Trips

What typical drives actually cost at today's kind of prices — calculated with the same formula the tool above uses.

TripDistanceMPGGas PriceGallonsTotal Cost
Weekend road trip300 mi30$3.5010.0$35.00
Daily commute (day)40 mi25$4.001.6$6.40
Long drive in an SUV520 mi20$4.2526.0$110.50
Cross-country leg1,000 mi30$3.5033.3$116.67
Accuracy tip: Real-world MPG usually runs 10–15% below the window-sticker figure in city traffic, cold weather or hills. Enter your own observed MPG for the closest estimate.

Why Drivers Use It

Know the Cost Before You Drive

The average US household spends thousands a year on gasoline — most of it never planned. A 10-second calculation fixes that.

🗺️

Budget Any Road Trip

Weekend getaway or cross-country move — know the fuel bill before you leave, not at the pump.

👥

Split Costs Fairly

Add passengers and tolls and get an exact per-person share. No awkward math in the car.

💼

Plan Commute & Work Miles

Daily drivers, couriers and freelancers: turn miles into a real monthly fuel budget in seconds.

More Free Tools

More Driving Cost Calculators

Every tool is free, runs in your browser and shows its formula. Start with the one that matches your question.

Questions

Gas Calculator — Frequently Asked Questions

Straight answers, with the math shown.

How do I calculate gas cost for a trip?

Divide your trip distance by your car's MPG to get the gallons you will use, then multiply by the gas price per gallon. Example: 300 miles ÷ 25 MPG = 12 gallons × $3.50 = $42.00. Or enter the three numbers in the calculator at the top of this page.

What is the formula for gas cost?

Total Gas Cost = (Distance ÷ MPG) × Gas Price. Cost per mile = Gas Price ÷ MPG, and gallons used = Distance ÷ MPG.

Should I use city or highway MPG?

Use the figure that matches most of your drive — highway MPG for long interstate trips, city MPG for stop-and-go commuting, the EPA combined figure for a mix. Your own tank-to-tank measurement beats all three.

What if I don't know my car's MPG?

Check the trip computer, owner's manual or EPA label. To measure it: fill up, reset the odometer, drive normally, refill, and divide miles driven by gallons added.

How do I split gas cost with passengers?

Divide the total trip cost by everyone in the car, including the driver. In the calculator, open "Split cost, tolls & fuel stops", set the people count, and the per-person figure updates live.

Does it work for round trips and metric units?

Yes. Tick "Round trip" to double the distance, and switch units to kilometers, L/100km or km/L and $/litre — conversions happen automatically.

Know Your Trip Cost Before You Turn the Key

Three numbers. Ten seconds. No sign-up, ever.

Calculate My Gas Cost ↑