Business (67¢ per mile)
Medical / Moving (Active Military) (21¢ per mile)
Charitable Service (14¢ per mile)
Rate Applied:67¢ / mile
Mileage Deduction:$0.00
Parking & Tolls:$0.00
Total Reimbursement:$0.00
function updateRateDisplay() {
var rateSelect = document.getElementById('travelPurpose');
// This is purely visual feedback, not the calculation itself
}
function calculateReimbursement() {
// 1. Get DOM elements
var milesInput = document.getElementById('totalMiles');
var rateInput = document.getElementById('travelPurpose');
var tollsInput = document.getElementById('parkingTolls');
var resultBox = document.getElementById('calc-results');
var displayRate = document.getElementById('displayRate');
var displayMileageCost = document.getElementById('displayMileageCost');
var displayTolls = document.getElementById('displayTolls');
var displayTotal = document.getElementById('displayTotal');
// 2. Parse values
var miles = parseFloat(milesInput.value);
var rate = parseFloat(rateInput.value);
var tolls = parseFloat(tollsInput.value);
// 3. Validation and Defaulting
if (isNaN(miles) || miles < 0) {
alert("Please enter a valid number of miles.");
return;
}
if (isNaN(tolls)) {
tolls = 0;
}
// 4. Calculations
var mileageCost = miles * rate;
var totalReimbursement = mileageCost + tolls;
// 5. Formatting (Currency)
var formatter = new Intl.NumberFormat('en-US', {
style: 'currency',
currency: 'USD',
minimumFractionDigits: 2
});
// 6. Update UI
displayRate.innerText = (rate * 100).toFixed(0) + "¢ / mile";
displayMileageCost.innerText = formatter.format(mileageCost);
displayTolls.innerText = formatter.format(tolls);
displayTotal.innerText = formatter.format(totalReimbursement);
// Show results
resultBox.style.display = 'block';
}
Understanding the 2024 Federal Mileage Rates
The Internal Revenue Service (IRS) issued Notice 2024-08 to announce the standard mileage rates for 2024. These rates define the deductible costs for operating an automobile for business, charitable, medical, or moving purposes. This calculator utilizes the official 2024 data to help you estimate your potential tax deduction or employer reimbursement.
Official 2024 IRS Mileage Rates
Category
2024 Rate
Change from 2023
Business Use
67 cents per mile
+ 1.5 cents
Medical / Moving*
21 cents per mile
– 1.0 cent
Charitable Organizations
14 cents per mile
No Change
*The moving deduction is currently applicable only to active-duty members of the Armed Forces moving under orders to a permanent change of station.
How to Calculate Your Mileage Deduction
Calculating your deduction is straightforward, but accuracy is key for tax purposes. The formula used by the calculator above is:
(Total Business Miles × $0.67) + Parking Fees + Tolls = Total Deduction
For example, if you drove 1,000 miles for business purposes in 2024 and spent $50 on tolls:
1,000 miles × $0.67 = $670.00
Plus $50.00 Tolls
Total Deduction = $720.00
Record-Keeping Requirements
To claim the standard mileage rate, the IRS requires timely and accurate records. You cannot use estimates. Your logbook (physical or digital app) should record:
Date of the trip.
Mileage (Odometer start and end readings).
Place (Destination).
Purpose (Business reason for the travel).
Standard Mileage Rate vs. Actual Expenses
Taxpayers generally have the option to use the standard mileage rate or to deduct actual vehicle expenses. Actual expenses include gas, oil, repairs, tires, insurance, registration fees, and depreciation. The standard mileage rate is often preferred because it simplifies record-keeping, as you only need to track miles rather than keeping receipts for every gas station visit.
Note: If you choose the standard mileage rate for a car you own, you must choose to use it in the first year the car is available for use in your business. Then, in later years, you can choose to use either the standard mileage rate or actual expenses.