Company Marketcap

Fuel Cost Calculator: Estimate Your Trip Gas Cost

Enter your trip and vehicle

miles
mpg
$/gal

Optional when working out fuel economy.

More options
people

Your results

Trip fuel cost

–

Fuel needed

–

Cost per mile

–

Cost per person

–

Results are estimates for educational purposes and are not financial, tax or legal advice.

Planning a drive and wondering what the pump will take out of your wallet? A fuel cost calculator turns three numbers (how far you are going, how many miles your vehicle covers per gallon, and what a gallon costs) into the dollar amount you will spend on gas, so you can set a budget before you leave the driveway. Pair this with the date calculator for a fuller picture before you make a decision.

How the Fuel Cost Calculator Formula Works

Every gas cost calculator rests on the same two-step idea: first work out how much fuel the trip burns, then multiply by what that fuel costs. The fuel needed comes from distance divided by fuel efficiency, and the money comes from multiplying those gallons by the price at the pump. Pair this with the finance calculator for a fuller picture before you make a decision.

$$\text{Fuel needed} = \frac{D}{E} \qquad \text{Trip fuel cost} = \frac{D}{E} \times P$$

Here \(D\) is the trip distance, \(E\) is your vehicle's fuel efficiency in miles per gallon, and \(P\) is the fuel price per gallon. Divide the final cost by the distance and you also get a cost per mile, which is the easiest number to compare between vehicles.

Fuel efficiency and miles per gallon

Miles per gallon (mpg) tells you how far a vehicle travels on one gallon. You can find it on the window sticker, in the owner's manual, or by dividing the miles driven by the gallons you added at your last fill-up. Official fuel economy ratings are a good starting point, but your real gas mileage drifts with load, weather and driving style, so use your own measured figure when you have one.

Price per gallon and price per liter

In the United States you enter the price per gallon; in most other countries pumps show the price per liter. Both work, as long as the efficiency unit matches the price unit. If your price is per liter, your efficiency must be in liters or kilometers per liter too.

Kilometers per liter and liters per 100 km

If you work in metric units, the gas calculator takes the same inputs in different clothes. Metric drivers usually quote kilometers per liter or liters per 100 km. To convert, divide 100 by the liters-per-100-km figure to get kilometers per liter, then use the same formula with kilometers and liters. One mile is 1.609 kilometers and one US gallon is 3.785 liters, which is why 27.4 mpg works out to roughly 8.6 L/100 km. Enter your efficiency and the local pump price in metric units, and the same distance ÷ efficiency × price formula returns the cost in your local currency.

Worked Example: Estimate Fuel Cost for a 318-Mile Trip

Suppose you are driving a crossover that returns 27.4 mpg to a family wedding 318 miles away, and the pump near home shows $3.79 for a gallon of regular. The gallons used are 318 ÷ 27.4 = 11.61, and the trip cost is 11.61 × $3.79 = $43.99. Next, open the basic calculator and enter your own details to see an estimate in seconds.

Input or resultValue
Trip distance318 miles
Fuel efficiency27.4 mpg
Fuel price$3.79 per gallon
Gallons used11.61 gallons
Total trip cost, one way$43.99
Cost per mile$0.138
Round trip$87.97
Fuel cost formula distance divided by miles per gallon times price per gallon applied to a 318-mile trip for $43.99
The fuel cost formula with the 318-mile worked example substituted in.

Gallons used and fuel needed

The fuel needed figure matters on its own: 11.61 gallons tells you whether one tank gets you there or whether you must plan a stop at one of the gas stations along the way. Compare it with your tank size before you set off.

Trip cost per mile

Dividing $43.99 by 318 miles gives about 13.8 cents per mile. Multiply that by any distance and you have a quick trip cost without re-running every input, which is handy when the route changes.

Trip Cost Calculator Inputs That Change Your Gas Bill

A good trip cost calculator reacts to more than the three basics. The table below shows how the same 318-mile drive moves when only the fuel prices and the vehicle's efficiency change.

