Why did short-term capital gains and a wash sale wipe out my refund?

Filed last week and was expecting a decent refund based on my W-2 withholding. Then I entered my 1099-B and everything fell apart. I had a few stock trades that were short-term — held maybe 2 or 3 months each — and one of them flagged a wash sale in box 1g. My software added the disallowed loss back and suddenly I owe instead of getting money back. I don't totally understand how the wash sale interacts with the short-term gains here. I thought the loss would cancel out some of the gain. I did rebuy the same stock about 10 days after I sold it at a loss, which I now realize was probably the problem. Can someone walk me through why short-term capital gains and a wash sale did this much damage to my refund?

32 comments

Did your 1099-B show the wash sale loss disallowed in box 1g, or did you only find out when the software flagged it?

Greg J.

Author

Box 1g had a dollar amount in it. The software pulled it in automatically and added it to column (g) on Form 8949 as a positive number with code W. I didn't even notice until I saw the refund number go negative.

Had almost the same situation last year. What helped me was uploading my 1099-B and the return draft to taxr.ai — it went through each row of my Form 8949 and flagged which lines weren't tying out to what the broker reported, including where the wash sale adjustment was pushing my net gain higher than I expected. That's what finally made the mechanics click for me. The core issue: short-term gains are taxed as ordinary income, same rate as your wages. So they stack on top of your W-2 income and your withholding, which was calculated without those gains, isn't enough anymore.

Greg J.

Author

That stacking explanation is what I was missing. My withholding was sized for my salary only, nothing extra for trading gains. So even before the wash sale, I might have owed something.

Wait, are you saying the wash sale disallowed a loss you were counting on to offset the short-term gain? Because that's a double hit — you lose the deduction AND the gain stays fully taxable.

Greg J.

Author

Exactly that. I had a loss on one trade that I thought would reduce the net gain, but because I rebought within 10 days the loss got disallowed. So I'm paying tax on the full gain with nothing to offset it.

The disallowed loss isn't gone forever though. It gets added to the cost basis of the shares you reacquired. So when you eventually sell those replacement shares, your basis is higher and your gain will be smaller — or your loss larger. Publication 550 on irs.gov covers this under Wash Sales.

How many days after the sale did you rebuy? The wash sale window is 30 days before AND 30 days after the sale date, so even buying back the next month can still trigger it.

Greg J.

Author

10 days after I sold. Definitely inside the 30-day window. I had no idea the window ran both directions — I thought it was just after the sale.

The short-term piece alone can be brutal if you weren't withholding anything extra during the year. Short-term capital gains don't have a separate lower rate — they're taxed at your ordinary income rate, same bracket as your paycheck.

Worth adding: if your gains pushed you into a higher bracket, the amount crossing the threshold is taxed at the higher rate, not the whole gain. The bracket math matters a lot here.

Is the wash sale disallowed loss in box 1g only shown when the broker tracks it on covered securities? I've seen situations where the broker didn't report it and the taxpayer still owed.

Correct. Box 1g only shows the disallowed amount when the shares sold were covered securities AND the replacement shares had the same CUSIP and were bought in the same account. If those conditions aren't all met, the broker may not report it — but the wash sale rule still applies. You can't deduct the loss even if 1g is blank. Publication 550 is explicit on that.

My first year with a wash sale, I was completely lost on how to report it properly. I gave Taxr my 1099-B and my draft 8949 and asked it to list everything the IRS would need to see and in what order — it laid out exactly which column got the code W, where the positive adjustment went in column (g), and how that flowed to Schedule D and then to line 7a of the 1040. Really helped me see the full chain before I filed.

Greg J.

Author

This is helpful. I want to make sure my column (f) and (g) entries are right before I submit. My software filled them in but I want to verify it's actually matching what the 1099-B says.

Can I ask — did you check whether the replacement shares you reacquired are still in your account? Because if you later sell them at a loss too, and rebuy again, you can keep deferring and the adjusted basis keeps rolling forward.

Greg J.

Author

Yes I still hold them. Good point — I need to track the adjusted basis on those shares going forward so I don't end up in the same situation next year.

On Form 8949, the wash sale goes in Part I since these are short-term trades. You check box A if the basis was reported to the IRS on the 1099-B. Code W in column (f), and the disallowed loss as a positive number in column (g). That positive number increases your net gain, which is why the tax jumps.

And the net from Part I rolls to Schedule D line 1b if you used box A, or line 2 if you used box B. Then Schedule D line 16 feeds into Form 1040 — that's the number that hit your refund.

Does your state also tax short-term gains as ordinary income? Some states don't follow federal wash sale rules at all, so the state return could be different from what your software calculated.

Greg J.

Author

The state angle never crossed my mind until now. I'm going to check whether my state decouples from the wash sale rule. That could mean a different gain number on my state return.

Something that tripped me up: the holding period on the new shares you bought also includes the holding period of the shares you sold in the wash sale. So those replacement shares might reach long-term status faster than you think.

Tacked-on holding period is real. If the sold shares had been held 8 months before the wash sale, the replacement shares start with 8 months already counted toward the 12-month long-term threshold.

Are you certain the software entered the proceeds from column (d) exactly as shown on the 1099-B? Sometimes software rounds or pulls a slightly different number, and when the IRS matches your return to the 1099-B they'll flag a discrepancy.

Greg J.

Author

I imported the 1099-B directly so it should match, but I'm going to print both and compare line by line before I submit. Good reminder.

If the total here is significant and you're unsure about the adjusted basis on the replacement shares or the wash sale chain across multiple trades, an enrolled agent or CPA who handles brokerage accounts would be worth talking to. This gets complicated fast when multiple wash sale loops overlap.

To verify your software got it right: on Form 8949 Part I with box A checked, the proceeds in column (d) and the basis in column (e) should match what's on the 1099-B exactly. Any wash sale adjustment lives in column (g) only. If your software put the corrected basis in column (e) instead of the 1099-B basis, that's wrong for a box-A transaction.

Greg J.

Author

This is exactly the check I needed to run. I'm going to compare my column (e) to what the 1099-B shows for cost basis and make sure the adjustment is in column (g) only, not baked into (e).

Agreed. With box A checked, column (e) holds the basis as the broker reported it, even if that basis is wrong. Any correction goes in column (g) with the appropriate code. If you use a different code alongside W you can stack them — the instructions for Form 8949 list all the codes and how to combine them.

How much of your expected refund turned into a balance due? If the swing is large it might be worth checking whether you need to look at estimated payments or adjusting your W-4 withholding for next year so this doesn't surprise you again.

Greg J.

Author

Went from expecting a few hundred back to owing more than that. Not catastrophic but enough that I definitely need to adjust my W-4 if I keep trading. I didn't realize short-term gains weren't covered by standard withholding.

Topic 409 on irs.gov has a clear summary of the limit on deducting capital losses — the lesser of $3,000 ($1,500 married filing separately) or your net loss against other income — and how any excess carries forward to later years. Worth reading alongside Publication 550 to see the full picture of why the wash sale disallowance hit your refund so hard.