What Is Tax-Loss Harvesting? 7 Rules to Know Before Year-End (2026)
Tax-loss harvesting lets you sell investments at a loss to offset taxable gains. Here are seven rules, including the wash sale rule and the $3,000 limit, to know before year-end.

Tax-loss harvesting means selling an investment that has dropped in value so you can use the loss to offset taxable gains, (learn more about 7 best personal loans for bad credit in 2026) (learn more about the 2026 insurance gap: 8 policies most canadians are missing (that cost them thousands)) (learn more about 7 student loan forgiveness programs in 2026: are you eligible?) and then reinvesting the money so your plan stays on track. If you hold investments in a regular taxable brokerage account, it can lower your tax bill this year, (learn more about retirement account comparison 2026: 401(k) vs ira vs roth ira vs sep — which is right for you?) and it only works if you follow the IRS wash sale rule. This guide walks through seven rules, ranked by how often they trip people up (learn more about best student loan refinancing companies of 2026: 6 lenders ranked) (learn more about best debt consolidation loans for bad credit in 2026), so you can decide whether it fits your situation before December 31.
How We Ranked These Rules
We ordered the rules by how much money a mistake can cost and how often readers ask about each one.
| Criteria | Weight | Why It Matters |
|---|---|---|
| Dollar impact | High | Rules that can erase your tax benefit come first |
| Frequency of mistakes | High | Common errors deserve the most attention |
| Ease of fixing | Medium | Some mistakes can be undone, others cannot |
| Who it applies to | Medium | Not every rule matters to every investor |
Data sources: IRS Publication 550 (Investment Income and Expenses), IRS Topic No. 409 (Capital Gains and Losses), and IRS Form 8949 instructions.
1. Only Taxable Accounts Qualify — Retirement Accounts Don't Count
Best for: Investors with a regular brokerage account
Tax-loss harvesting only works in taxable accounts. Losses inside a 401(k), traditional IRA, or Roth IRA are not deductible, because those accounts already have their own tax treatment. If most of your money sits in retirement accounts, this strategy may not apply to you.
Pros
- Applies to stocks, ETFs, and mutual funds you hold in a brokerage account
- Easy to check: look at the account type on your statement
Cons
- Does nothing for retirement accounts
- Small taxable balances may not produce meaningful savings
Who This Is Best For
Anyone with a taxable brokerage account that has both winners and losers. If you only invest through a 401(k), you can skip this strategy.
2. Losses Offset Gains First, Then Up to $3,000 of Ordinary Income
Best for: Anyone who sold investments at a profit this year
Under IRS rules, capital losses first cancel out capital gains. If your losses are larger than your gains, you can deduct up to $3,000 of the leftover loss against ordinary income each year ($1,500 if married filing separately). Anything beyond that carries forward to future tax years.
Pros
- Real savings if you have gains to offset
- Unused losses carry forward with no expiration
Cons
- The $3,000 yearly cap on ordinary income limits big losses in a single year
- Short-term and long-term losses are netted in a set order, which can surprise people
Who This Is Best For
People who sold a big winner, a fund, or crypto at a gain. See our guide on how capital gains taxes work in 2026 for how gains are taxed.
3. The Wash Sale Rule Can Cancel Your Loss
Best for: Anyone planning to buy back what they sold
If you buy the same or a "substantially identical" security within 30 days before or after you sell at a loss, the IRS disallows the loss for now. That is a 61-day window in total. The disallowed loss is not gone forever; it gets added to the cost basis of the new shares. But you lose the deduction this year.
Pros
- Easy to avoid once you know the window
- Disallowed losses are added to your basis, not erased
Cons
- Applies across accounts, including an IRA or a spouse's account
- Automatic dividend reinvestment can trigger it by accident
Who This Is Best For
Anyone with automatic reinvestment turned on. Check those settings before you sell.
4. Swap Into a Similar (Not Identical) Investment
Best for: Investors who want to stay invested
A common approach is to sell a fund and buy a different one that tracks a similar market. The IRS has not published a bright-line definition of "substantially identical," so choose funds that track different indexes or come from different providers, and talk to a tax professional if you are unsure.
Pros
- Keeps your money invested while you wait out the 30 days
- No need to sit in cash
Cons
- No official safe harbor, so there is some interpretation risk
- The replacement may behave a little differently
Who This Is Best For
Long-term investors who want to keep their target mix.
5. It Defers Taxes More Than It Erases Them
Best for: Investors who like to understand the long game
When you harvest a loss and buy a replacement, your cost basis goes down. That means a bigger gain later when you sell. You are often deferring tax, not eliminating it. The value comes from keeping money invested longer, and from possibly paying a lower rate later.
Pros
- Can improve cash flow today
- Gains may later be taxed at long-term rates
Cons
- Not a permanent tax cut in most cases
- Adds record-keeping
Who This Is Best For
People who plan to hold for many years, or who expect to be in a lower tax bracket later.
6. Year-End Timing Matters, But Not Just December
Best for: Anyone who procrastinates
A sale counts for the tax year it settles, so trades placed in the last few days of December may land in January. Check your broker's deadline. You can also harvest during the year when markets dip, not only at year-end.
Pros
- Flexibility to act any time prices fall
- Lowers surprises at tax time
Cons
- Frequent trading can add fees
- Last-minute trades can miss the cutoff
Who This Is Best For
Investors who check their accounts at least a few times a year.
7. You Must Report It Correctly
Best for: Everyone who sells investments
Your broker sends Form 1099-B, and you report sales on Form 8949 and Schedule D. Brokers track wash sales within the same account, but not across different brokers or accounts. That part is on you.
Pros
- Most brokers provide the numbers you need
- Software can import them
Cons
- Cross-account wash sales are easy to miss
- Mistakes can lead to IRS notices
Who This Is Best For
Anyone who holds the same investment at more than one firm.
Quick Comparison
| Rule | What It Affects | Typical Risk | Fix |
|---|---|---|---|
| Taxable accounts only | Eligibility | Wasted effort | Check account type |
| $3,000 limit | Size of deduction | Surprise at filing | Plan carryforwards |
| Wash sale (61 days) | Whether loss counts | Lost deduction this year | Wait or swap |
| Similar investment | Staying invested | Interpretation | Different index or provider |
| Lower basis | Future tax | Bigger later gain | Plan ahead |
| Timing | Tax year | Missed deadline | Trade early |
| Reporting | Accuracy | IRS notice | Track across accounts |
How We Researched This
This guide draws on IRS Publication 550, IRS Topic No. 409, and the Form 8949 and Schedule D instructions. We checked each rule against the IRS language and left out advanced cases such as options, trusts, and cryptocurrency, which have their own rules. Last updated: November 2026. We review this guide at least once a year and whenever tax rules change.
Frequently Asked Questions
What is tax-loss harvesting in simple terms?
It means selling an investment at a loss to offset taxes on gains, then reinvesting so you stay in the market. It only applies to taxable accounts.
How much can you deduct with tax-loss harvesting?
Losses first offset capital gains. If losses are larger, you can deduct up to $3,000 against other income per year, and carry the rest forward.
Does tax-loss harvesting work in an IRA?
No. Losses in IRAs and 401(k)s are not deductible. Read more on how a Roth IRA works.
What is the wash sale rule?
It disallows a loss if you buy the same or a substantially identical security within 30 days before or after the sale.
Can I buy it back after 31 days?
Yes. After the 30-day window passes, you can buy the same investment again without triggering the wash sale rule.
Does the wash sale rule apply across accounts?
Yes. It covers purchases in your IRA and may include your spouse's accounts.
Is tax-loss harvesting worth it?
It depends on your gains, tax bracket, and account size. For small balances the savings can be modest. Results vary.
Do robo-advisors do this automatically?
Some do. Our guide to the best robo-advisor apps compares them.
What if I have no gains this year?
You can still deduct up to $3,000 and carry the remainder forward.
Do I need a tax professional?
Not always, but a professional can help if you hold investments at several firms or have large gains. See also the One Big Beautiful Bill Act changes.
Next Step
Log in to your brokerage account, sort your holdings by unrealized loss, and check whether any sale would offset a gain you have already taken this year. If you are not sure, talk to a tax professional before you trade.
Important Disclosures
This content is for informational purposes only and does not constitute tax, legal, or financial advice. Tax rules and limits change and your situation may differ. Consult a qualified tax professional before making decisions. MoneySimple may receive compensation from partners featured on this site; this does not influence our explanations.
Money Tools & Resources (MoneySimple) Guide Library
Part of our full Money Tools & Resources (MoneySimple) library:
- Best Personal Finance Books of 2026: 8 Picks Ranked by What They Help You Fix
- Best Prepaid Debit Cards of 2026: 5 Cards Compared by What They Really Cost
- How Capital Gains Taxes Work in 2026: 7 Rules to Know Before You Sell
- How Compound Interest Works: 7 Things That Change Your Results
- Inflation Hedging Investments: 7 Real Assets That Can Beat Cash in the Bank (2026)
- Peer-to-Peer Lending Platforms in 2026: Do These 7 Apps Actually Generate Real Returns?
- What Is an HSA and How Does It Work? 6 Things to Know
- What Is the One Big Beautiful Bill Act? 7 Tax Changes That Matter for 2026
This content is for educational purposes only and does not constitute financial advice. Consult a licensed financial professional for advice specific to your situation.
MoneySimple may receive compensation from partners featured on this page. This does not influence our editorial opinions or recommendations.
Related articles
More guidance you might find helpful.

Best Bank Accounts for Teens in 2026: 6 Options Ranked by Fees, Parental Controls, and Age Range
We ranked 6 teen bank accounts for 2026 by fees, overdraft policy, parent controls, and age range. Capital One MONEY Teen Checking leads for most families; Chase High School Checking fits Chase households.

Best Cash Management Accounts in 2026: 6 Options Ranked by Yield, FDIC Coverage, and Fees
Looking for a safe place to earn more on your cash? We ranked 6 cash management accounts for 2026 by interest rate, FDIC coverage, fees, and everyday features, plus how they compare to high-yield savings.

Best Joint Bank Accounts for Couples in 2026: 7 Accounts Ranked by Fees, Tools, and Flexibility
We ranked seven joint bank accounts for couples on fees, overdraft policy, ease of adding a co-owner, shared budgeting tools, and FDIC coverage. Ally leads for its savings buckets; SoFi wins for earning on shared cash. Plus what to talk about before you merge money.
Get smarter about money.
Free weekly tips on credit, debt, taxes, and more.
No spam. Unsubscribe anytime.