Efficiency$3.29 per gallon$3.79 per gallon$4.29 per gallon
22 mpg$47.56$54.78$62.01
27.4 mpg$38.18$43.99$49.79
34 mpg$30.77$35.45$40.12
41 mpg$25.52$29.40$33.27
Heatmap of 318-mile trip gas cost across four mpg levels and three gas prices per gallon
Trip cost by fuel efficiency and price per gallon, with the 27.4 mpg at $3.79 example outlined.

Fuel prices and gas prices by grade

Current gas prices differ by grade: regular, premium and diesel each carry their own price, and diesel may cost more or less than regular depending on the week. Premium only pays off when your engine is designed for it, so use the fuel grade your manufacturer recommends and enter that grade's price.

Vehicle type: car, SUV or truck

The vehicle type is the biggest swing factor. A compact car, a large SUV and a loaded truck can differ by a factor of two in efficiency, as the rows above show. Hybrids and electric vehicles change the math again, since electricity is priced per kilowatt-hour rather than per gallon.

Distance and route planner

Measure the distance with a route planner rather than guessing, and choose the cheapest route instead of the shortest if the two differ. A detour that adds 12 miles adds about $1.66 in the example above, but it can save more in toll cost.

Toll cost and extras

Fuel is not the only line in a road-trip budget. Add any toll cost, parking and a buffer for traffic, because slow, stop-and-go driving lowers your real mpg below the rated figure.

Calculate Fuel Cost for Trucks and Fleets

You can calculate fuel cost for a truck the same way, only with a lower mpg and a diesel price. Owner-operators and any fleet manager watch this number closely, because a cent change in the pump price repeats across thousands of miles. Many carriers issue a fuel card and track cost per mile per driver to spot waste.

Why owner-operators track cost per mile

For owner-operators, the fuel line is often the largest expense after the truck payment. Enter the truck's mpg and the diesel price into the calculator, then divide the result by the miles to get a cost per mile you can compare with your rate per mile, so profitability and cash flow for each load are visible before you accept it.

Checking a Cycling Club's Fuel Reimbursement with a Gas Cost Calculator

Marisol drives volunteers to a trail race 187 miles from town, and the club reimburses fuel up to $30.00 per vehicle for the full round trip. Before she says yes, she opens the fuel cost calculator to see whether that cap covers her hatchback.

From the last three fill-ups she knows the car returns 31.6 mpg on mixed roads, and the station by her office posts $4.12 for a gallon of regular. She enters 187 miles, 31.6 mpg and $4.12, clicks the button, and reads the result: 5.92 gallons and $24.38 one way, or 13.0 cents per mile.

ScenarioGallonsCost
One way, 31.6 mpg5.92$24.38
One way with a roof box, 28.9 mpg6.47$26.66
Round trip, 31.6 mpg11.84$48.76

The round trip comes to $48.76, which is $18.76 over the club's $30.00 cap, so the cap alone will not cover her. She reruns the numbers with a roof box that drops her to 28.9 mpg, and the one-way figure rises to $26.66, confirming the box is not worth carrying. Her next step is concrete: she asks the three riders to split the $18.76 above the cap at $6.25 each, and she sends the club the screenshot of the result before the entry deadline.

Gas Mileage Tips That Lower Your Trip Fuel Cost

You cannot control the pump price, but you can control how many gallons you burn. These habits protect your fuel economy and show up directly as fuel saving in the calculator.

Tire pressure and tires

Check tire pressure monthly against the manufacturer's placard, not the number molded into the sidewall. Under-inflated tires raise rolling resistance, so the engine works harder and your fuel consumption climbs; keeping tires correctly inflated can improve mileage by up to about 3 percent.

Motor oil and engine tune

Use the motor oil grade printed in your manual. To tune the engine for efficiency rather than power, fix warning lights early: a failed oxygen sensor can hurt mileage badly. Keep up with regular maintenance such as filters and fuel-system detergent additives if the maker recommends them. A well-tuned car raises the mpg you enter and lowers the calculated total.

Speed, cruise control and idling

