The Wash Sale Rule: Six Things to Know to Avoid Tax Pitfalls
Avoid violating the IRS wash sale rule for tax losses when you sell and rebuy stocks.
Profit and prosper with the best of Kiplinger's advice on investing, taxes, retirement, personal finance and much more. Delivered daily. Enter your email in the box and click Sign Me Up.
You are now subscribed
Your newsletter sign-up was successful
Want to add more newsletters?
Delivered daily
Kiplinger Today
Profit and prosper with the best of Kiplinger's advice on investing, taxes, retirement, personal finance and much more delivered daily. Smart money moves start here.
Sent five days a week
Kiplinger A Step Ahead
Get practical help to make better financial decisions in your everyday life, from spending to savings on top deals.
Delivered daily
Kiplinger Closing Bell
Get today's biggest financial and investing headlines delivered to your inbox every day the U.S. stock market is open.
Sent twice a week
Kiplinger Adviser Intel
Financial pros across the country share best practices and fresh tactics to preserve and grow your wealth.
Delivered weekly
Kiplinger Tax Tips
Trim your federal and state tax bills with practical tax-planning and tax-cutting strategies.
Sent twice a week
Kiplinger Retirement Tips
Your twice-a-week guide to planning and enjoying a financially secure and richly rewarding retirement
Sent bimonthly.
Kiplinger Adviser Angle
Insights for advisers, wealth managers and other financial professionals.
Sent twice a week
Kiplinger Investing Weekly
Your twice-a-week roundup of promising stocks, funds, companies and industries you should consider, ones you should avoid, and why.
Sent weekly for six weeks
Kiplinger Invest for Retirement
Your step-by-step six-part series on how to invest for retirement, from devising a successful strategy to exactly which investments to choose.
Be aware of the wash sale rule enforced by the IRS. The rule is important for investors reassessing their market positions and looking to sell and repurchase declining stocks to offset losses.
Disallowed losses are a potential tax pitfall of violating the wash sale rule, so here are six key things you need to know.
1. What is the wash sale rule?
The wash sale rule states that if you buy or acquire a substantially identical stock within 30 days before or after you sold the declining stock at a loss, you generally cannot deduct the loss.
From just $107.88 $24.99 for Kiplinger Personal Finance
Become a smarter, better informed investor. Subscribe from just $107.88 $24.99, plus get up to 4 Special Issues
Sign up for Kiplinger’s Free Newsletters
Profit and prosper with the best of expert advice on investing, taxes, retirement, personal finance and more - straight to your e-mail.
Profit and prosper with the best of expert advice - straight to your e-mail.
Essentially, a wash sale occurs when you sell a security at a loss and then purchase the same security again in a short period.
Note: Losses can offset same-year gains that can ultimately reduce capital gains taxes. Additionally, remaining losses can be deducted from ordinary income (up to $3,000) or carried over to the following tax year. As a result, many people opt to sell securities at a loss to reduce taxable gains, a technique commonly known as tax loss harvesting.
However, the IRS doesn’t like investors to use "manufactured" losses to claim tax breaks. If you sell a stock at a loss and quickly buy it back or keep investing in it after buying it back, the IRS generally won’t allow you to write off the loss on your federal tax return.
Let's consider an example. Suppose you bought 50 shares of a fictional JustaTissueBox stock for $100 per share, and its value dropped to $80 per share.
- You decided to sell all your shares at a loss of $1,000.
- However, two weeks later, the stock's value dropped further to $50 per share, and you bought back 50 shares for $2,500.
- Unfortunately, you cannot claim the $1,000 capital loss on your tax return for that year because the second purchase was a wash sale.
2. : Disallowed wash sale loss: What happens when you have a wash sale
If you experience a wash sale, the capital loss disallowed by the IRS is included in the cost basis of the replacement stock. So, if you sell the replacement stock later, any taxable gain will be smaller, and any deductible loss will be larger.
Additionally, the holding period of the new stock now includes the holding period of the original stock. As a result, when you sell the new stock, the gain may be taxed at lower long-term capital gains tax rates.
3. How to avoid the wash sale rule
If you want to avoid the IRS disallowing your loss due to the wash sale rule, you have a few options.
- One choice is to hold off on repurchasing the same or very similar stock that you sold. Keep in mind that the wash sale rule goes into effect 30 days before and after the sale, so you have a 61-day window to avoid buying the same stock.
- Alternatively, if waiting 61 days isn't feasible, you can purchase a security that is not substantially identical to the one you recently sold.
The challenge with the second option is that the term “substantially identical” hasn’t been defined by Congress or the IRS. So, what’s considered substantially identical for the wash sale rule will largely depend on the facts and circumstances of your transaction.
4. Wash sale in stocks: Examples
If you are trying to figure out if the IRS might disallow some of your capital losses, IRS Publication 550 contains some wash sale rule examples that could help.
- Generally, stocks of one corporation are not considered substantially identical to those of another corporation.
- However, in certain situations, like a reorganization, those stocks could be considered substantially identical.
According to the IRS, a corporation's bonds and preferred stock are usually not considered too similar to its common stock. But, if the preferred stock can be turned into common stock, has the same voting rights, or is limited in the same way in terms of dividends, then it would be considered substantially identical.
What about your spouse’s stock purchases? The IRS says that a wash sale exists if your spouse or a corporation you control purchases substantially identical stock within the wash sale rule 61-day period.
What about ETFs and the wash sale rule? Things can get a little complicated when it comes to ETFs that track the same index.
For example, you might think selling a Vanguard S&P 500 ETF shares and immediately buying an SPDR S&P 500 ETF is a way to harvest a tax loss without changing your investment. However, because both ETFs track the same index, the IRS might consider them "substantially identical." While there are slight differences in how these ETFs are managed and their fees, it's often best to play it safe.
Some experts suggest switching to an ETF that tracks a different index, such as a total stock market ETF. But remember, the IRS looks at each situation individually, so when in doubt, it's always a good idea to consult with a tax professional who knows your situation.
5. What the wash sale rule applies to
The wash sale rule applies to most securities, including stocks and options, bonds, mutual funds, and exchange-traded funds (EFTs). But the wash sale rule doesn't currently apply to cryptocurrency. This is partly because the IRS classifies crypto as property, not a security. So, you can claim the capital loss if you are selling crypto for a loss and immediately rebuying it.
So, at the moment, crypto investors have a tax loophole known as the "wash sale rule crypto loophole." (This essentially allows them to claim tax benefits for losses that may not be genuine.) However, investors in other securities are subject to the wash sale rule.
What about retirement accounts? It's worth noting that the wash sale rule extends beyond taxable investment accounts. The rule can come into play with retirement accounts.
For instance, if you sell a security at a loss in your regular brokerage account and then buy the same or substantially similar security in your IRA within 30 days or after the sale, the wash sale rule is an issue.
You could lose the ability to claim the tax loss on your current year's return and wouldn't be able to adjust the cost basis of the repurchased security in your retirement account.
6. How to report a wash sale on your return
If you need to report losses from wash sales, you can use IRS Form 8949 and Schedule D. Form 8949 will help you compare the amounts reported on Forms 1099B or 1099S, while Schedule D will show the overall gain or loss from the transactions reported on Form 8949.
If you are married and are filing jointly you must complete as many copies of Form 8949 as needed to report all the transactions for you and your spouse. The totals from all Forms 8949 should be on Schedule D.
Wash sale rule: Bottom line
Before selling and repurchasing stocks that decreased in value, you should seek trusted advice experts who are knowledgeable about the tax implications involved.
Also, review IRS guidelines, in Publication 550, to understand which losses might be disallowed due to the wash sale rule.
Related Content
- States With Low and No Capital Gains Tax
- Capital Gains Tax Rates for 2025 and 2026
- How to Avoid Capital Gains Taxes
- Are No Capital Gains Taxes on Home Sales Coming Soon?
Profit and prosper with the best of Kiplinger's advice on investing, taxes, retirement, personal finance and much more. Delivered daily. Enter your email in the box and click Sign Me Up.

