Table of Contents
Key Summary
Wash sale rule disallows tax losses when repurchasing substantially identical securities within 61-day window spanning 30 days before and 30 days after the sale Disallowed losses don't disappear but add to replacement securities' cost basis deferring deduction until eventual sale. This maintains tax benefits long-term The rule applies across all accounts including different brokers, IRAs, and spouse's accounts. Brokers only track wash sales within their own managed accounts Substantially identical means same stock or options on same stock. Different companies, common versus preferred stock, and different index fund providers generally avoid the rule Three avoidance strategies include waiting full 31 days before repurchasing, buying similar but different securities immediately, or doubling position then selling after 31 days
Active traders and investors often discover an unwelcome surprise at tax time. You sold losing stocks to offset gains and reduce your tax bill, only to find those losses disallowed because of something called the wash sale rule. This IRS regulation prevents you from claiming tax deductions on securities sold at a loss if you repurchase the same or substantially identical securities within a specific timeframe.
The wash sale rule impacts thousands of investors every year. Many don't realize they've triggered it until they review their 1099-B forms or file their tax returns. Understanding this rule is essential for anyone practicing tax-loss harvesting. In this article you will learn what the wash sale rule is and how it works, when the rule gets triggered and what securities are considered "substantially identical,". We also cover a detailed breakdown of the form with strategies to avoid triggering wash sales while maintaining your investment positions.
What is the wash sale rule?
The wash sale rule is an IRS regulation that prevents investors from claiming a tax deduction on securities sold at a loss if they repurchase the same or substantially identical securities within a specific window of time.
The 61-day window: The rule applies if you purchase substantially identical securities within 30 days before or 30 days after the sale—creating a total 61-day window. Any purchase during this period triggers the rule and disallows your loss deduction.
Example: You sell 100 shares of Apple stock on December 15 at a $5,000 loss. You buy 100 shares of Apple stock on December 28 (13 days later). The wash sale rule applies—your $5,000 loss is disallowed because you repurchased within 30 days after the sale.
Why does the wash sale rule exist?
The wash sale rule exists to prevent investors from artificially generating tax losses while maintaining their investment positions. Without this rule, investors could sell losing stocks on December 31 to claim losses, then immediately repurchase the same stocks on January 1—maintaining identical portfolios while reducing taxes.
Congress enacted the IRS wash sale rule in 1921 to close this tax avoidance strategy. The rule ensures that investors claiming tax losses have genuinely exited their positions, not simply created paper losses for tax purposes.
What securities trigger the wash sale rule?
The wash sale rule applies when you purchase "substantially identical" securities within the 61-day window. The IRS provides limited guidance on what qualifies as substantially identical—requiring analysis of specific facts and circumstances.
Clearly substantially identical
These situations clearly trigger wash sales:
Same stock: Selling and repurchasing shares of the same company. Selling 100 shares of Microsoft and buying 100 shares of Microsoft within 30 days is a wash sale.
Options on the same stock: Selling stock and buying call options on the same stock, or selling stock and purchasing options to acquire the stock.
Contracts to acquire: Selling stock and entering into a contract to repurchase the same stock.
Generally not substantially identical
These situations generally don't trigger the IRS wash sale rule:
Different companies: Selling Apple stock and buying Microsoft stock—even if both are technology companies. Different companies are not substantially identical.
Common vs. preferred stock: Selling common stock and buying preferred stock of the same company. These are different security types with different rights and characteristics.
Bonds with different terms: Selling bonds of one company and buying bonds of the same company with different maturity dates, interest rates, or subordination levels.
Index funds from different providers: This is a gray area. Selling Vanguard S&P 500 index fund (VOO) and buying Fidelity S&P 500 index fund (FXAIX) likely avoids wash sales because they're issued by different companies, despite tracking the same index.
Gray areas requiring analysis
ETFs vs. mutual funds tracking the same index: Selling Vanguard S&P 500 ETF (VOO) and buying Vanguard S&P 500 mutual fund (VFIAX). While they track the same index from the same provider, one is an ETF and one is a mutual fund—creating potentially different characteristics.
Similar but not identical index funds: Selling a total market fund and buying an S&P 500 fund. The holdings overlap significantly but aren't identical.
When facing gray areas, many investors apply a conservative approach and wait the full 30-day period to avoid any risk of triggering wash sales.
How wash sales affect your taxes
When the wash sale rule applies, you cannot deduct the loss on your current-year tax return. However, the loss doesn't disappear—it gets added to the cost basis of the replacement securities.
The cost basis adjustment
The disallowed loss increases your cost basis in the repurchased securities. This defers the loss deduction until you eventually sell the replacement securities.
Example: You bought 100 shares of Tesla at $250 per share ($25,000 total cost). You sell them at $200 per share ($20,000 proceeds), creating a $5,000 loss. Within 30 days, you repurchase 100 Tesla shares at $210 per share ($21,000 cost).
Wash sale tax treatment:
- Original loss: $5,000 (disallowed)
- New cost basis: $21,000 (purchase price) + $5,000 (disallowed loss) = $26,000
- Your basis increased from $21,000 to $26,000
When you eventually sell these shares, your higher basis reduces your gain (or increases your loss). If you sell for $30,000, your gain is $4,000 ($30,000 - $26,000) instead of $9,000 ($30,000 - $21,000). The $5,000 originally disallowed loss effectively reduced your future gain.
Holding period adjustment
The wash sale tax rules also adjust your holding period. The holding period of the sold shares gets added to the holding period of the replacement shares. This ensures you meet long-term capital gains treatment (over 1 year) properly.
When the loss permanently disappears
The disallowed loss permanently disappears in two situations:
IRA purchases: If you repurchase substantially identical securities in an IRA or other tax-advantaged account within the 61-day window, the loss is permanently disallowed. You cannot add it to the IRA securities' basis because IRAs don't have traditional cost basis tracking.
Related parties: If your spouse, a corporation you control, or certain trusts you control purchase the securities, the wash sale tax adjustment may not apply properly, potentially causing permanent loss of the deduction.
Wash sales across multiple accounts
The IRS wash sale rule applies across all your accounts—including accounts at different brokers, taxable accounts, IRAs, and accounts owned by your spouse.
Example: You sell Apple stock at a loss in your Fidelity brokerage account. Your spouse buys Apple stock in their Charles Schwab account 20 days later. This triggers a wash sale even though the purchases occurred in different accounts owned by different people.
This cross-account application catches many investors by surprise. Your broker only reports wash sales within accounts they manage—they don't know about your other accounts or your spouse's accounts. You must track wash sales across all accounts yourself.
How to report wash sales on your tax return- Form 8949
Form 8949 (Sales and Other Dispositions of Capital Assets) is where you report every stock, bond, and capital asset sale during the tax year. The form serves as a detailed worksheet that feeds into Schedule D, which calculates your total capital gains and losses.
Form 8949 has two main parts:
Part I: Short-term transactions (assets held 1 year or less)
Part II: Long-term transactions (assets held more than 1 year)
Within each part, you must check one of three boxes indicating the type of transaction:
Box A (Part I) / Box D (Part II): Transactions reported on Form 1099-B showing basis was reported to the IRS (covered securities)
Box B (Part I) / Box E (Part II): Transactions reported on Form 1099-B showing basis was NOT reported to the IRS (non-covered securities)
Box C (Part I) / Box F (Part II): Transactions NOT reported on Form 1099-B
Most modern stock transactions fall under Box A or Box D (covered securities purchased after 2011).
Completing Form 8949 columns for wash sales
Form 8949 has eight columns (a through h) that must be completed for each transaction:
Column (a) – Description of property: Enter a brief description including the security name and number of shares. You can use ticker symbols like "100 shares Apple Inc. (AAPL)."
Column (b) – Date acquired: Enter the date you originally purchased the security you're selling in MM/DD/YYYY format.
Column (c) – Date sold or disposed: Enter the date you sold the security. This date determines which tax year the transaction belongs to.
Column (d) – Proceeds (sales price): Enter the gross sales price before commissions. This amount comes directly from your Form 1099-B Box 1d.
Column (e) – Cost or other basis: Enter your original cost basis—what you paid for the security including commissions. For covered securities, this comes from Form 1099-B Box 1e. If you're selling replacement securities that had a previous wash sale adjustment, your basis should already include that adjustment.
Column (f) – Code(s) from instructions: Enter applicable adjustment codes. For wash sale tax reporting, use code "W" to indicate a wash sale loss disallowance. Other common codes include "B" for basis reported incorrectly and "E" for accrued market discount adjustments.
Column (g) – Amount of adjustment: Enter the adjustment amount corresponding to your code in column (f). For wash sales, enter the disallowed loss as a positive number. This positive adjustment will reduce or eliminate your loss.
Column (h) – Gain or (loss): Calculate column (d) minus column (e) plus or minus column (g). For a complete wash sale, this will typically show zero because the adjustment eliminates the entire loss.
Reporting replacement securities with adjusted basis
When you later sell the replacement securities that triggered a wash sale, you must include the disallowed loss in their cost basis. Enter the adjusted basis (original purchase price plus the wash sale adjustment) in column (e). No code is needed in column (f) or adjustment in column (g) when selling replacement shares—the adjustment already exists in your higher basis.
Totaling and transferring to Schedule D
After listing all transactions in each category, total the amounts from columns (d), (e), (g), and (h) at the bottom of Form 8949. These totals transfer to the appropriate lines on Schedule D:
- Part I totals - Schedule D, Line 1b, 2, or 3 (depending on which box you checked)
- Part II totals - Schedule D, Line 8b, 9, or 10
Schedule D then calculates your net capital gain or loss, applies any capital loss limitations ($3,000 per year for ordinary income offset), and determines your final tax liability from capital transactions.
Broker reporting limitations
Brokers track wash sales only for "covered securities" purchased after January 1, 2011, and only within accounts they manage. They cannot track wash sales across different brokerage firms, between your taxable account and IRA, involving your spouse's accounts, or securities purchased before 2011. You must manually identify these wash sales and report them correctly on Form 8949. Failure to report wash sales properly can result in IRS notices, amended returns, and potential penalties.
Strategies to avoid the wash sale rule
These strategies help you harvest tax losses while avoiding the wash sale rule:
Wait the full 31 days
The simplest approach is waiting at least 31 days after selling before repurchasing. This clearly avoids wash sales with no ambiguity.
Example: Sell losing stock on December 1. Wait until January 2 or later to repurchase. The 31-day period avoids the 30-day window on both sides.
The downside is market risk—the stock might rise during the waiting period, causing you to repurchase at a higher price.
Purchase different securities
Sell the losing security and immediately purchase a similar but not substantially identical security. This maintains market exposure while avoiding the wash sale tax consequences.
Example: Sell Vanguard Total Stock Market ETF (VTI) and immediately buy Schwab US Broad Market ETF (SCHB). Both provide broad US market exposure but are different securities from different issuers.
Example: Sell Apple stock and buy Microsoft stock. You maintain technology sector exposure without triggering wash sales.
Double up, then sell
Purchase additional shares of the losing security, wait 31 days, then sell the original shares at a loss. This maintains your position while harvesting losses.
Example: You own 100 shares of Disney purchased at $180 per share. Disney now trades at $140.
- Day 1: Buy 100 additional Disney shares at $140
- Day 32: Sell your original 100 shares at $140 for a $4,000 loss ($40 × 100)
You maintain exposure to 100 Disney shares throughout and harvest the $4,000 loss without triggering the wash sale rule. The 31-day waiting period between the purchase and sale avoids the wash sale.
The downside is temporarily doubling your position—requiring additional capital and increased risk exposure for 31 days.
How NSKT Global can help with wash sale tax planning
NSKT Global specializes in tax-loss harvesting strategies, wash sale tax compliance, and year-end investment tax planning for active traders and investors.
Our services include comprehensive tax-loss harvesting analysis reviewing your portfolio to identify loss-harvesting opportunities while avoiding wash sales, cross-account wash sale tracking monitoring trades across all your taxable and retirement accounts to identify potential violations, Form 8949 preparation and review ensuring proper reporting of wash sales with correct basis adjustments, wash sale audit defense representing you if the IRS challenges your loss deductions or basis calculations, and year-end tax planning strategies coordinating security sales and purchases to maximize deductions while staying compliant.
Whether you're an active trader managing dozens of transactions or an investor practicing end-of-year tax-loss harvesting, NSKT Global ensures you maximize tax savings while avoiding costly wash sale tax mistakes.


