Fuel Cost Calculator - How to Calculate Trip Cost, Gallons & Cost per Mile

To calculate fuel cost, divide trip miles by MPG for gallons, then multiply by price per gallon. Example: 300 miles at 30 MPG and $3.50/gal needs 10 gallons and costs $35 ($0.117 per mile). Enter distance, MPG, and pump price below for trip, multi-trip, and cost-per-mile totals.

Trip Details

Estimate fuel cost from distance, MPG, and gas price.

$

Fuel Cost

Gallons needed and total cost.

Trip Cost

$37.50

10.71 gallons · $0.13/mile

Gallons per trip10.71
Cost per trip$37.50

Embed this calculator

Paste the HTML below into your site or CMS (WordPress Custom HTML, static pages, docs). The iframe loads a lightweight, noindex surface of this tool. Keep the attribution link so visitors can open the full calculator on dailycalcs.com.

  • Width is responsive (100%); default height is 800px — raise it if your theme clips the form.
  • Host page should be HTTPS; iframe src is always HTTPS.
  • Do not remove the “Powered by dailycalcs.com” link — it points to the canonical tool page.

Methodology and limitations

Last reviewed:

Methodology

Gallons = distance ÷ MPG; cost = gallons × price per gallon.

Limitations

Real-world MPG varies. Excludes tolls, parking, and non-fuel trip costs.

How Fuel Trip Cost Is Calculated

To calculate fuel cost, divide trip miles by MPG for gallons, then multiply by price per gallon. Example: 300 miles at 30 MPG and $3.50/gal needs 10 gallons and costs $35 ($0.117 per mile). Enter distance, MPG, and pump price below for trip, multi-trip, and cost-per-mile totals.

Method used

The calculator divides trip distance by vehicle fuel economy (MPG) to get gallons needed, then multiplies by price per gallon for total fuel cost.

Gallons = distance ÷ MPG; cost = gallons × price per gallon

Practical example

A 300-mile trip in a car averaging 28 MPG at $3.75 per gallon uses about 10.7 gallons and costs roughly $40.18 in fuel.

  • Trip distance in miles
  • Vehicle MPG
  • Fuel price per gallon

The result shows gallons needed, total fuel cost, and cost per mile.

Assumptions

  • MPG is the average fuel economy for the trip conditions entered.
  • Fuel price is uniform along the route.
  • Distance is one-way unless you double it manually for round trips.

What this includes

  • Gallons consumed, total fuel cost, and cost per mile.

What this excludes

  • Tolls, parking, vehicle wear, insurance per mile, electric-vehicle kWh costs, and regional fuel tax variations mid-route.

Frequently Asked Questions

How do I calculate fuel cost?

Gallons needed = distance ÷ MPG. Fuel cost = gallons × price per gallon. Cost per mile = fuel cost ÷ distance. Example: 300 miles ÷ 30 MPG = 10 gallons; at $3.50/gal that is $35 total. For repeated trips, multiply per-trip cost by the number of trips. Enter realistic MPG and local pump prices in this calculator so commuting or road-trip budgets stay close to what you will actually spend.

How do I estimate fuel consumption for a trip?

Fuel consumption in gallons equals trip distance divided by your vehicle’s miles per gallon. Use observed MPG or EPA city/highway ratings blended for mixed routes. Highway speeds, hills, cargo, and cold weather can raise consumption versus the window sticker. This tool converts distance and MPG into gallons, then applies your gas price for total cost—fuel only, not tolls or wear.

How is fuel cost calculated?

Gallons needed equal distance divided by MPG. Trip cost equals gallons times price per gallon. For repeated trips, multiply per-trip cost by the number of trips. Enter realistic MPG and local pump prices so commuting or road-trip budgets stay close to what you will actually spend.

What MPG should I use?

Use your vehicle’s observed MPG or EPA estimates. Real-world economy varies with speed, traffic, hills, cargo, temperature, and tire pressure. Highway and city ratings differ—blend them for mixed routes. Updating MPG after a few tankfuls beats relying only on the window sticker.

Can I calculate cost for a round trip?

Yes. Double the one-way distance, enter full round-trip miles, or set trips to 2 for repeated one-way legs. Include detours and airport loops if they add meaningful miles. Round-trip math helps compare driving versus other transport on total fuel cost alone.

What is cost per mile?

Cost per mile equals fuel cost divided by distance driven. It helps compare vehicles, carpool savings, or alternate routes when gas prices spike. Lower MPG and higher pump prices both raise cost per mile. Remember this covers fuel only—depreciation and maintenance raise true cost per mile beyond this tool.

Does this include tolls or vehicle wear?

No. Outputs cover fuel cost only. Tolls, parking, maintenance, depreciation, insurance, and EV charging fees are excluded from the total. Add those separately when comparing overall trip cost or checking a per-mile reimbursement against what you actually spend on gasoline.