Fuel Cost Calculator — Trip Gas Cost

Work out how much gas a trip will cost from the distance, your car’s fuel economy and the fuel price — one-way or round trip, split between passengers.

Runs in your browserUpdated
Result
—

Your data never leaves your computer. All processing happens 100% locally in your browser.

How to use the Fuel Cost Calculator

  1. Pick your units.
  2. Enter the distance, your fuel economy and the fuel price.
  3. Choose one-way or round trip and how many people share the cost.

The math

Fuel used = distance ÷ MPG (or distance × L/100 km ÷ 100); cost = fuel × price. A U.S. gallon is 3.785 liters and a UK (imperial) gallon is 4.546 liters, which is why UK MPG figures look higher for the same car.

Comparing with an electric car? See the Electricity Cost Calculator.

Also searched as: gas cost calculator, trip cost calculator, road trip gas calculator, mpg calculator, fuel calculator.

Tools that pair well with the Fuel Cost Calculator

  • Unit Converter — Convert between metric, imperial and technical units in ten categories — with a two-way converter and a table of every unit at once.
  • Split Bill Calculator — Split a restaurant bill or shared expense — with tip and tax — evenly or by custom shares, and copy who owes what.
  • Pace Calculator — Enter a distance and a time to get your pace per kilometer and mile, your speed and predicted race times for 5K, 10K, half marathon and marathon.
  • Percentage Calculator — Seven everyday percentage calculations on one page.

Frequently asked questions

How do I find my car’s fuel economy?
Use the trip computer, or fill up, reset the trip meter, drive, and divide the distance by the fuel needed to refill.
Is city or highway MPG better for trips?
Use highway figures for long trips; real-world economy is often 10–15% below the official number.
Is anything I enter saved or sent?
No. The calculation runs in your browser. Your last inputs are remembered on this device only, so the page opens where you left off.
Can I install Fuel Cost Calculator as a web app and use it offline?
Yes. Fuel Cost Calculator is an installable web app (PWA) — installed from your browser, not downloaded from an app store. Click Install app at the top of this page in Chrome or Edge (Windows, macOS, Linux, ChromeOS) or on Android, use Share → Add to Home Screen on iPhone and iPad, or File → Add to Dock in Safari 17+ on a Mac. It then opens in its own window with its own icon, and because it runs entirely in your browser it keeps working offline. Firefox on desktop can’t install web apps. How installing works.

Related tools