What does the code D 18 mean for a military or government W2?

 

Tax help for military filers

Is that in box 12 on a W-2?

Code D in box 12 reports your contribution to a 401(k) plan.   You do not enter the 18, that just means that it is for the year 2018. Just enter the code D and the amount.
**Disclaimer: This post is for discussion purposes only and is NOT tax advice. The author takes no responsibility for the accuracy of any information in this post.**

Tax help for military filers

But, It’s not a 401K. It’s a military pension.
dmertz
Level 15

Tax help for military filers

"18" means that the elective deferral was for 2018.  The "18" is redundant because code D by itself in box 12 of a 2018 Form W-2 means an elective deferral for 2018.