Business (67 cents/mile)
Medical / Moving for Military (21 cents/mile)
Charitable (14 cents/mile)
Current Rate: $0.67 per mile
Total Miles:0
Applied Rate (2024):$0.00
Estimated Tax Deduction:$0.00
Understanding the 2024 IRS Standard Mileage Rates
For the 2024 tax year, the Internal Revenue Service (IRS) has updated the optional standard mileage rates used to calculate the deductible costs of operating an automobile for business, charitable, medical, or moving purposes. This calculator helps taxpayers, freelancers, and business owners estimate their potential tax deductions based on these official figures.
Official 2024 Rates Breakdown
Category
Rate per Mile
Change from 2023
Business Use
67 cents
Increase of 1.5 cents
Medical & Moving
21 cents
Decrease of 1 cent
Charitable Organizations
14 cents
Unchanged (Statutory)
Note on Moving Expenses: The deduction for moving expenses is currently suspended for most taxpayers until 2025, except for members of the Armed Forces on active duty moving under military orders to a permanent change of station.
How to Use This Calculator
To determine your estimated deduction:
Enter Total Miles: Input the exact number of miles driven for the specific purpose. Do not combine miles from different categories (e.g., calculate business miles separately from charitable miles).
Select Purpose: Choose the correct IRS category from the dropdown menu. The calculator automatically applies the specific 2024 rate associated with that category.
Calculate: Click the button to see your potential deduction amount.
Record-Keeping Requirements
To claim these deductions, the IRS requires timely and accurate record-keeping. It is insufficient to estimate your mileage at the end of the year. Your mileage log should include:
The date of the trip.
The starting point and destination.
The business purpose of the trip.
The total miles driven.
Odometer readings (start and end).
Using a standard mileage rate is often simpler than tracking actual vehicle expenses (gas, insurance, repairs, depreciation), but you must choose one method for the vehicle in the first year it is used for business.
function updateRateDisplay() {
var selector = document.getElementById("tripPurpose");
var selectedRate = selector.options[selector.selectedIndex].value;
var displayDiv = document.getElementById("currentRateDisplay");
displayDiv.innerHTML = "Current Rate: $" + selectedRate + " per mile";
}
function calculateDeduction() {
// 1. Get input values
var milesInput = document.getElementById("totalMiles").value;
var rateInput = document.getElementById("tripPurpose").value;
// 2. Parse values to numbers
var miles = parseFloat(milesInput);
var rate = parseFloat(rateInput);
// 3. Validate inputs
if (isNaN(miles) || miles < 0) {
alert("Please enter a valid positive number for miles driven.");
return;
}
// 4. Perform calculation
var deductionAmount = miles * rate;
// 5. Format results for display (Currency and Number formatting)
var formatter = new Intl.NumberFormat('en-US', {
style: 'currency',
currency: 'USD',
minimumFractionDigits: 2
});
// 6. Update DOM
document.getElementById("displayMiles").innerHTML = miles.toLocaleString();
document.getElementById("displayRate").innerHTML = "$" + rate.toFixed(2) + " / mile";
document.getElementById("totalDeduction").innerHTML = formatter.format(deductionAmount);
// 7. Show result box
document.getElementById("results").style.display = "block";
}