How to calculate the standard mileage deduction in Excel

This is not tax, legal, or lending advice. The standard mileage rate is optional. You can use actual vehicle expenses instead. The sheet is not a Schedule C and it is not Form 2106.

The sample is the same made-up 2026 realtor log as the business mileage log and the mileage log how-to. Ten trips are business. One trip is personal: six miles to a grocery store on November 28. Business miles are 228. The estimated deduction is $168.80.

The rates are inputs you can type over. The sample uses the IRS figures copied onto the sheet on November 18, 2026. IR-2025-128 sets 72.5 cents per mile for business use from January 1 through June 30, 2026. The IRS standard mileage rates table lists 76 cents for business use from July 1 through December 31, 2026, and names IR-2026-29 as that row’s source.

Type the rate as dollars per mile. 72.5 cents is 0.725. 76 cents is 0.76. A currency format can show those as $0.725 and $0.760. Do not type 72.5 into the rate cell and also divide by 100 in the formula.

The rate follows the date

June 30 is still the first rate. July 1 is the first day of the second rate. The test is the trip date compared with July 1, 2026.

IF
=IF(A2<DATE(2026,7,1),0.725,0.76)
=IF(A2<DATE(2026,7,1),0.725,0.76)B2
Which 2026 business rate
AB
1DateBusiness rate
26/12/2026$0.725
36/30/2026$0.725
47/01/2026$0.760
57/04/2026$0.760
A picture of the rate test. June 12 and June 30 are before July 1, so the rate is 0.725. July 1 and July 4 use 0.76. The cells store dollars per mile. A currency format shows $0.725 and $0.760.
=IF(DATE(2026,6,12)<DATE(2026,7,1), 0.725, 0.76)
=IF(DATE(2026,6,30)<DATE(2026,7,1), 0.725, 0.76)
=IF(DATE(2026,7,1)<DATE(2026,7,1), 0.725, 0.76)
=IF(DATE(2026,7,4)<DATE(2026,7,1), 0.725, 0.76)

Those results are 0.725, 0.725, 0.76, and 0.76. June 30 is less than July 1, so it stays on the first rate. July 1 is not less than July 1, so it uses the second rate.

One trip, rounded to the cent

The deduction for a business trip is the miles times the rate for that date, rounded to cents. ROUND uses half away from zero. 20 × 0.725 is 14.50 exactly, so the cent does not move. 22 × 0.76 is 16.72 exactly.

ROUND
=IF(E2="Personal","",ROUND(B2*C2,2))
=IF(E2="Personal","",ROUND(B2*C2,2))D2
Three trips
ABCDE
1DateMilesRateDeductionPurpose
26/12/202620$0.725$14.50Business
37/04/202622$0.760$16.72Business
411/28/20266$0.760Personal
A picture of three rows from the sample log. June 12 is 20 times 0.725, which is 14.50. July 4 is 22 times 0.76, which is 16.72. November 28 is personal, so the deduction cell is blank rather than 4.56.

A personal trip stays on the log and contributes nothing. November 28 is 6 miles at 0.76, which would be $4.56 if it were business. The purpose cell says Personal, so the deduction formula returns a blank. A blank is not the same as hiding $4.56 in a white font. The cell is empty, and a later sum skips it.

=IF(E2="Personal", "", ROUND(B2*C2, 2))

The ten business trips

Date Purpose Miles Rate Deduction
01/15/2026 Business 28 $0.725 $20.30
02/03/2026 Business 14 $0.725 $10.15
03/21/2026 Business 22 $0.725 $15.95
04/09/2026 Business 36 $0.725 $26.10
05/18/2026 Business 8 $0.725 $5.80
06/12/2026 Business 20 $0.725 $14.50
07/04/2026 Business 22 $0.760 $16.72
08/20/2026 Business 14 $0.760 $10.64
09/15/2026 Business 36 $0.760 $27.36
11/02/2026 Business 28 $0.760 $21.28
11/28/2026 Personal 6 $0.760 blank

The first six deductions are 20.30 + 10.15 + 15.95 + 26.10 + 5.80 + 14.50. That is $92.80, on 128 miles, all before July 1. 128 × 0.725 is also 92.80.

The last four business deductions are 16.72 + 10.64 + 27.36 + 21.28. That is $76.00, on 100 miles. 100 × 0.76 = 76.00. November 28 is not in that add.

One rate for the whole year is a different deduction

Business miles are 128 + 100 = 228. The estimated deduction is 92.80 + 76.00 = $168.80.

ROUND
=ROUND(228*0.725,2)
=ROUND(228*0.725,2)B3
The year
AB
1CheckAmount
2Business deduction$168.80
3All 228 miles at 72.5 cents$165.30
4All 228 miles at 76 cents$173.28
5Business plus 6 personal miles$173.36
A picture of the year check. The business deduction is 92.80 plus 76.00, which is $168.80. Using 72.5 cents on all 228 miles is $165.30. Using 76 cents on all 228 is $173.28. Adding the 6 personal miles at 76 cents to the business deduction makes $173.36.

SUMIFS adds the deduction column where the purpose is Business. With a header in row 1, the eleven trips occupy rows 2 through 12, deduction in column D and purpose in column E:

=SUMIFS(D2:D12, E2:E12, "Business")

That returns $168.80. SUM of the deduction column returns the same $168.80 while the personal cell is blank. The SUMIFS still matters if that cell gets filled in by mistake. Six personal miles at 76 cents are $4.56. 168.80 + 4.56 = 173.36. SUMIFS on Business leaves that $4.56 out.

A single rate on all 228 business miles is also wrong for 2026, because the IRS changed the business rate on July 1.

=ROUND(228*0.725, 2)
=ROUND(228*0.76, 2)

228 × 0.725 = 165.30. That is $3.50 under the two-rate total, because the 100 second-half miles were priced at 72.5 cents instead of 76 cents. The gap is 100 × (0.76 − 0.725) = 100 × 0.035 = 3.50.

228 × 0.76 = 173.28. That is $4.48 over the two-rate total, because the 128 first-half miles were priced at 76 cents instead of 72.5 cents. The gap is 128 × 0.035 = 4.48. 168.80 + 4.48 = 173.28.

Charity and medical are different rates

The same IRS table lists two other optional rates. Charity is 14 cents per mile for all of 2026. Medical or military moving is 20.5 cents from January 1 through June 30, and 23.5 cents from July 1 through December 31. The sheet does not decide which rate a trip qualifies for. IRS Topic No. 510 is the page that describes business use of a car.

ROUND
=ROUND(10*0.14,2)
=ROUND(10*0.14,2)C2
Ten miles at the other rates
ABC
1TripRateDeduction
2Charity, any 2026 date$0.140$1.40
3Medical, 6/12/2026$0.205$2.05
4Medical, 7/04/2026$0.235$2.35
A picture of 10 miles at the other 2026 rates from the same IRS table. Charity is 14 cents all year, so the deduction is $1.40. Medical or military moving is 20.5 cents on June 12 ($2.05) and 23.5 cents on July 4 ($2.35).

Ten charity miles are 10 × 0.14 = 1.40 all year. Ten medical miles on June 12 are 10 × 0.205 = 2.05. The same ten miles on July 4 are 10 × 0.235 = 2.35. Putting any of those trips in the business column, at 72.5 or 76 cents, uses the wrong rate.

The workbook with the realtor rows, the two business rates, and the $168.80 total is the business mileage log.


Template for this article

Business Mileage Log

More from the blog