Form 8949 codes — which one goes in column (f) and what does it change?

Filing my own return this year and I'm stuck on Form 8949 column (f). My broker sent a 1099-B and a couple of trades are flagged with a wash sale, plus one transaction has a different cost basis than what I recorded myself. The form instructions list a whole alphabet of codes and I can't figure out which ones apply to my situation, whether I can use more than one at a time, and what each code actually changes in column (g). I've read the instructions twice. I know code W is for wash sales but I'm not clear on how it interacts with the basis adjustment in column (g) — do I enter the disallowed amount as positive or negative? And for the basis correction, is that code B? Want to make sure I'm filling form 8949 codes in correctly before I file.

35 comments

Code W is for wash sales. In column (g) you enter the disallowed loss as a positive number — it reduces your deductible loss. The 1099-B box 1g will show that figure if the security was a covered security bought and sold in the same account with the same CUSIP. Even if the broker doesn't report it in box 1g, you still can't deduct it. You also check the Part I or Part II box based on whether the holding period is short or long.

Priya R.

Author

So positive in column (g) even though it's a loss being added back — that's what I was getting wrong. Does the same logic apply if the wash sale was triggered by a purchase in a different account?

Different account: broker won't report it in box 1g because that only covers same CUSIP, same account. You still have to track it yourself and enter code W with the positive adjustment. The disallowed amount gets added to the basis of the replacement shares.

For the cost basis mismatch, yes that's code B. Code B means the basis shown on the 1099-B is incorrect. How you handle the adjustment depends on which box is checked at the top of the form. If box A or D is checked (covered securities with basis reported to the IRS), you enter the basis from the 1099-B in column (e) even though it's wrong, then correct it in column (g) with a negative number in parentheses if the correct basis is higher. If box B or E, just put the correct basis in column (e) and -0- in column (g).

Priya R.

Author

That's the part that was confusing me — entering a number I know is wrong in column (e). But I get it now, the IRS needs to see what the broker reported so they can match it.

Exactly. Column (e) has to match what was reported to the IRS. The adjustment in column (g) is where you show your correction so the net in column (h) reflects the right gain or loss.

I uploaded my 1099-B and my draft 8949 to taxr.ai last month in almost the same situation — wash sale flag plus a basis discrepancy. It went line by line and found that I had the column (g) sign wrong on the basis correction (I had a positive where I needed a negative in parentheses) and also that I'd forgotten to check box A instead of box B for covered securities. Caught both before I filed. The wash sale rules, what to enter where, and how the codes stack are covered in Publication 550 and in the Form 8949 instructions on irs.gov.

Priya R.

Author

Can you use more than one code in column (f) at the same time, like W and B together?

Yes, the instructions say you can enter more than one code. If a sale is both a wash sale and has an incorrect basis, you'd enter both W and B in column (f) and combine the adjustments in column (g) into one number.

One thing worth knowing: code H is for the home sale exclusion, not investment accounts. You put it in Part II with the excluded gain as a negative in column (g). Different situation from wash sales but people sometimes get the two confused when they see gain exclusions mentioned in the same instructions.

The holding period determines Part I vs Part II. Short-term is 1 year or less, long-term is more than 1 year. The count starts the day after you acquired the shares and the sale date itself counts. For stocks traded on an exchange it's the trade date that matters, not the settlement date, for both the buy and the sell.

Priya R.

Author

What if some shares in a lot are short-term and some are long-term because of different purchase dates?

Split them into separate rows on Form 8949 — one row per lot with its own dates, basis and proceeds. Don't combine short-term and long-term lots on the same line.

The box you check at the top of Part I or Part II matters a lot. Box A (or D for long-term) means covered securities with basis reported to the IRS. Box B (or E) means a 1099-B was issued but basis was not reported to the IRS (typically noncovered securities). Box C (or F) means no 1099-B at all. Digital assets have their own boxes now — G through I for short-term and J through L for long-term. Don't put crypto trades in box C or F anymore.

Priya R.

Author

Is that the change for 2025? I saw something about new boxes but wasn't sure what it meant.

Yes, new for 2025. Crypto and other digital asset transactions go in the new boxes, not in C or F. The 1099-DA is what brokers send for digital assets, same idea as 1099-B but separate form.

