Wash sale glossary: box 1g, code W and the other terms
By Wash-Sale Guardian (who's behind it) · Published 2026-11-14 · Last updated 2026-11-14 · How the checker works
A wash sale is a sale of stock or securities at a loss when, within 30 days before or after the sale, you acquire substantially identical stock or securities, or a contract or option to buy them. The loss is disallowed for now and usually added to the cost of the new shares. This page defines that and the other words on your 1099-B, on Form 8949 and in the rule itself, in a few plain sentences each. Where the law or an IRS text defines a word, its own words are quoted with the source named, and each entry links to the guide on this site that goes deeper.
61-day window
The span in which a purchase can wash a loss: the 30 days before the sale, the day of the sale and the 30 days after it, 61 days in all. The law says days, not trading days, and this site counts calendar days, so weekends and holidays count.
IRC §1091(a) looks at "a period beginning 30 days before the date of such sale or disposition and ending 30 days after such date", which Treas. Reg. §1.1091-1(a) calls "the 61-day period".
Goes deeper: the 61-day window, with the exact dates. The wash sale calculator gives them for any sale date.
Adjusted basis
Basis is generally what you paid for shares, including costs such as commissions, and adjusted basis is that amount after the increases and decreases the tax rules require. A wash sale brings one: the disallowed loss is added to the cost of the replacement shares, so it counts when you sell those shares. A replacement bought in your own IRA gets no such increase (IRA purchase).
IRS Publication 550: "The result of these adjustments to the basis is the adjusted basis." In its wash-sale example, "you add the disallowed loss of $250 to the cost of the new stock, $800, to obtain your basis in the new stock, which is $1,050."
Goes deeper: how the basis adjustment works, in the wash-sale rule guide.
Box 1g (Form 1099-B)
The box on Form 1099-B where your broker reports the part of a sale's loss that the wash-sale rule disallows, as the broker figured it. A broker generally must fill it in when the sale and the purchase were in the same account, of covered securities with the same CUSIP number, and it may report more. A wash sale the box leaves out still counts, so compare it with your trades in every account.
The form labels the box "Wash sale loss disallowed", and its instructions for the recipient say: "Shows the amount of nondeductible loss in a wash sale transaction." The Form 1099-B instructions (2026) tell brokers: "You must report any loss disallowed under section 1091 if both the sale and purchase transactions occur in the same account with respect to covered securities with the same CUSIP number." They also say: "You are permitted but are not required to report in box 1g all loss disallowed under section 1091." And IRS Publication 550 says "you cannot deduct a loss from a wash sale even if it is not reported on Form 1099-B."
Goes deeper: what box 1g covers and what it may leave out, and why the box 1g number can be large.
Code W (Form 8949)
The adjustment code for a wash sale on Form 8949. It goes in column (f) of the row for the sale that took the loss, with the disallowed amount as a positive number in column (g). The same code covers a wash sale shown in box 1g of your 1099-B and one you add yourself, such as a re-buy at another broker.
The code table in the Form 8949 instructions (2025) gives W for "You have a nondeductible loss from a wash sale", and IRS Publication 550 says: "Enter as a positive number in column (g) the amount of the loss not allowed."
Goes deeper: how code W works, and the Form 8949 helper for the box and the code a sale needs.
Column (g) (Form 8949)
The column of Form 8949 for an adjustment to a sale's gain or loss, explained by the code in column (f). For a wash sale it holds the disallowed loss as a positive number, which shrinks the loss in column (h). If box 1g of your 1099-B shows the wrong amount, column (g) takes the correct one, with a statement attached when it is lower.
The Form 8949 instructions (2025): "Enter in this column any necessary adjustments to gain (or loss)." When box 1g is incorrect, they say to "enter the correct amount of the nondeductible loss as a positive number in column (g)", and: "If the amount of the nondeductible loss is less than the amount shown on Form 1099-B or Form 1099-DA (or substitute statement), attach a statement explaining the difference."
Goes deeper: when box 1g doesn't match your records, and where the amount goes in TurboTax.
Contract or option to acquire
The rule reaches more than share purchases: entering into a contract or option to buy substantially identical stock within the window also counts. So a call option on the stock you sold at a loss, bought within the window, can wash that loss. Losses on options on stock fall under the rule too.
IRC §1091(a) covers a taxpayer who "has entered into a contract or option so to acquire, substantially identical stock or securities", and IRS Publication 550 says: "The wash sale rules apply to losses from sales or trades of contracts and options to acquire or sell stock or securities."
Goes deeper: options and the other clear cases, and the worked examples, a call option among them. Options have their own guide: options and wash sales: calls, puts, rolls and straddles.
Covered security
A security your broker reports in more detail on Form 1099-B, such as its cost basis and, when the sale and the re-buy were in the same account with the same CUSIP number, the wash sale loss disallowed in box 1g. A wash sale outside that may not show. For stock, it generally means shares bought for cash in an account after 2010, or after 2011 for stock that can use the average basis method, such as shares in most mutual funds.
IRS Publication 550: "Covered securities are certain securities subject to added reporting by your broker on any Form 1099-B you may receive." The Form 1099-B instructions (2026) list, among others: "Stock acquired for cash in an account after 2010 except stock for which the average basis method is available." and "Stock for which the average basis method is available and that is acquired for cash in an account after 2011."
Goes deeper: what box 1g covers.
CUSIP number
The identifying number of a security, shown on Form 1099-B. Whether a broker has to report a wash sale in box 1g turns partly on it: the purchase has to have the same CUSIP number as the shares sold, in the same account. A purchase that doesn't match on both can still be a wash sale, and a broker isn't required to report it.
Form 1099-B (2026), in its instructions for the recipient: "Shows the CUSIP (Committee on Uniform Security Identification Procedures) number or other applicable identifying number." IRS Publication 550 says box 1g shows the disallowed loss if, among other things, "The substantially identical stock or securities you bought had the same CUSIP numbers as the stock or securities you sold and were bought in the same account as the stock or securities you sold."
Goes deeper: why a re-buy at another broker may not reach your 1099-B.
Disallowed loss
The part of a loss the wash-sale rule doesn't let you deduct when you sell. It is usually postponed rather than lost: it moves into the basis of the replacement shares and counts when you sell them. A replacement bought in your own IRA is the exception, and one bought in your spouse's IRA isn't settled in the sources we read: ask a CPA or EA.
IRC §1091(a) says that in a wash sale "no deduction shall be allowed under section 165" (the exception is a dealer in stock or securities, for a loss in the ordinary course of that business). IRS Publication 550 says: "This adjustment postpones the loss deduction until the disposition of the new stock or securities."
Goes deeper: "Wash sale loss disallowed" on your 1099-B, decoded.
Dividend reinvestment
Using a dividend to buy more shares of the same stock or fund, often automatically. This site treats a reinvestment within the window as a purchase that can wash the loss on that many shares, but no IRS text we found names reinvestment in the wash-sale rules, so ask a CPA or EA if a large amount turns on it.
IRS Publication 550 describes a dividend reinvestment plan as one that "lets you choose to use your dividends to buy (through an agent) more shares of stock in the corporation instead of receiving the dividends in cash", and adds: "Most mutual funds also permit shareholders to automatically reinvest distributions in more shares in the fund, instead of receiving cash."
Goes deeper: does dividend reinvestment trigger a wash sale?
Form 8453
The form that goes by mail with paper attachments to a return filed electronically. It comes up for wash sales when sales go into an e-filed return as totals instead of one row each: Form 8949, or a statement with the same details, then goes with Form 8453. A sale with an amount in box 1g can't be totaled straight onto Schedule D, so if your software asks for Form 8453, the likely reason is that some sales went in as totals.
Form 8453 (2026) says: "Use Form 8453 to send any required paper forms or supporting documentation listed next to the checkboxes on Form 8453". The Form 8949 instructions (2025): "If you e-file your return but choose not to report each transaction on a separate row on the electronic return, you must attach Form 8949 to Form 8453 (or the appropriate form in the Form 8453 series) and mail the forms to the IRS." Their Exception 1, for totals on Schedule D, covers only a sale whose 1099-B "shows basis was reported to the IRS and doesn't show any adjustments in box 1f or 1g".
Goes deeper: why tax software says to mail Form 8453 for wash sales.
Holding period
How long you owned an investment: more than 1 year makes a gain or loss long-term, and 1 year or less makes it short-term. After a wash sale, the replacement shares' holding period includes the time you held the shares you sold, so they can turn long-term sooner than their purchase date alone would give.
IRS Publication 550: "If you hold investment property more than 1 year, any capital gain or loss is a long-term capital gain or loss." And on wash sales: "Your holding period for the new stock or securities includes the holding period of the stock or securities sold."
Goes deeper: the holding period calculator, with the wash-sale carry-over.
IRA purchase (Rev. Rul. 2008-5)
A purchase in your own traditional or Roth IRA within the window washes a loss you took in a taxable account. Unlike an ordinary wash sale, the disallowed loss isn't added to any basis, which this site reads as losing it for good. For a purchase in a spouse's IRA, the ruling doesn't settle it, so ask a CPA or EA.
IRS Publication 550 lists, among the purchases that make a wash sale: "Acquire substantially identical stock for your individual retirement arrangement (IRA) or Roth IRA." Rev. Rul. 2008-5 holds: "The loss on the Sale of stock is disallowed under § 1091." It adds that the individual's basis in the IRA "is not increased by virtue of § 1091(d)", and that the ruling "does not address any issues other than those specifically addressed herein".
Goes deeper: IRA wash sales: why the loss is gone for good.
Noncovered security
Any security that isn't a covered security, mostly older purchases. A 1099-B may mark one in box 5, and for it the broker may leave box 1g blank. A wash sale on it still counts.
The Form 1099-B instructions (2026): "A noncovered security is any security that is not a covered security." Form 1099-B (2026), in its instructions for the recipient, on box 5: "If checked, the securities sold were noncovered securities and boxes 1b, 1e, 1f, 1g, and 2 may be blank." And: "Generally, a noncovered security means (a) stock purchased before 2011, (b) stock in most mutual funds purchased before 2012, (c) stock purchased in or transferred to a dividend reinvestment plan before 2012", with debt, options and securities futures contracts from before 2014 after that.
Goes deeper: why a 1099-B can differ from your own records.
Replacement shares
The shares whose purchase within the window washed a loss; IRS Publication 550 calls them "the new stock or securities". They are matched to the shares sold one for one, in the order you bought them, so buying fewer shares than you sold washes the loss on only that many. In your own taxable account, they carry the disallowed loss in their basis and the sold shares' holding period; in your own IRA they get no basis increase, and when your spouse holds them the sources we read don't settle how it works, so ask a CPA or EA.
IRS Publication 550: "You do this by matching the shares bought with an equal number of the shares sold. Match the shares bought in the same order that you bought them, beginning with the first shares bought." Treas. Reg. §1.1091-1(c) and (d) give the same rule.
Goes deeper: partial re-buys, in the wash-sale rule guide.
Short sale
Selling shares you borrowed, and closing the sale later by delivering shares to the lender. Section 1091(e) applies rules like the wash-sale rule to a loss on closing a short sale when, within 30 days before or after the closing, you sold substantially identical stock or securities or entered into another short sale of them. If you already own identical shares on the day you sell short and later deliver them to close it, Treas. Reg. §1.1091-1(g) and Pub 550 treat the short sale as complete on the day you entered into it, and Pub 550's example then has a purchase within 30 days of that day wash the loss. Otherwise it is complete when the shares are delivered. Short sales have more rules than this, so ask a CPA or EA.
IRS Publication 550's glossary: "The sale of property that you generally do not own. You borrow the property to deliver to a buyer and, at a later date, you buy substantially identical property and deliver it to the lender." IRC §1091(e): "Rules similar to the rules of subsection (a) shall apply to any loss realized on the closing of a short sale" when, in the 30 days before or after the closing, "substantially identical stock or securities were sold" or another short sale of them was entered into.
No guide on this site covers short sales; the methodology page says how the checker treats them.
Spouse's purchase
A purchase of substantially identical stock by your spouse, or by a corporation you control, within the window washes your loss too, and Pub 550 sets no filing-status condition. How the basis adjustment works when your spouse holds the shares, and a purchase in a spouse's IRA, aren't settled in the sources we read: ask a CPA or EA.
IRS Publication 550: "If you sell stock and your spouse or a corporation you control buys substantially identical stock, you also have a wash sale."
Goes deeper: does the wash-sale rule apply if your spouse buys?
Substantially identical
The test for which purchases can wash a loss. The same stock is substantially identical and stock of another company ordinarily isn't, but neither §1091 nor its regulations define the term, and Pub 550 says the answer depends on the facts. Whether two funds that track the same index are substantially identical isn't settled by any IRS ruling we found: ask a CPA or EA.
IRS Publication 550: "In determining whether stock or securities are substantially identical, you must consider all the facts and circumstances in your particular case." And: "Ordinarily, stocks or securities of one corporation are not considered substantially identical to stocks or securities of another corporation." Its first wash-sale example, a re-buy of the same stock, says: "Because you bought substantially identical stock, you cannot deduct your loss of $250 on the sale."
Goes deeper: where the line is, and fund pairs people ask about, with each fund's index.
Tax-loss harvesting
Selling an investment at a loss so the loss counts on your tax return. It is a market term, not an IRS one: none of the IRS texts we read for this page uses it. A harvested loss follows the ordinary rules for a sale, the wash-sale rule included, so a purchase of the same stock within 30 days before or after the sale can wash it.
Goes deeper: the last day for tax-loss harvesting in 2026, and how to avoid a wash sale when you sell at a loss.
Wash sale
A sale of stock or securities at a loss when, within 30 days before or after the sale, you acquire substantially identical stock or securities, or a contract or option to buy them. The loss is disallowed for now and usually added to the cost of the new shares. A purchase in any of your own brokerage accounts counts, your IRA and Roth IRA included, and so does one by your spouse; for a 401(k) or other workplace plan, no IRS ruling we found settles it, so ask a CPA or EA.
IRS Publication 550's glossary: "A sale of stock or securities at a loss within 30 days before or after you buy or acquire in a fully taxable trade, or acquire a contract or option to buy, substantially identical stock or securities."
Goes deeper: the wash-sale rule, explained for active traders.
Check your own trades
The free checker reads your brokers' CSV exports in your browser, with nothing uploaded, and lists the wash sales it finds across the accounts you import, with the amounts worked out first in, first out, and the first day a re-buy no longer washes each open loss.
- It compares the same ticker and options on it, so two different funds aren't compared (where the line is).
- It only knows what your files show. A purchase that isn't in a file isn't seen, and neither is an account you haven't imported.
- It doesn't model Section 475 mark-to-market accounting. Its methodology lists the rest.
Not tax advice. Sources, read on 2026-11-14: IRC §1091 · Treas. Reg. §1.1091-1 · IRS Publication 550 (2025) · Form 8949 instructions (2025) · Form 1099-B instructions (2026) · Form 1099-B (2026) · Form 8453 (2026) · Rev. Rul. 2008-5. Confirm your own situation with a CPA or EA.
Frequently asked questions
What is box 1g on a 1099-B?
Box 1g of Form 1099-B, labeled "Wash sale loss disallowed", is where your broker reports the part of a sale’s loss that the wash-sale rule disallows, as the broker figured it. The Form 1099-B instructions (2026) generally require it when "both the sale and purchase transactions occur in the same account with respect to covered securities with the same CUSIP number", and a broker may report more. A wash sale the box leaves out still counts: IRS Publication 550 says "you cannot deduct a loss from a wash sale even if it is not reported on Form 1099-B."
What does code W mean on Form 8949?
Code W is the adjustment code for a wash sale. The code table in the Form 8949 instructions (2025) gives W for "You have a nondeductible loss from a wash sale": it goes in column (f) of the row for the sale that took the loss, with the disallowed amount as a positive number in column (g). It covers a wash sale shown in box 1g of your 1099-B and one you add yourself, such as a re-buy at another broker.
How long is the wash sale window?
61 days: the 30 days before the loss sale, the day of the sale and the 30 days after it. IRC §1091(a) looks at "a period beginning 30 days before the date of such sale or disposition and ending 30 days after such date", which Treas. Reg. §1.1091-1(a) calls "the 61-day period". A purchase in any of your accounts in that span can wash the loss.
What does substantially identical mean for a wash sale?
Neither IRC §1091 nor its regulations define it. IRS Publication 550 says "you must consider all the facts and circumstances in your particular case", and that stock of one corporation is ordinarily not substantially identical to stock of another. The same stock is. Whether two funds that track the same index are isn’t settled by any IRS ruling we found, so ask a CPA or EA.
Is a wash sale loss gone for good?
Usually not. IRS Publication 550 says to "add the disallowed loss to the cost of the new stock or securities", and that "This adjustment postpones the loss deduction until the disposition of the new stock or securities." The exception is a replacement bought in your own traditional or Roth IRA: Rev. Rul. 2008-5 says the individual’s basis in the IRA "is not increased by virtue of § 1091(d)", which this site reads as permanent. For a replacement in your spouse’s IRA the sources we read don’t settle it, so ask a CPA or EA.
Does a wash sale count if my 1099-B doesn’t show it?
Yes. IRS Publication 550 says "you cannot deduct a loss from a wash sale even if it is not reported on Form 1099-B." A broker must report only a wash sale in the same account, of covered securities with the same CUSIP number, so a re-buy at another broker, in an IRA or by your spouse may not show. Check what your 1099-B shows, and add what it leaves out on Form 8949 with code W.