How to Calculate Your Fuel Cost Per Mile
The basic formula: divide total fuel cost by total miles driven
To find your fuel cost per mile, you need two numbers: how much you spent on fuel and how many miles you drove during that period. Divide the fuel cost by the miles. That's it.
For example: if you spent $60 on gas and drove 300 miles, your cost per mile is $60 ÷ 300 = $0.20 per mile. The longer your tracking period, the more accurate your number will be. One fill-up won't tell you much. A month or three months of driving gives you a real picture.
Most people track this to understand whether their vehicle is costing them more than expected, to compare vehicles before buying, or to calculate mileage deductions for taxes or reimbursement. The math works the same way regardless of why you're doing it.
Key Takeaways
- Fuel cost per mile is calculated by dividing your total fuel spending by your total miles driven over the same period.
- Track at least a month of driving to get an accurate number, since a single fill-up can be skewed by your starting fuel level.
- You need the actual amount you paid at the pump and your odometer readings or trip meter, nothing else.
- Seasonal changes, driving habits, and vehicle condition all affect your cost per mile, so recalculate periodically to spot changes.
What you need to track
Start by recording two pieces of information each time you fill up: the date, the amount you paid, and your odometer reading (or reset your trip meter to zero). Write these down or photograph your receipt and dashboard. After a month, you'll have enough data to calculate accurately.
If you're tracking for tax purposes or reimbursement, your employer or the IRS may require actual receipts, so keep them. For personal tracking, the numbers themselves are what matter.
Some people use apps or spreadsheets to automate this. Others use a simple notebook. The method doesn't matter as long as you capture the fuel cost and miles consistently. If you forget to record a fill-up, don't guess—just start fresh from your next fill-up.
Why your cost per mile changes
Your fuel cost per mile won't stay the same month to month. Gas prices fluctuate, so the same driving pattern costs more in summer than winter. Your driving habits matter too: highway driving burns less fuel per mile than city driving with frequent stops. Cold weather, a heavy load, underinflated tires, and a vehicle that needs maintenance all increase fuel consumption.
If your cost per mile suddenly jumps, check whether gas prices rose, whether you've been driving mostly in the city, or whether your tire pressure has dropped. A gradual increase over months might signal that your vehicle needs a tune-up or that your driving patterns have shifted.
Recalculate every few months to track trends. This helps you spot real problems—like a failing oxygen sensor—before they become expensive.
Calculating cost per mile for tax deductions
If you're deducting mileage for taxes, the IRS doesn't ask you to calculate your actual fuel cost per mile. Instead, they set a standard mileage rate each year. For 2024, you multiply your total business miles by the IRS rate rather than tracking your real expenses.
However, you can choose to deduct your actual expenses instead of the standard rate if your real cost per mile is higher. To do this, you need accurate records: fuel receipts, maintenance costs, insurance, registration, and depreciation. Calculating your fuel cost per mile is just one part of that calculation. Most people find the standard mileage rate simpler and often better.
Keep records of your mileage either way. A mileage log with dates, destinations, and miles driven is what the IRS wants to see, along with receipts for fuel and other expenses if you're claiming actual costs.
Comparing vehicles before you buy
When you're deciding between two vehicles, fuel cost per mile helps you see the real difference. Look up the EPA fuel economy estimate for each vehicle (found on fueleconomy.gov), then calculate what it would cost to drive each one for a year based on your typical mileage and current gas prices.
For example: Vehicle A gets 25 miles per gallon, Vehicle B gets 35 miles per gallon. At $3.50 per gallon and 12,000 miles per year, Vehicle A costs $1,680 in fuel annually. Vehicle B costs $1,200. That $480 difference adds up. Over five years, you'd spend $2,400 more on fuel in Vehicle A.
This calculation helps you weigh fuel economy against purchase price. A cheaper vehicle that gets poor mileage might cost you more over time than a pricier one that's efficient.
Using cost per mile for reimbursement
If your employer or a client reimburses you for mileage, check what rate they use. Many use the IRS standard mileage rate. Some use actual fuel cost per mile. A few use a flat rate per mile that may be higher or lower than either.
If they reimburse based on actual fuel cost, calculate your cost per mile over the reimbursement period and multiply by the miles you drove for them. Keep your fuel receipts and mileage records organized by date so you can separate business miles from personal miles if needed.
If the reimbursement rate seems low compared to your actual cost per mile, ask whether you can use your real expenses instead. Some employers will negotiate if you show them the math.
Common mistakes to avoid
The most common error is calculating cost per mile from a single fill-up. Your tank might have been half-empty when you started, so that fill-up doesn't represent the miles you actually drove. Always track across multiple fill-ups or use a full month of data.
Another mistake is forgetting to include all fuel costs. If you buy fuel at different stations or occasionally use a credit card, make sure you're adding all of it. Missing even one fill-up skews your average.
Don't confuse fuel cost per mile with miles per gallon. They're related but opposite: high MPG means low cost per mile. If you know your MPG and the price of gas, you can calculate cost per mile by dividing the gas price by your MPG. For example: $3.50 per gallon ÷ 25 MPG = $0.14 per mile.
Frequently Asked Questions
How do I calculate cost per mile if I don't know my exact starting odometer reading?
Use your trip meter instead. Reset it to zero at your first fill-up, then record the trip meter reading at each subsequent fill-up. The trip meter shows distance traveled, which is what you need. Just make sure you don't accidentally reset it between fill-ups.
Should I include maintenance and insurance in my cost per mile?
For fuel cost per mile specifically, no—that's just fuel. If you want your total cost to operate the vehicle, add maintenance, insurance, registration, and depreciation. That number is much higher and more useful for deciding whether to keep or replace a vehicle.
Why is my cost per mile higher in winter?
Cold engines burn more fuel before they warm up, and cold air is denser, which increases drag. Winter tires also have more rolling resistance than summer tires. Gas prices often rise in winter too. All of these push your cost per mile up. This is normal and usually reverses in spring.
Can I use my credit card statement instead of receipts to calculate fuel cost?
Yes, if your credit card statement shows the exact amount you paid for fuel at each station. However, if you use the same card for other purchases, you'll need to separate fuel charges from everything else. Receipts are clearer because they show only the fuel purchase.
What if I drive a hybrid or electric vehicle?
The formula is the same: total fuel or electricity cost divided by total miles. For electric vehicles, calculate the cost of electricity per kilowatt-hour from your utility bill, then divide by your vehicle's efficiency rating (miles per kilowatt-hour). For hybrids, track fuel the same way you would for any gas vehicle.