Stocks For Beginners

Plain-English money basics for people just starting out

Taxes & Paperwork

Tax-Loss Harvesting Explained

Tax-loss harvesting means selling an investment for a loss to reduce taxes. Learn how it works, the wash sale rule, and a simple beginner-friendly checklist.

Tax-loss harvesting is one of those concepts that sounds fancy, but the core idea is simple: if you have an investment that is down, you may be able to sell it and use that loss to reduce your taxes.

A person reviewing a brokerage app on a smartphone at a kitchen table with a notebook and a calculator nearby

What tax-loss harvesting is

Tax-loss harvesting is when you sell an investment in a taxable brokerage account for less than you paid for it, creating a capital loss. That loss can then potentially be used to:

  • Offset capital gains you realized this year.
  • Reduce ordinary taxable income by up to $3,000 per year if losses exceed gains ($1,500 if married filing separately).
  • Carry extra losses forward to future years if you still have more than you can use now.

This is a tax strategy, not a way to “win back” a bad investment. You still lost money on the trade. The benefit is that the loss can soften your tax bill.

Quick vocabulary

  • Cost basis: what you paid for the investment (often including reinvested dividends and some adjustments).
  • Realized gain or loss: what happens when you sell. Until you sell, it is unrealized.
  • Capital gains: profit from selling an investment for more than your basis.
  • Capital losses: loss from selling an investment for less than your basis.
  • Short-term vs. long-term: held 1 year or less is short-term, more than 1 year is long-term. (This matters a lot for how gains are taxed.)

If you want a friendly refresher on what happens when you sell, this guide pairs nicely: Capital gains tax when you sell a stock.

How losses reduce taxes

Think of your tax return as having two main “buckets”: short-term and long-term. Losses and gains get netted in steps (short-term against short-term, long-term against long-term, then any remainder gets netted), but beginners can still remember the big picture below.

Step 1: Losses offset gains

If you realized $2,000 of capital gains and also realized $2,000 of capital losses, those can cancel out, leaving $0 net capital gain.

Step 2: If losses are bigger than gains, you may offset income

If your losses are larger than your gains, you can use up to $3,000 of the remaining net loss to reduce ordinary taxable income (like wages) per year ($1,500 if married filing separately).

Step 3: The rest carries forward

Any unused capital losses generally carry forward to future years until used.

Example (simplified):

  • You realized $1,000 in capital gains this year.
  • You sell a losing investment and realize a $5,500 capital loss.
  • $1,000 of the loss offsets your gains, leaving a $4,500 net loss.
  • Up to $3,000 may reduce ordinary income this year.
  • The remaining $1,500 carries forward.

Tax rules can get detailed fast, but that is the basic flow most beginners need.

The wash sale rule

The biggest tax-loss harvesting trap is the wash sale rule.

In plain terms: if you sell an investment at a loss and buy the same or “substantially identical” investment within the wash sale window, the IRS can disallow the loss.

The wash sale window

The window is 30 days before the sale, the day of the sale, and 30 days after the sale. That is a 61-day span to be careful about.

Why it matters

If your loss is disallowed and your replacement shares were bought in a taxable account, the loss is typically added to the cost basis of the replacement shares, which delays the tax benefit.

If the replacement shares are bought in an IRA, the outcome can be worse: the loss is generally disallowed without a clean way to recover it through IRA cost basis later. This is one reason cross-account wash sales deserve extra caution.

Common ways beginners trigger a wash sale

  • Selling a stock at a loss, then rebuying it a week later because it “looks cheap now.”
  • Selling a fund at a loss in your brokerage account, while your IRA or 401(k) buys the same fund in the wash window.
  • Automatic dividend reinvestment buying small amounts of the same stock or fund after you sell for a loss.

Beginner-friendly tip: if you are planning a harvest, consider temporarily turning off dividend reinvestment for that holding so surprise purchases do not trip the rule.

For the official IRS explanation, see IRS Publication 550 (wash sales are covered there).

A wall calendar with a person circling dates using a pen at a desk

A simple playbook

Here is a beginner-friendly process you can use when reviewing your taxable brokerage account.

1) Confirm the account type

Tax-loss harvesting is usually for taxable brokerage accounts. Losses inside retirement accounts like IRAs and 401(k)s generally do not work the same way for taxes.

2) Look for positions with a real loss

Check your holding’s unrealized gain or loss compared to your cost basis. Remember: you only create a realized loss by selling.

