2024 Mileage Rate Calculator

2024 IRS Mileage Rate Calculator

The Internal Revenue Service (IRS) sets standard mileage rates each year for business, medical, and moving expenses. These rates are used to calculate the deductible cost of using a personal vehicle for these purposes. For 2024, the standard mileage rate for business use has been updated. This calculator helps you quickly determine your potential tax deduction based on the miles you've driven.

Understanding the 2024 Mileage Rates

The IRS standard mileage rate for business use of a car is 67 cents per mile for 2024. This rate covers the costs of operating a vehicle, such as gas, oil, maintenance, repairs, tires, insurance, and depreciation.

For medical and moving purposes, the 2024 standard mileage rate is 21 cents per mile. This rate applies to miles driven for qualified medical care and for moves related to a new job location, provided certain distance tests are met.

To use this calculator, simply enter the total number of miles you drove for business, medical, and/or moving purposes in 2024. The calculator will then compute the deductible amount for each category and the total potential deduction.

Important Note: These rates are for the use of your personal vehicle. If you are reimbursed by your employer using these rates, the reimbursement is generally not taxable. If you use other methods to calculate your actual vehicle expenses, you cannot use the standard mileage rate.

function calculateMileageDeduction() { var businessMiles = parseFloat(document.getElementById("businessMiles").value); var medicalMiles = parseFloat(document.getElementById("medicalMiles").value); var movingMiles = parseFloat(document.getElementById("movingMiles").value); var businessRate = 0.67; // 67 cents per mile for business var medicalMovingRate = 0.21; // 21 cents per mile for medical and moving var businessDeduction = 0; var medicalDeduction = 0; var movingDeduction = 0; var totalDeduction = 0; if (!isNaN(businessMiles) && businessMiles >= 0) { businessDeduction = businessMiles * businessRate; } if (!isNaN(medicalMiles) && medicalMiles >= 0) { medicalDeduction = medicalMiles * medicalMovingRate; } if (!isNaN(movingMiles) && movingMiles >= 0) { movingDeduction = movingMiles * medicalMovingRate; } totalDeduction = businessDeduction + medicalDeduction + movingDeduction; var resultHtml = "

Your Estimated 2024 Mileage Deduction:

"; resultHtml += "Business Miles Deduction: $" + businessDeduction.toFixed(2) + ""; resultHtml += "Medical Miles Deduction: $" + medicalDeduction.toFixed(2) + ""; resultHtml += "Moving Miles Deduction: $" + movingDeduction.toFixed(2) + ""; resultHtml += "Total Estimated Deduction: " + totalDeduction.toFixed(2) + ""; document.getElementById("result").innerHTML = resultHtml; } .mileage-calculator-wrapper { font-family: Arial, sans-serif; border: 1px solid #e0e0e0; padding: 20px; border-radius: 8px; max-width: 600px; margin: 20px auto; background-color: #f9f9f9; } .mileage-calculator-wrapper h2, .mileage-calculator-wrapper h3 { color: #333; margin-bottom: 15px; } .calculator-inputs { margin-bottom: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; } .input-group { display: flex; flex-direction: column; } .input-group label { margin-bottom: 5px; font-weight: bold; color: #555; } .input-group input[type="number"] { padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 1em; box-sizing: border-box; /* Important for consistent sizing */ } .input-group input[type="number"]:focus { border-color: #007bff; outline: none; box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25); } .mileage-calculator-wrapper button { background-color: #28a745; color: white; padding: 12px 20px; border: none; border-radius: 5px; font-size: 1.1em; cursor: pointer; transition: background-color 0.3s ease; display: block; width: 100%; margin-bottom: 20px; } .mileage-calculator-wrapper button:hover { background-color: #218838; } .calculator-result { background-color: #e9ecef; border: 1px solid #ced4da; padding: 15px; border-radius: 5px; margin-top: 20px; } .calculator-result p { margin-bottom: 10px; color: #333; } .calculator-result .total { color: #28a745; font-size: 1.2em; } .calculator-explanation { margin-top: 30px; border-top: 1px solid #e0e0e0; padding-top: 20px; font-size: 0.95em; color: #555; line-height: 1.6; } .calculator-explanation strong { color: #333; }

Leave a Comment