Omnikit
DevFilesMoneyAll tools
Ctrl K
Dev toolsFile toolsMoney calculatorsAll tools
HomeMoney calculatorsFuel Cost CalculatorGas Cost Calculator

Gas Cost Calculator

money

How much gas a drive needs and what it costs at your price per gallon

Estimates only, not financial advice. What you type stays on your device. Checked against sources on 1 Oct 2026.

A gas cost is the miles divided by your car's MPG, times the price per gallon. A 300-mile drive at 30 MPG uses 10 gallons, which costs $35.00 at $3.50 a gallon, about 11.7 cents a mile. Enter your own distance, MPG and pump price.

Gas cost for 300 miles at $3.50 a gallon, by fuel economy
MPGGallonsCostCost a mile
1520$70.0023.3¢
2015$52.5017.5¢
2512$42.0014¢
3010$35.0011.7¢
358.6$30.0010¢
407.5$26.258.8¢
506$21.007¢
Worked out by this calculator: miles ÷ MPG × price per gallon. Put in the price at your pump.
Next:
  • Unit Converter Length, weight, volume, temperature, speed, area, data and time, both ways as you type

How to calculate gas cost for a drive using MPG

1

The page opens in miles, MPG and gallons; enter the "Distance, one way" in miles.

2

Enter your car's Fuel economy in MPG.

3

Enter the "Price per gallon" you pay at the pump.

4

Read the gas cost, the gallons of Fuel used and the Cost per mile.

How Gas Cost Calculator works

The cost of a drive comes down to three numbers: how far, how much fuel the car uses for that distance, and what the fuel costs. This calculator takes them in whichever units your car and your country use, and gives the trip cost, each person's share and the cost per mile and per kilometre. Round trip doubles the one-way distance: 150 miles there and back at 25 MPG, with gas at $3.40, uses 12 gallons and costs $40.80.

Units. Choose miles with MPG and a price per U.S. gallon, kilometres with litres per 100 km, or kilometres with km per litre. Switching converts the figures already entered, so the trip stays the same trip. The conversions use the U.S. gallon of 231 cubic inches (3.785411784 litres) and the mile of 1.609344 km, both exact definitions in NIST Handbook 44. A UK MPG figure uses the larger Imperial gallon and is about 20% higher than the U.S. figure for the same car, so convert it to L/100 km before entering it.

Electric cars. Enter the car's energy use per 100 miles or 100 km and your price per kWh. Some energy is lost between the socket and the battery while charging; if you know the share for your charger, add it and the cost is worked out on the energy drawn from the wall.

The rest of the article, and all 6 questions about Fuel Cost Calculator, are on the Fuel Cost Calculator page.

Frequently asked questions

How do I calculate the gas cost of a trip?

Divide the distance by the car's miles per gallon to get the gallons used, then multiply by the price per gallon. A 300-mile drive at 30 MPG needs 10 gallons, and at $3.50 a gallon that is $35.00. Double it for a round trip, and divide by the number of people sharing the cost.

How do I convert MPG to liters per 100 km?

Divide 235.215 by the MPG figure. The constant is 100 times the litres in a U.S. gallon (3.785411784) divided by the kilometres in a mile (1.609344). So 30 MPG is 7.84 L/100 km and 25 MPG is 9.41 L/100 km. The same division works the other way, from L/100 km back to MPG.

How much does it cost to charge an electric car for a trip?

Multiply the distance by the car's energy use and the electricity price. At 30 kWh per 100 miles, 300 miles takes 90 kWh, which costs $15.30 at 17 cents per kWh. Public fast chargers often cost several times the home rate, so enter the price you will actually pay.

Is a UK MPG the same as a US MPG?

No. A UK figure uses the Imperial gallon of about 4.546 litres, while the U.S. gallon is 3.785 litres, so the same car shows roughly 20% more miles per gallon in the UK. Enter a UK figure as L/100 km instead: divide 282.48 by the UK MPG to convert it.

Sources

  • NIST Handbook 44 (2026), Appendix C, General Tables of Units of Measurement1 U.S. gallon = 231 cubic inches = 3.785411784 L; 1 mile = 1.609344 km (both exact)

Last verified 1 October 2026.

Figures from NIST Handbook 44 (2026), Appendix C, General Tables of Units of Measurement, read 1 October 2026. Built by Saifuddin, Omnikit.

Rates and rules change; check the source before you rely on a figure.

Still stuck? Ask about Fuel Cost Calculator and anybody who knows can answer. No account needed.

More ways to use Fuel Cost Calculator

  • Fuel Cost CalculatorGas or charging cost of a trip from distance, MPG or L/100 km and price, split per person
  • Trip Cost CalculatorFuel cost of a drive one way or there and back, in miles or kilometres
  • Road Trip Cost CalculatorGas for a road trip and each person’s share when friends split the fuel
  • MPG CalculatorMiles per gallon from a fill-up, and MPG converted to L/100 km and km/L
  • EV Charging Cost CalculatorElectricity cost of a drive in an electric car from kWh per 100 miles and price per kWh

Same job, other tools: GST Inclusive Calculator – Split a price that already includes GST into value and tax.

On the related tools: Step-up SIP Calculator – See how raising your SIP every year changes the final corpus.

Related tools

All money calculators
Zakat CalculatorZakat at 2.5% on cash, gold, silver and trade goods, with the nisab from your metal priceSIP CalculatorSee what a monthly SIP grows to, with a chart and year-by-year tableEMI CalculatorMonthly EMI, total interest and a full amortisation schedule for any loanGST CalculatorAdd or remove GST, with the CGST, SGST or IGST split for every itemFD CalculatorFixed deposit maturity and interest, cumulative or with monthly or quarterly payoutsPPF CalculatorPPF maturity at the current rate, with extensions and a year-by-year tableLumpsum CalculatorWhat a one-time investment grows to, before and after inflationHRA Exemption CalculatorHow much of your HRA is tax-free, with the least-of-three rule shown
Was this tool helpful?
Omnikit

Small jobs, done in your browser. Free, fast and private. Files are never uploaded.

Files

  • Compress Image
  • Image to PDF
  • Merge PDF
  • Compress PDF
  • PDF to Word
  • Word to PDF

Dev

  • JSON Formatter & Validator
  • Base64 Encode & Decode
  • JWT Decoder, Verifier & Encoder
  • Password Generator
  • UUID Generator
  • Unix Timestamp Converter

Money

  • SIP Calculator
  • EMI Calculator
  • GST Calculator
  • FD Calculator
  • PPF Calculator
  • Lumpsum Calculator
GuidesQuestionsAboutHow we checkLaw library (beta)PrivacyTermsDisclosureContactMore: Exam practice (UGC NET Paper 1)Runs in your browser. Nothing is uploaded. © 2026 Omnikit (theomnikit.com)