The Internal Revenue Service (IRS) sets standard mileage rates annually to help taxpayers calculate the deductible costs of operating an automobile for business, charitable, medical, or moving purposes. For the 2023 tax year, these rates saw an increase compared to the start of 2022 due to rising fuel and maintenance costs.
Official IRS Mileage Rates for 2023
If you are filing taxes for the 2023 tax year (typically filed in early 2024), these are the specific rates you must use for your calculations:
Purpose
Rate per Mile
Business
65.5 cents
Medical & Qualified Moving
22 cents
Charitable Organizations
14 cents
How to Calculate Your Deduction
To calculate your total deduction using the standard mileage rate method, you simply multiply the number of miles driven for a specific purpose by the applicable rate. Additionally, you can add the actual cost of parking fees and tolls directly to this amount.
For example, if you drove 1,000 miles for business in 2023:
1,000 miles × $0.655 = $655.00 deduction.
Standard Mileage vs. Actual Expenses
Taxpayers generally have the option to choose between the Standard Mileage Rate (using the calculator above) and the Actual Expense Method.
Standard Mileage Rate: Simpler. Requires tracking miles, date, destination, and purpose. Covers gas, insurance, depreciation, and repairs.
Actual Expense Method: Requires tracking every single car-related receipt (gas, lease payments, insurance, repairs, tires) and calculating the percentage of business use vs. personal use.
Record Keeping Requirements
The IRS requires timely and accurate records. You cannot estimate your mileage at the end of the year. To survive an audit, you should maintain a mileage log containing:
The date of the trip.
The starting point and destination.
The business purpose of the trip.
Total miles driven.
Odometer readings (start and end of year).
Disclaimer: This calculator is for educational and estimation purposes only. Always consult with a qualified tax professional or CPA regarding your specific tax situation and eligibility for deductions.
function calculateMileage2023() {
// 1. Get input values
var busMilesInput = document.getElementById('businessMiles').value;
var medMilesInput = document.getElementById('medicalMiles').value;
var charMilesInput = document.getElementById('charityMiles').value;
var tollsInput = document.getElementById('tollsParking').value;
// 2. Parse values (handle empty inputs as 0)
var businessMiles = parseFloat(busMilesInput);
if (isNaN(businessMiles)) businessMiles = 0;
var medicalMiles = parseFloat(medMilesInput);
if (isNaN(medicalMiles)) medicalMiles = 0;
var charityMiles = parseFloat(charMilesInput);
if (isNaN(charityMiles)) charityMiles = 0;
var tolls = parseFloat(tollsInput);
if (isNaN(tolls)) tolls = 0;
// 3. Define 2023 IRS Rates
var rateBusiness = 0.655; // 65.5 cents
var rateMedical = 0.22; // 22 cents
var rateCharity = 0.14; // 14 cents
// 4. Calculate Deductions
var deductionBusiness = businessMiles * rateBusiness;
var deductionMedical = medicalMiles * rateMedical;
var deductionCharity = charityMiles * rateCharity;
var totalDeduction = deductionBusiness + deductionMedical + deductionCharity + tolls;
// 5. Format Currency Helper Function
function formatCurrency(num) {
return '$' + num.toFixed(2).replace(/\d(?=(\d{3})+\.)/g, '$&,');
}
// 6. Update HTML Results
document.getElementById('resBusiness').innerText = formatCurrency(deductionBusiness);
document.getElementById('resMedical').innerText = formatCurrency(deductionMedical);
document.getElementById('resCharity').innerText = formatCurrency(deductionCharity);
document.getElementById('resTolls').innerText = formatCurrency(tolls);
document.getElementById('resTotal').innerText = formatCurrency(totalDeduction);
// 7. Show Result Box
document.getElementById('resultDisplay').style.display = 'block';
}