What is box 12b code D on W2? Found it on my first paystub-to-W-2 comparison
Changed jobs in the summer and the W-2 from the new place just landed in my online portal. There's a box 12a with something and then a box 12b with a code D and an amount next to it. I'm sitting here trying to finish a return I'm late on and I don't know whether that number is something I'm supposed to type in somewhere or if it's just informational. Does anyone know what is box 12b code d on w2 and what a person does with it? I looked at the IRS site but got lost in the instructions pages.
66 comments

Anastasia Popov
The W-2 I got in January had a code D in box 12a, and when I read the back of the form it was the one that lines up with 401(k) pay-in out of my own paycheck. Code D is a 401(k) elective deferral, the pretax amount that came out of your wages. It shows up in box 12 so you can see it, and it's already reflected in the box 1 wages being lower than your gross pay. Check your last paystub for the 401(k) line and see if the year-to-date matches.
0 coins
NeonNinja
AuthorThanks. The paystub from December does show a 401(k) total that looks the same as the box 12b figure. So box 1 is smaller than my gross because of it?
0 coins
Anastasia Popov
That's how it reads to me, yes. Box 1 is lower than box 3 and box 5 on mine for the same reason. For how your own case counts on the return, the form's instructions on the IRS site or a preparer will say it better than I can.
0 coins
Sean Murphy
The refund I was owed for the 2025 year sat at "still being processed" in Where's My Refund through the spring and summer, and my W-2 had a code D in box 12a that I'd typed in wrong when I filed. Claimyr (claimyr.com) waited on hold on the IRS line for me, and I ended up talking to an IRS representative, who looked at my account and told me the refund amount on record and the date it was issued. Claimyr's video on reaching a live person at the IRS: https://youtu.be/_kiP6q8DX5c
0 coins
NeonNinja
AuthorThanks. Did the representative say anything about the box 12 entry itself, or just the refund?
0 coins
Sean Murphy
Only the refund amount and the issue date came off my record. What the box 12 figure means I got from the W-2's own instructions on the IRS site.
0 coins
Zara Khan
Mine was the same kind of typo, different box. I went into the IRS Online Account afterward to see what the IRS had for my wages.
0 coins
Luca Ferrari
Eleven months into my current job and I still can't read my W-2 without squinting. I'd say don't stress over the letter in box 12, just make sure whatever your software asks matches the form line by line.
0 coins
NeonNinja
AuthorI'm doing it by hand on the IRS forms because I'm past the April deadline, so I'd rather get it right. Does the code letter change anything for me or is it just labeled for reference?
0 coins
Luca Ferrari
Honestly I just copy the letter and amount like they're printed. If your preparer or the form instructions say otherwise I'd go with them.
0 coins
Nia Davis
My wage and income transcript is how I double check these. In the IRS Online Account you can pull a wage and income transcript for the year and it shows the data from the W-2s the IRS received, so you can see if your employer's version matches what you're holding.
0 coins
NeonNinja
AuthorThanks. Does that transcript go back far enough for my 2025 W-2 or is it too soon?
0 coins
Nia Davis
It's a current-year-and-nine-prior-years kind of transcript, so 2025 should be fair game once the employer's filing reaches the IRS.
0 coins
Mateo Martinez
I tried it right after my W-2 arrived and it was empty. I think the employer hadn't filed yet at that point, so I waited and tried again.
0 coins
QuantumQueen
At my job the payroll lady told me abbreviations on the stub are the company's own and not IRS terms. So 401K on the stub and code D on the W-2 are two different labels for the same pretax money, in my case. Ask your payroll office if the stub line is unclear.
0 coins
NeonNinja
AuthorThanks, I'll email payroll. The stub just says 401K DEF, and it matches the box 12b number.
0 coins
QuantumQueen
That matching is a good sign. Payroll can tell you exactly what DEF stands for there.
0 coins
Aisha Rahman
On the third day after e-filing my own return this fall I checked Where's My Refund and it took me to the tool asking for the exact refund amount, which I'd forgotten to write down. Having the return open next to the screen helps.
0 coins
NeonNinja
AuthorI'll keep that in mind. I haven't filed yet, that's the problem, but good to know.
0 coins
Aisha Rahman
Then do the return first and the tool later. A prior-year return can be checked 3 days after e-filing, per the IRS site.
0 coins
Ethan Wilson
Back in March the balance in my online account for the year didn't match what I'd figured I owed, and the IRS line on my notice was the only number I had. Claimyr waited on hold on the IRS line for me, and a representative picked up and read me the balance owed for that tax year from my record, which was different from my own math. I paid what the notice said by the date on it.
0 coins
NeonNinja
AuthorThanks. Was that balance related to the W-2 amounts at all?
0 coins
Ethan Wilson
I never got an explanation for why it differed. The notice that came in the mail was where I read the reason.
0 coins
Yuki Sato
Same here, the letter in the mailbox told the story, not the phone.
0 coins
Carmen Flores
Three weeks after mailing a paper return I sat on Where's My Refund and the status wasn't showing yet. The IRS's own timing is four weeks for a mailed return before the tool shows it, so it wasn't broken, I was early.
0 coins
NeonNinja
AuthorGood to know. If I mail mine, I'll wait the four weeks before checking.
0 coins
Carmen Flores
And write your exact refund amount down before you mail it, the tool asks for it.
0 coins
Andre Dubois
Look, I've had a W-2 with a weird code and the preparer I asked just shrugged and said it doesn't matter. Then a year later I got a notice. I don't know if the code was the cause but I ask for a clear answer now every time.
0 coins
NeonNinja
AuthorThat's kind of what I'm afraid of. Did the notice say what the issue was?
0 coins
Andre Dubois
It was a CP2000, which is about income not matching what the IRS has. It asked for a reply by a date on the letter.
0 coins
CyberSamurai
A CP2000 is the IRS saying numbers differ. If yours does, read the notice and answer by its date, that's the whole instruction.
0 coins
Zoe Alexopoulos
When I first looked at box 12 I thought the letters were some kind of error code too. Turns out it's just a list of items employers can report, each with its own letter, and a person can have several lines (12a, 12b, 12c and 12d). The IRS has the full list in the W-2 instructions on its site.
0 coins
NeonNinja
AuthorI only have 12a and 12b, so that's probably it. Thanks.
0 coins
Zoe Alexopoulos
Check what's in 12a too, since both lines are there for a reason.
0 coins
Jamal Carter
Two years behind on filing here, and the wages for an old year were the thing I couldn't find. The wage and income transcript pulled them from the IRS side, and for the year I'd lost the W-2 I used that plus my employer.
0 coins
NeonNinja
AuthorI'm only late on this one year, so I'll try the transcript route for sure.
0 coins
Jamal Carter
File the late return anyway, the IRS says to file all due returns regardless of whether you can pay in full.
0 coins
Mei Liu
Yes, and the refund has to be claimed within 3 years of the due date, that's in the IRS facts too.
0 coins
Liam O'Donnell
I keep thinking I should just go to the local IRS office with my W-2 and ask. Is that actually a thing people do for a box 12 question, or is it only for bigger problems?
0 coins
NeonNinja
AuthorI wondered the same. I'd call first about anything like that.
0 coins
Liam O'Donnell
The IRS site says Taxpayer Assistance Centers are by appointment and the office finder tool lists them. I'd read that before heading in.
0 coins
Amara Nwosu
My payment plan's monthly amount and due date were what I wasn't sure about after I changed banks. Claimyr waited on hold on the IRS line for me, and the representative who picked up told me the monthly amount and due date on my plan from the record, and I changed the bank account in the IRS Online Account myself afterward.
0 coins
NeonNinja
AuthorThanks. Does a payment plan have anything to do with W-2 codes or is that a separate question?
0 coins
Amara Nwosu
Separate. I mentioned it because it was my own reason to reach the IRS this year, not about box 12.
0 coins
AstroExplorer
Last year I had a wrong number in box 12 and my employer issued a corrected W-2 after I asked. If your box 12b amount looks off against your stubs, payroll can fix it before you file.
0 coins
NeonNinja
AuthorI'll compare the year-end stub against it again tomorrow and ask payroll if there's any gap.
0 coins
AstroExplorer
And keep the corrected one, not the old copy, when you file.
0 coins
Zara Khan
Over the autumn I did a 1040-X after a W-2 mix-up and the amended return status said nothing for weeks. The IRS says to allow 8 to 12 weeks and in some cases up to 16, so I stopped checking so often.
0 coins
NeonNinja
AuthorThanks. Hopefully I never need one of those, but good to know the timing.
0 coins
Zara Khan
Status shows up about 3 weeks after you submit it, per the IRS.
0 coins
CyberSamurai
I've been the confused one on this forum before, so let me say plainly: the code letters in box 12 are labels, and 401(k) deferrals are just one of them. If you want your exact case read, ask a preparer or read the W-2 instructions on irs.gov. Nobody here can tell you how it's taxed for your return.
0 coins
NeonNinja
AuthorThat's fair. I'll go to the instructions page.
0 coins
CyberSamurai
The IRS site has the W-2 and box 12 list, that's the one to read against your form.
0 coins
Mateo Martinez
Nine weeks after verifying my identity from a 5071C I was still waiting on my return to finish. The IRS says it can take up to 9 weeks after verifying, and to wait 2 to 3 weeks before checking the refund.
0 coins
NeonNinja
AuthorMine isn't a verification thing, I just haven't filed. But I'll remember that.
0 coins
Mateo Martinez
Then file first, and if a letter ever comes, use the number on it.
0 coins
Luca Ferrari
And that line only does the verification, it can't tell you refund status.
0 coins
Nia Davis
In the second week of December I had a paystub with 401K DEF too, and my payroll person said the stub abbreviations come from their own system. So the stub label and W-2 code D are just two ways the same pretax money shows up.
0 coins
NeonNinja
AuthorI'm leaning toward that being what mine is. Thanks.
0 coins
Nia Davis
Payroll can confirm what DEF stands for on your stub.
0 coins
Aisha Rahman
With a W-2 sitting there on my screen I used to guess at things instead of checking. Now I print the page, circle box 12a and 12b, and read the IRS W-2 instructions side by side before filing.
0 coins
NeonNinja
AuthorThat sounds smart. Doing that tonight.
0 coins
Aisha Rahman
Good. The instructions cover box 12 codes in order.
0 coins
QuantumQueen
Tax year 2025 W-2, new job in July, and my first thought about box 12b code D was that it was a mistake. It wasn't, it just reflected 401(k) money from the paycheck. The IRS does say the Taxpayer Advocate Service is there if a tax problem drags on, but this isn't that kind of thing.
0 coins
NeonNinja
AuthorUnderstood. I'll sort it out with the instructions and payroll, no need for TAS.
0 coins
QuantumQueen
Right, TAS is for problems the IRS hasn't resolved or hardship cases, not for reading a W-2.
0 coins