Kelley R. Taylor is the senior tax editor at Kiplinger.com, where she breaks down federal and state tax rules and news to help readers navigate their finances with confidence. A corporate attorney and business journalist with more than 20 years of experience, Kelley has helped taxpayers make sense of shifting U.S. tax law and policy from the Affordable Care Act (ACA) and the Tax Cuts and Jobs Act (TCJA), to SECURE 2.0, the Inflation Reduction Act, and most recently, the 2025 “Big, Beautiful Bill.” She has covered issues ranging from partnerships, carried interest, compensation and benefits, and tax‑exempt organizations to RMDs, capital gains taxes, and energy tax credits. Her award‑winning work has been featured in numerous national and specialty publications.
-
The Cost of Leaving Your Money in a Low-Rate AccountWhy parking your cash in low-yield accounts could be costing you, and smarter alternatives that preserve liquidity while boosting returns.
-
I want to sell our beach house to retire now, but my wife wants to keep it.I want to sell the $610K vacation home and retire now, but my wife envisions a beach retirement in 8 years. We asked financial advisers to weigh in.
-
How to Add a Pet Trust to Your Estate PlanAdding a pet trust to your estate plan can ensure your pets are properly looked after when you're no longer able to care for them. This is how to go about it.
-
How to Add a Pet Trust to Your Estate Plan: Don't Leave Your Best Friend to ChanceAdding a pet trust to your estate plan can ensure your pets are properly looked after when you're no longer able to care for them. This is how to go about it.
-
Want to Avoid Leaving Chaos in Your Wake? Don't Leave Behind an Outdated Estate PlanAn outdated or incomplete estate plan could cause confusion for those handling your affairs at a difficult time. This guide highlights what to update and when.
-
I'm a Financial Adviser: This Is Why I Became an Advocate for Fee-Only Financial AdviceCan financial advisers who earn commissions on product sales give clients the best advice? For one professional, changing track was the clear choice.
-
Nasdaq Slides 1.4% on Big Tech Questions: Stock Market TodayPalantir Technologies proves at least one publicly traded company can spend a lot of money on AI and make a lot of money on AI.
-
Should You Do Your Own Taxes This Year or Hire a Pro?Taxes Doing your own taxes isn’t easy, and hiring a tax pro isn’t cheap. Here’s a guide to help you figure out whether to tackle the job on your own or hire a professional.
-
Trump $10B IRS Lawsuit Hits an Already Chaotic 2026 Tax SeasonTax Law A new Trump lawsuit and warnings from a tax-industry watchdog point to an IRS under strain, just as millions of taxpayers begin filing their 2025 returns.
-
Can I Deduct My Pet On My Taxes?Tax Deductions Your cat isn't a dependent, but your guard dog might be a business expense. Here are the IRS rules for pet-related tax deductions in 2026.
-
This Is How You Can Land a Job You'll Love"Work How You Are Wired" leads job seekers on a journey of self-discovery that could help them snag the job of their dreams.