3) Ask: do you want to keep it?

If the investment no longer fits your plan or your risk comfort, selling may make sense anyway. If it still fits, you might want a replacement that keeps you invested without creating a wash sale.

If you are still building confidence about risk, this can help: Find your risk tolerance before buying stocks.

4) Pick a not-identical replacement (or wait)

Many investors sell one fund and buy a similar, but not substantially identical, fund. The goal is to keep market exposure while avoiding the wash sale rule.

A concrete example in general terms: someone might sell one large-cap US index fund and buy a different large-cap US index fund that tracks a different index. Similar “job,” different fund.

Because “substantially identical” can be a gray area (especially with ETFs and mutual funds), it can be smart to keep it simple and conservative. When in doubt, consider waiting and buying back 31 days after the sale date.

5) Place orders thoughtfully

  • Decide whether you are selling all shares or only some lots.
  • If your broker supports it, you may be able to sell specific tax lots (useful when some lots are down and others are up).
  • Keep an eye on trading costs and bid-ask spreads.

6) Save records and watch for cross-account wash sales

Your broker will typically track cost basis and report sales on Form 1099-B and summarized totals on other tax forms.

One important catch: a broker can usually flag wash sales within that same brokerage account, but it may not catch purchases in another brokerage, a spouse’s account, or an IRA at a different institution. If you have multiple accounts, you may need to track the wash window yourself.

Also note that state tax rules often follow the federal framework, but not always. If your state taxes are a big part of your bill, it is worth a quick check for differences.

When it helps (and when it does not)

It can help when

  • You realized capital gains this year and want to reduce them.
  • You have a holding that no longer fits your plan and you are selling anyway.
  • You are in a higher tax bracket year than usual.
  • You can avoid wash sales and stay invested in a sensible way.

It can help less when

  • Your losses are tiny and trading spreads or fees eat the benefit.
  • You will trigger a wash sale because of automatic buys or rebalancing.
  • Selling would pull you out of the market for too long and you do not have a clear replacement plan.
  • Your main holdings are in retirement accounts where this strategy is not the same.

One more acorn to consider: harvesting a loss today can lower taxes now, but it can also lower your cost basis, which may mean larger taxable gains later. That can still be worthwhile, but it is good to see the whole path.

Harvesting vs holding

Sometimes the best beginner move is not to fiddle. If your investing plan is built around broad diversification and long time horizons, frequent trading can create stress and mistakes.

If you are still building your core approach, this guide can help you keep things steady: The 3-fund portfolio.

Beginner FAQ

Does this mean I can deduct unlimited losses?

Losses can offset capital gains without the $3,000 limit, but only up to the amount of gains. If losses exceed gains, you can generally deduct up to $3,000 of the excess against ordinary income per year ($1,500 if married filing separately), then carry forward the rest.

Can I harvest losses on individual stocks and ETFs?

Yes, in a taxable account. The same concepts apply, but the wash sale rule becomes important if you buy back the same stock or a substantially identical fund too soon.

Do I need to do special math on my tax return?

Your broker usually provides the key numbers on tax forms. Many tax filing tools walk you through importing or entering them. Still, it helps to understand what is happening so you can spot issues like wash sales, especially across accounts.

What if I trigger a wash sale?

It happens. In a taxable account, the disallowed loss is typically added to the basis of the replacement shares, which can reduce taxes later when those shares are sold. If the replacement purchase was in an IRA, the loss is generally disallowed in a more permanent way. If the situation involves multiple accounts or lots, consider getting help from a qualified tax professional.

Is this a good idea for total beginners?

It can be, as long as the investor understands the wash sale rule and does not let the strategy override their long-term plan. A simple approach, harvesting only when a sale already makes sense, is often the calmest place to start.

One last acorn

Tax-loss harvesting is best thought of as tidying up the tax side of investing, not chasing a secret trick. If you keep your plan steady, avoid wash sales, and use losses thoughtfully, this strategy can help keep more of your money growing over time.

If you are building your overall investing foundation, visit Investing Basics. For more tax topics, explore Taxes & Paperwork.

A farmer harvesting pumpkins in a field in autumn

Pocket is the squirrel drawn for Stocks For Beginners. Pocket isn't a financial adviser and doesn't pick stocks. The articles explain how accounts, funds, credit and taxes work so you can make your own decisions. More about Pocket