If your broker reports basis in box 1e and it ties exactly to what you have, and there are no adjustments at all, you don't have to list that transaction on Form 8949. You can skip it and report the aggregate total directly on Schedule D line 1a (short-term) or line 8a (long-term). That's Exception 1 in the instructions. Saves a lot of rows if most of your trades are clean.

Worth adding: if even one transaction in a group has an adjustment or a code, that one has to go on 8949. Only the truly clean ones can go straight to Schedule D.

Inherited stock is long-term no matter how long you actually held it — that's Part II, unless the decedent died in 2010 and the executor elected to file Form 8939. The basis is generally the fair market value at the date of death. That comes up sometimes when people sort by holding period and are surprised their recently inherited shares land in long-term.

When I was sorting out RSU sales last year I had four or five different codes potentially in play and I couldn't tell which ones the IRS actually needed to see. I had Taxr go through the 1099-B and the equity award summary together — it matched each lot to the right box and listed which codes applied to which rows and why. That breakdown made it easy to fill in column (f) accurately without guessing. The Form 8949 instructions page on irs.gov has the full code list if you want to cross-check each one.

Priya R.

Author

Did RSU sales trigger any specific codes beyond the standard ones?

Usually code B because the broker's basis on the 1099-B often doesn't include the ordinary income already recognized at vest. You have to add that back as a negative adjustment in column (g) using code B so you're not taxed on it twice. Check your W-2 to confirm what was included there.

The wash sale disallowed amount from column (g) doesn't disappear — it adds to the cost basis of the replacement shares. So if you sell those replacement shares later in a clean transaction your basis will be higher and your gain smaller. Keep records of the adjustment so you get credit for it.

Priya R.

Author

What if the replacement shares are still in my account at year end and I don't sell them this year?

The disallowed loss just sits in the adjusted basis of those shares. You'll get to use it when you eventually sell them, as long as that sale isn't also a wash sale.

I had Taxr read through my completed 8949 alongside the 1099-B before I mailed the return — it flagged a row where I'd entered code W but hadn't adjusted the basis of the replacement shares in my records, so the following year's sale would have been wrong too. It also noted that one transaction was in the wrong Part because I miscounted the holding period by a day. Small things but they compound. The IRS instructions for Form 8949 at irs.gov lay out all the codes with examples.

Priya R.

Author

The holding period by one day thing is exactly the kind of mistake I'd make. So the day you buy doesn't count but the day you sell does?

Right. Start counting the day after the trade date you bought. The trade date you sold is the last day. So if you bought on March 5 and sold on March 5 the following year that's exactly one year — short-term. You need March 6 or later to be long-term.

Code O is for other adjustments that don't have a specific code. It's a catch-all and you're supposed to include an explanation. Most common codes people actually hit are W (wash sale), B (incorrect basis), and H (home sale exclusion). The others come up in narrower situations.

If the net result across all your Form 8949 transactions is a capital loss that exceeds your gains, the deductible amount against other income is capped. Check Schedule D line 16 to see the total and then line 7a of Form 1040. Any excess carries forward. The Capital Loss Carryover Worksheet in Publication 550 or the Schedule D instructions walks through how to calculate what carries to next year.

Priya R.

Author

Is the carryover automatically short-term or long-term?

It preserves its character. Short-term losses carry forward as short-term, long-term as long-term. The Schedule D instructions for the carryover worksheet explain the split.

Codes also affect what the IRS can match automatically. If box A or D is checked and you change the proceeds in column (d) from what's on the 1099-B, that will flag. Always enter proceeds exactly as the 1099-B shows them in column (d) and do your corrections only in column (g). Column (d) is what gets matched to what the broker reported.

This is the part a lot of people get wrong — they adjust column (d) thinking they're correcting the proceeds when really column (g) is where adjustments belong.

For anyone who gets to the end and the numbers still don't flow right: Schedule D pulls the totals from Form 8949. Short-term totals from Form 8949 Part I go to Schedule D Part I, long-term from Part II go to Schedule D Part II. If you have multiple Forms 8949 (one per box type) each one carries to the right Schedule D line. That's the final check before the return is done.