The real cost of driving to work is far more than gas — it includes maintenance, insurance wear, depreciation, and parking. This calculator uses the IRS standard mileage rate (about $0.67/mile) to capture full driving cost, adds Kansas City parking ($90/mo), and compares the total to a KCATA transit pass ($50/mo) so you can see which commute is genuinely cheaper.
How it works
Driving cost combines round-trip mileage at the IRS rate with parking; transit is the flat pass:
monthlyMiles = oneWayMiles * 2 * daysPerMonth
drivingCost = monthlyMiles * irsRatePerMile + parking
transitCost = monthlyPass
savings = drivingCost - transitCost
The IRS rate already bundles fuel, maintenance, and depreciation, so you don’t add those separately. Set the pass to $0 to model Kansas City’s fare-free bus periods, and adjust parking to match where you park downtown.
Notes and example
A 10-mile one-way commute, 22 days a month, is 10 × 2 × 22 = 440 monthly miles. At $0.67/mile that’s about $295, plus $90 parking for a ~$385/month driving total. A $50 KCATA pass saves roughly $335/month — and more if fares are waived. Shorter commutes narrow the gap, but parking usually keeps transit ahead downtown. Everything runs locally; nothing is uploaded.