Aerodynamic drag grows quickly with speed, so steady highway driving with cruise control beats aggressive acceleration. Avoid long idling, limit air conditioning when it is not needed, and remember that city driving with constant braking costs more per mile than open road. Roof racks add aerodynamics penalties and extra weight works against you too. These habits lower your real mpg when ignored, so enter your measured figure rather than the sticker rating.

Public transportation and carpool options

Sometimes the cheapest gallon is the one you never burn. Public transportation or a carpool spreads one vehicle's expense across several people, so run the calculator for your commute, divide the result by the number of riders, and compare it with a transit fare to see the savings.

Gas Trip Calculator and Gas Estimator Features Worth Using

A basic gas calculator asks for three numbers, while a fuller gas trip calculator lets you type a start and a destination and pulls the miles from a map. That saves effort, but check that it uses your own mpg rather than a generic average, because the default value for a sedan will mislead you if you drive something heavier. Treat any gas estimator as a starting point and compare its answer with the formula above.

Build a trip plan around the numbers

Once you have a figure, write a short trip plan: the miles per day, the gallons per leg, and the places you expect to refuel. A trip calculator that supports several stops is especially useful, since each leg may have different road types and therefore different mileage. Compare the cost of gas in the towns you will pass and fill up where it is lowest, and a discount card from a grocery chain or fuel network can trim a few cents per gallon on top.

Scale the estimate to a year

Multiply a single commute by the days you drive to see what you spend per year on gas. Enter your daily commute distance, multiply the calculator's result by the days you drive, and you have the annual figure. A 22-mile commute at 27.4 mpg and $3.79 per gallon costs $3.04 each way, or about $1,520 over 250 working days of round trips, which shows why a small gain in efficiency matters.

What Drives Gas Price Changes

Understanding why the pump price moves helps you time a fill-up and set a realistic budget. Because the pump price is a calculator input, check the current local price before you run an estimate.

Crude oil prices, Brent and WTI

Crude oil is the biggest component. Benchmarks such as Brent and WTI are quoted per barrel, and a rise in the oil price usually reaches the pump within days. After refining, distribution and retail margins add to the final cost of gasoline (called petrol in many countries). These swings are why the price in your calculator should be today's.

Taxes, subsidy and supply and demand

Taxes differ widely by region, and a subsidy or other government policy can push prices down or up. Supply and demand shifts, such as summer travel or refinery outages, and exchange rates for imported oil, also move what you pay, along with the emissions rules that shape refining costs. Regional levies explain why the price you enter differs by state or country.

Fuel Cost Calculator questions

How do I calculate fuel cost for a trip?

Divide the trip distance by your vehicle's fuel efficiency to get the fuel needed, then multiply that by the price of a gallon or liter. For example, 100 miles at 25 mpg needs 4 gallons, and at $4.00 per gallon that costs $16.

What is fuel efficiency and where do I find mine?

Fuel efficiency is how far a vehicle travels on a unit of fuel, such as miles per gallon. Check the window sticker or owner's manual, or divide the miles you drove by the gallons you added at your last fill-up for a real-world figure.

Can I use kilometers and liters instead of miles and gallons?

Yes. Choose kilometers for distance, pick liters per 100 km, kilometers per liter or liters per mile for efficiency, and set the price unit to per liter. The calculator converts everything before working out the cost.

Why is my real fuel cost different from the estimate?

Traffic, speed, load, weather, tire pressure and driving style all change your actual mpg, and pump prices vary by station. Use your own measured mpg and the current local price for the closest estimate.

Does the fuel cost calculator work for diesel trucks?

Yes. Enter the truck's mpg and the diesel price per gallon. Trucks get far fewer miles per gallon than cars, so the same distance costs much more.

How can I lower my fuel cost?

Keep tires inflated to the recommended pressure, drive at a steady speed, avoid long idling, remove extra weight, follow the maintenance schedule, combine errands and consider carpooling.

Does this include tolls or parking?

No. The result covers fuel only, so add tolls, parking and other trip expenses separately.