Calculate Gas Mileage & Fuel Cost Instantly (MPG & L/100km)
Calculate MPG and fuel efficiency. Support both US (miles/gallons) and metric (km/liters) units. Shows fuel efficiency rating, cost per mile/km, and annual fuel cost estimates.
How to Use Gas Mileage Calculator
How to Use Gas Mileage Calculator
Select Unit System: Choose between US units (Miles/Gallons/MPG) or Metric units (Kilometers/Liters/L/100km) based on your preference and location.
Try Example Presets: Click on example presets like "Hybrid Car", "SUV", "Compact Car", or "Truck" to see sample calculations for different vehicle types.
Enter Distance Traveled: Input the total distance you traveled on your trip in miles or kilometers, depending on your selected unit system.
Enter Fuel Used: Input how much fuel you consumed during the trip in gallons or liters. For best accuracy, fill your tank completely before and after the trip.
Add Fuel Price (Optional): Enter the current price per gallon or liter to calculate cost per mile/km and enable annual cost estimates.
Add Annual Distance (Optional): Enter your typical annual driving distance to see yearly fuel costs and CO2 emissions estimates.
Click Calculate: Press the Calculate button to see your fuel efficiency, cost analysis, and environmental impact.
View Efficiency Rating: See your MPG or L/100km with a color-coded rating (Excellent, Good, Average, or Poor) to understand your vehicle's efficiency.
Review Cost Analysis: Check cost per mile/km, annual fuel cost, and total fuel needed per year to budget your fuel expenses.
Check CO2 Emissions: If annual distance is provided, view your estimated yearly CO2 emissions to understand your environmental impact.
Reset Anytime: Click the Reset button to clear all inputs and start a new calculation.
Common Use Cases
- Track Vehicle Efficiency: Monitor your car's actual fuel economy to detect maintenance issues or changes in performance.
- Compare Vehicles: Calculate and compare fuel efficiency between different cars when deciding which to purchase or use.
- Budget Fuel Costs: Estimate annual fuel expenses based on your driving habits and current fuel prices.
- Monitor Driving Habits: See how different driving styles (aggressive vs. conservative) affect your fuel efficiency.
- Trip Planning: Calculate fuel costs for road trips and long-distance travel based on expected distance.
- Environmental Impact: Track your vehicle's CO2 emissions and carbon footprint.
- Maintenance Decisions: Identify when fuel efficiency drops, indicating potential maintenance needs.
- Fleet Management: Monitor fuel efficiency across multiple vehicles for business or family use.
Tips for Best Results
- Fill your tank completely at the start and end of measurement for accurate fuel consumption
- Record odometer readings precisely to calculate exact distance traveled
- Perform multiple measurements over time to get an average fuel efficiency
- Higher MPG is better (US units), lower L/100km is better (metric units)
- City driving typically gets 20-30% lower efficiency than highway driving
- Aggressive acceleration and braking can reduce fuel efficiency by up to 40%
- Proper tire inflation can improve fuel efficiency by 3-5%
- Excess weight in your vehicle reduces efficiency - remove unnecessary items
- Regular maintenance (oil changes, air filters) helps maintain optimal efficiency
- Use cruise control on highways to maintain consistent speeds and improve efficiency
Frequently Asked Questions
Most Viewed Tools
TOTP Code Generator
Generate time-based one-time passwords from a TOTP secret key. Enter your base32 secret, choose a period and digit length, and get the current and next codes with a live countdown timer. Useful for testing and debugging 2FA integrations.
Use Tool βJSON to Zod Schema Generator
Generate Zod validation schema code from a JSON sample object. Infers z.string(), z.number(), z.boolean(), z.array(), z.object(), and z.null() types automatically. Handles nested objects, arrays of objects with optional field detection, and outputs copy-ready TypeScript with import and z.infer type alias.
Use Tool βJSONL / NDJSON Formatter
Format, validate, and inspect JSON Lines (JSONL) and NDJSON files. Validates each line individually, reports parse errors by line number, outputs compact JSONL or a pretty-print preview, and lets you download the cleaned file.
Use Tool βSecret and Credential Scanner
Scan pasted text, code, or config files for accidentally exposed API keys, tokens, passwords, and private keys. Detects 50+ secret types across AWS, GitHub, Stripe, OpenAI, and more β all client-side, nothing leaves your browser.
Use Tool βTLS Cipher Suite Checker
Check TLS protocol version compatibility and cipher suite strength ratings against current best practices. Supports IANA and OpenSSL cipher names β rates each suite as Strong, Weak, or Deprecated and explains why.
Use Tool βPassword Entropy Calculator
Calculate the information-theoretic bit entropy of any password or API key. Detects character set pools automatically, shows the total number of possible combinations, and estimates crack time across five attack scenarios from rate-limited web logins to GPU cracking clusters.
Use Tool βTOML Config Validator
Validate TOML configuration file syntax and report errors with line numbers. Paste any TOML content β Cargo.toml, pyproject.toml, config.toml β and instantly see a green checkmark with key counts and structure stats, or a precise error message pointing to the exact line. Includes a collapsible JSON structure preview to confirm what was parsed.
Use Tool βContent Security Policy Generator
Build Content Security Policy headers interactively. Toggle directives like script-src, style-src, and img-src, select allowed source tokens, and add custom origins. Instantly outputs your CSP as an HTTP header, meta tag, Nginx directive, or Apache header.
Use Tool βRelated Utility Tools
Word Counter
FeaturedCount words, characters, sentences, and reading time instantly
Use Tool βUnit Converter
FeaturedConvert between length, weight, and volume units instantly. Support for metric and imperial systems.
Use Tool βTemperature Converter
FeaturedConvert temperatures between Celsius, Fahrenheit, and Kelvin instantly with live conversion
Use Tool βTime Zone Converter
FeaturedConvert between time zones and see current or custom time across different parts of the world
Use Tool βSpeed Converter
FeaturedConvert speeds between miles per hour (MPH), kilometers per hour (KPH), and knots instantly
Use Tool βArea Converter
FeaturedConvert areas between square feet, square meters, acres, hectares, and square yards instantly
Use Tool βRandom Sentence Generator
Generate random grammatically correct sentences for creative writing, testing, and content creation.
Use Tool βWord to PDF
Convert Word documents (.docx) to PDF format instantly in your browser. Preserves text, headings, lists, and basic formatting.
Use Tool βShare Your Feedback
Help us improve this tool by sharing your experience