Important for 2022 Taxes: The IRS increased mileage rates mid-year (July 1, 2022) due to rising fuel costs. This calculator handles both periods separately.
Business Miles
Rate: 58.5 cents/mile
Rate: 62.5 cents/mile
Medical & Moving Miles
*Moving is for qualified active-duty military only.
Rate: 18 cents/mile
Rate: 22 cents/mile
Charitable Miles
Rate: 14 cents/mile (All Year)
Business Deduction:$0.00
Medical/Moving Deduction:$0.00
Charitable Deduction:$0.00
Total 2022 Tax Deduction:$0.00
Understanding the 2022 Federal Mileage Rates
The 2022 tax year was unique regarding the standard mileage deduction. In recognition of recent gasoline price increases, the Internal Revenue Service (IRS) announced a rare mid-year adjustment to the optional standard mileage rates for the final 6 months of 2022.
Using the correct calculator is critical for your 2022 tax return because applying the wrong rate to the wrong set of months could result in either a reduced refund or an audit flag for over-deduction.
The 2022 Rate Split Explained
Typically, the IRS sets a single rate for the entire calendar year. However, due to inflation and volatile fuel markets, 2022 has two distinct periods:
Category
Jan 1 – Jun 30, 2022
Jul 1 – Dec 31, 2022
Business
58.5 cents/mile
62.5 cents/mile
Medical / Moving*
18 cents/mile
22 cents/mile
Charitable
14 cents/mile
14 cents/mile
*Note: The moving expense deduction is currently available only to members of the Armed Forces on active duty moving under a military order.
How to Calculate Your Deduction
To accurately calculate your deduction for the 2022 tax year, you cannot simply sum your total annual miles and multiply by a single rate. You must segregate your mileage logs into two buckets:
First Half (H1): Miles driven between January 1 and June 30.
Second Half (H2): Miles driven between July 1 and December 31.
The tool above automatically applies the weighted logic: (H1 Miles × Rate 1) + (H2 Miles × Rate 2).
Documentation Requirements
If you claim the standard mileage rate, you must maintain a timely log of your miles. A compliant mileage log includes:
The date of the drive.
The miles driven.
The destination and business purpose.
The total mileage on the vehicle at the start and end of the year.
Charitable Miles Exception
Unlike Business and Medical rates, the charitable mileage rate is set by statute and was not adjusted mid-year. It remained at 14 cents per mile for the entirety of 2022.
function calculateDeduction() {
// 1. Define 2022 Rates
// Period 1: Jan 1 – Jun 30
var rateBizH1 = 0.585;
var rateMedH1 = 0.18;
// Period 2: Jul 1 – Dec 31
var rateBizH2 = 0.625;
var rateMedH2 = 0.22;
// Charitable (All Year)
var rateCharity = 0.14;
// 2. Get Input Values
var bizMilesH1 = parseFloat(document.getElementById('bizMilesH1').value) || 0;
var bizMilesH2 = parseFloat(document.getElementById('bizMilesH2').value) || 0;
var medMilesH1 = parseFloat(document.getElementById('medMilesH1').value) || 0;
var medMilesH2 = parseFloat(document.getElementById('medMilesH2').value) || 0;
var charityMiles = parseFloat(document.getElementById('charityMiles').value) || 0;
// 3. Perform Calculations
var dedBiz = (bizMilesH1 * rateBizH1) + (bizMilesH2 * rateBizH2);
var dedMed = (medMilesH1 * rateMedH1) + (medMilesH2 * rateMedH2);
var dedCharity = charityMiles * rateCharity;
var totalDeduction = dedBiz + dedMed + dedCharity;
// 4. Update Output
// Helper function for currency formatting
function formatMoney(amount) {
return '$' + amount.toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 });
}
document.getElementById('valBiz').innerText = formatMoney(dedBiz);
document.getElementById('valMed').innerText = formatMoney(dedMed);
document.getElementById('valCharity').innerText = formatMoney(dedCharity);
document.getElementById('valTotal').innerText = formatMoney(totalDeduction);
// Show results area
document.getElementById('resultsArea').style.display = 'block';
}