function calculateGSAMileage() {
// 1. Get inputs
var milesInput = document.getElementById("gsaMilesDriven").value;
var rateSelect = document.getElementById("gsaVehicleScenario");
var selectedRate = rateSelect.options[rateSelect.selectedIndex].value;
var resultBox = document.getElementById("gsaCalculationResult");
// 2. Validate inputs
var miles = parseFloat(milesInput);
var rate = parseFloat(selectedRate);
if (isNaN(miles) || miles <= 0) {
resultBox.style.display = "block";
resultBox.innerHTML = "Please enter a valid, positive distance in miles.";
return;
}
if (isNaN(rate)) {
// This should ideally not happen unless the HTML is modified, but good practice.
resultBox.style.display = "block";
resultBox.innerHTML = "Error selecting rate. Please refresh.";
return;
}
// 3. Calculate total reimbursement
var totalReimbursement = miles * rate;
// 4. Display result formatted as currency
resultBox.style.display = "block";
// Format to USD currency style
var formattedResult = totalReimbursement.toLocaleString('en-US', {
style: 'currency',
currency: 'USD',
minimumFractionDigits: 2,
maximumFractionDigits: 2
});
resultBox.innerHTML = "Total Estimated Reimbursement:" + formattedResult + "";
}
Understanding the 2024 GSA Mileage Rates
The U.S. General Services Administration (GSA) establishes mileage reimbursement rates for federal employees who use their privately owned vehicles (POV) for official government business. These rates are updated annually based on an analysis of the costs to operate various types of vehicles. While designed for federal travel, many private sector employers also adopt these rates as a standard for reimbursing their own employees for business travel expenses.
Effective January 1, 2024, the GSA implemented new mileage rates. The calculator above uses these specific 2024 figures to estimate your total reimbursement based on distance traveled and vehicle type.
Official 2024 POV Reimbursement Rates
It is crucial to select the correct scenario when calculating your reimbursement. The standard rate applies when use of a POV is authorized and advantageous to the Government. However, if a Government-furnished vehicle was available but you chose to use your own car, a lower rate applies.
Vehicle / Scenario
Rate Per Mile (2024)
Privately Owned Automobile (Standard Rate)
$0.67
Privately Owned Automobile (If Government vehicle available)
$0.21
Privately Owned Motorcycle
$0.65
Privately Owned Airplane
$1.76
Calculation Example
To understand how the reimbursement is calculated, consider an employee who uses their personal car for a business trip because no government vehicle is available (the standard automobile rate).
Distance Traveled: 125 miles
Applicable Rate (2024 Standard Auto): $0.67 per mile
Calculation: 125 miles x $0.67/mile = $83.75
Using the calculator at the top of this page ensures you are using the current rates and minimizes math errors when submitting expense reports.
Note: Always verify specific reimbursement policies with your agency or employer's travel department, as local rules may vary from the federal standard.