What is the wash-sale rule?

Editorial team Published on

The wash sale rule prevents investors from deducting a loss on a security sale if they buy the same or a "substantially identical" one within 30 days before or after the sale, creating a 61-day window (30 days past). This IRS rule stops taxpayers from claiming artificial losses for tax breaks while maintaining their investment position, disallowing the loss but adding it to the new security's cost basis for future taxes.

How do I avoid a wash sale?

To avoid a wash sale, you must wait 61 days (30 days before, the day of, and 30 days after selling a security at a loss) to repurchase the same or a substantially identical investment, or you can buy a different asset, like a similar sector ETF or a different fund, or use a strategy like "double up" by buying more shares first, waiting 30 days, then selling the loss shares. The key is to avoid repurchasing the same asset within that 61-day window to claim the tax loss. 

Can you buy and sell the same stock within 30 days?

Under the wash sale rule, your loss is disallowed for tax purposes if you sell stock or other securities at a loss and then buy substantially identical stock or securities within 30 days before or 30 days after the sale.

How does the wash sale rule work?

The wash sale rule stops you from deducting a loss on securities (like stocks) if you buy "substantially identical" ones within 30 days before or after the sale, preventing immediate tax write-offs for essentially the same investment. Instead of deducting the loss now, the disallowed loss is added to the cost basis of the new shares, deferring the tax benefit until you sell the replacement shares in a non-wash sale. This rule applies to a 61-day window (30 days before, the day of sale, and 30 days after) and covers stocks, bonds, options, ETFs, and mutual funds, but not typically crypto. 

What is the penalty for a wash sale?

Three weeks later, XYZ is trading at $6 per share, and you decide that price is too good to pass up, so you repurchase the 100 shares for $600. This triggers a wash sale. As a result, the $200 loss is disallowed as a deduction on your current-year tax return and added to the cost basis of the repurchased stock.

Understanding the Wash Sale Rule

26 related questions found

What happens if I accidentally trigger a wash sale?

If you accidentally trigger a wash sale, the IRS disallows the loss deduction on your current tax return, adds that disallowed loss amount to the cost basis of the new shares, and extends the holding period, meaning you won't get the immediate tax benefit but the loss isn't lost forever; it just gets deferred and added to the cost of the replacement security, potentially reducing future gains or increasing future losses. There are no direct IRS penalties or fines, but you must report it correctly on Form 8949. 

How many days to avoid wash sale rule?

To avoid a wash sale, you must wait 31 days after selling a security at a loss to repurchase the same or a "substantially identical" one; this creates a 61-day window (30 days before, the day of, and 30 days after the sale) where buying that security triggers the rule, disallowing the loss for tax purposes. You can repurchase sooner by using a different, non-substantially identical investment, or waiting until the 31st day after the sale to buy back the original.

What is the 3-5-7 rule in stocks?

The 3-5-7 rule in stock trading is a risk management strategy: risk no more than 3% of capital on a single trade, keep total open position risk under 5%, and aim for a minimum 7% profit target or 7:1 reward-to-risk ratio, ensuring capital preservation and disciplined growth by setting clear limits and avoiding emotional decisions. 

What is the 20% rule for capital gains?

The 20% rule for capital gains refers to the highest federal tax rate for long-term capital gains, applying to higher income brackets when you sell investments (stocks, real estate) held for over a year, with lower rates of 0% and 15% for lower incomes, and even higher rates for special assets like collectibles. This rate kicks in for single filers earning over approximately $492,300 (2024) or $533,401 (2025), and higher for joint filers, making holding assets over a year a key tax strategy.

What is the 7% sell rule?

The 7% sell rule is a stock trading guideline to cut losses quickly, advising you to sell a stock if it drops 7-8% below your purchase price to protect capital, remove emotion, and prevent small losses from becoming catastrophic, a strategy popularized by William O'Neil's CAN SLIM method for growth investing. It assumes that truly strong stocks typically don't fall much below their buy point, so a dip signals something is wrong, requiring you to exit the trade to preserve funds for better opportunities.
 

How to not pay tax on stock profit?

The simplest way to avoid capital gains tax is to regularly use your capital gains tax allowance (officially known as your annual exempt amount or AEA). How easy this is to do depends on the assets you are selling.

How much capital gains do I pay on $100,000?

On a $100,000 capital gain, you'll likely pay 15% for long-term gains, resulting in about $15,000 in federal tax (plus potential state tax), but it could be 0% or 20% depending on your total taxable income and filing status, while short-term gains are taxed as ordinary income (potentially 22-24%). 

Who qualifies for 0% capital gains?

To qualify for 0% capital gains tax, you must have long-term capital gains (assets held over a year) and your taxable income (after deductions) must fall below specific IRS thresholds, which change annually but are roughly <$48,350 for single filers and <$96,700 for married filing jointly for the 2025 tax year, allowing for higher total income when combined with deductions like the standard deduction. The key is keeping your adjusted gross income (AGI) low enough so that after subtracting deductions, your taxable income remains within these limits. 

How do the rich not pay capital gains?

Billionaires often employ the “buy, borrow, die” strategy to avoid income and capital gains taxes. First, they acquire appreciating assets like stocks or real estate. Instead of selling these assets when they need cash (which would trigger capital gains tax), they borrow against them at favorable interest rates.

What is the 6 year rule for capital gains?

The "6-year rule" for Capital Gains Tax (CGT) in Australia allows you to treat a former main residence as tax-exempt for up to six years after you move out, even if you rent it out, enabling you to avoid CGT on any growth during that period. You qualify by moving out, choosing to treat it as your main home for tax, and can reset the rule by moving back in. If you rent it out for longer than six years, only the portion of the gain after the six-year mark becomes taxable.
 

What is the $3000 loss rule?

The $3,000 capital loss rule lets you deduct up to $3,000 (or $1,500 if married filing separately) of net capital losses against your ordinary income, like wages, after offsetting any capital gains. If your total loss exceeds this limit, you can carry the unused portion forward to future tax years indefinitely, reducing future gains or ordinary income, according to the IRS instructions for Schedule D (Form 1040) and IRS Topic No. 409.

Can I sell a stock and buy another immediately without paying taxes?

Buying additional stock shares with the proceeds from a stock sale will not eliminate or reduce capital gains taxes. However, if you reinvest the gain into a QOF (Qualified Opportunity Fund), you can defer the payment of capital gains taxes while you are invested in an eligible fund.

How much capital gains do I pay on $200,000?

Your capital gain (profit) is $200,000. Your taxable capital gain with the 50% discount applied is $100,000. Your estimated capital gains tax obligation is $37,175.

Can I offset anything against capital gains tax?

Offset any losses you've made on other assets against your gain. So, if you have a share portfolio or family heirloom that sold at a loss, for example, you can use that to reduce the taxable gain against another asset you're selling, such as property.

How long should I live in a house to avoid capital gains?

Live in the house for at least 2 years

One of the most effective ways to avoid capital gains taxes is by meeting the ownership and use test. If you live in your home for at least 2 out of the 5 years before selling, you may qualify for the Section 121 exclusion.