Tax-Loss Harvesting, Explained: Rules, Benefits, and Tax Savings

No investor likes watching the value of their investments decline. What if those losses could work in your favor come tax time, though?

Thanks to a strategy known as “tax-loss harvesting,” investors can turn underperforming investments into potential tax savings by using their losses to offset capital gains and (in some cases) reduce taxable income. While this may sound complicated, understanding how it works can help you make more informed decisions about your investments and tax obligations.

Let's take a closer look at tax-loss harvesting, its potential benefits, and important rules to keep in mind.

Key Takeaways
  • Federal tax savings: Realized capital losses can offset taxable capital gains dollar for dollar. Should losses exceed gains, you can deduct up to $3,000 against ordinary income on an annual basis ($1,500 for married taxpayers filing separately).
  • Short-term vs. long-term gains: Investments held for one year or less generally produce gains taxed at ordinary income rates of 10%–37%, while most long-term gains qualify for preferential federal rates of 0%, 15%, or 20%.
  • Wash sale avoidance: Purchasing substantially identical securities within 30 days before or after selling at a loss can disallow the current deduction. Automatic dividend reinvestments and purchases via other accounts may also trigger the rule.
  • New Jersey tax limitations: Unlike federal rules, New Jersey generally requires capital losses to offset gains within the same income category and tax year. You cannot carry unused net investment losses forward or deduct them against wages.
  • Long-term tax considerations: Harvesting losses can lower your current tax bill but may increase taxable gains when replacement investments are eventually sold.

What is tax-loss harvesting?

What tax-loss harvesting does

You sell an investment that has dropped in value to realize a capital loss, then use that loss to offset capital gains dollar for dollar. If your losses exceed your gains, you can deduct up to $3,000 of the excess against ordinary income each year ($1,500 for married taxpayers filing separately), and carry any remaining loss forward to future years. One condition: the loss must be realized — a decline in value alone doesn’t qualify until you sell.

Tax-loss harvesting involves strategically selling investments that’ve declined in value to realize capital losses that are then used to offset capital gains from profitable investments and (in some cases) reduce ordinary income. Per federal tax rules, investors can deduct up to $3,000 in excess capital losses against ordinary income each year ($1,500 for married taxpayers filing separately). Any remaining losses are generally carried forward to offset gains or eligible income in future tax years. For tax-loss harvesting to work, the losses must be realized (i.e., the investments must be sold) with a decline in investment value alone not qualifying for a deduction.

How tax-loss harvesting works

A $12,000 loss at work

Say you have an $8,000 short-term gain. In the 24% federal bracket (2026), that’s $1,920 in tax. Sell an underperformer for a $12,000 loss, and it wipes out the gain entirely — saving that $1,920. You still have $4,000 of loss left: $3,000 of it offsets ordinary income to save another $720, for about $2,640 in federal savings, and the final $1,000 carries forward to a future year.

A simplified example assuming a short-term gain and loss, a 24% marginal rate, no other capital transactions, and ordinary-income deduction eligibility. Actual savings depend on your circumstances. This is general information, not tax advice for your specific situation.

So, what does tax-loss harvesting look like in practice? Let's walk through an example.

Suppose you sell an investment for an $8,000 short-term capital gain. If you're in the 24% federal income tax bracket, you could owe $1,920 in taxes on that profit. Consider, then, another investment in your portfolio that hasn't performed quite as well. When you decide to sell it and realize a $12,000 loss, this is where tax-loss harvesting comes into play; applying that $12,000 loss against your $8,000 gain, you can eliminate the taxable gain entirely to potentially save $1,920 in federal taxes.

There's more! You still have $4,000 in excess capital losses. Under federal tax rules, you can generally deduct up to $3,000 of this against your ordinary income to save another $720 at the assumed 24% tax rate. The result? Potentially $2,640 in federal tax savings plus $1,000 in losses carried forward to a future tax year.

This simplified example assumes a short-term gain and loss, a 24% marginal federal income tax rate, no other capital transactions, and ordinary income deduction eligibility. Actual tax savings depend on individual circumstances.

Understanding short-term and long-term capital gains

When it comes to tax-loss harvesting, timing matters. In fact, how long you hold an investment prior to selling can make a significant difference in how much you owe in federal taxes. The IRS outlines two primary capital gain and loss categories*:

  • Short-term: Gains or losses from investments held for one year or less, generally taxed at ordinary federal income tax rates ranging from 10% to 37%.

  • Long-term: Gains or losses from investments held for more than one year, generally qualifying for preferential federal tax rates of 0%, 15%, or 20% depending on taxable income.

*Some investments may be subject to different federal capital gains tax rates, and higher-income taxpayers may also owe an additional 3.8% federal Net Investment Income Tax.

How are capital gains and losses matched?

How gains and losses are matched

Under federal rules, short-term losses offset short-term gains first, and long-term losses offset long-term gains first. If one category nets to a loss and the other to a gain, the two are then combined to find your overall capital gain or loss. Because short-term gains are generally taxed at higher ordinary rates, using losses to knock those out first can deliver the larger immediate tax savings.

Things get a little more interesting here. Under federal tax rules, short-term losses first offset short-term gains while long-term losses first offset long-term gains. If one category has a net loss and the other a net gain, they're combined to determine the overall capital gain or loss.

Why does this matter? Since short-term gains are generally taxed at higher rates, offsetting them can sometimes deliver greater immediate tax savings.

Remember our earlier example? We used a 24% federal income tax rate since the $8,000 gain was short-term. Had that same gain instead qualified for a 15% long-term capital gains rate, federal tax would’ve decreased from $1,920 to $1,200. Understanding how such distinctions affect tax liability can help you make more informed decisions about when to sell investments and realize losses.

When to consider tax-loss harvesting

A one-size-fits-all approach to tax-loss harvesting unfortunately doesn’t exist, the right time to realize an investment loss ultimately depending on your financial circumstances, investment goals, and overall tax situation. That said, some scenarios do present particularly worthwhile opportunities. These include…

Market downturns

Market volatility is unsettling but can also create strategic tax planning opportunities. When stock prices fall, once-profitable investments may dip below their original purchase price. Selling some of these holdings at a loss can help offset realized capital gains, potentially reducing your tax liability, but not every market downturn warrants a sale. The key is identifying opportunities complementing your long-term investment strategy instead of reacting to temporary fluctuations.

Portfolio rebalancing

As markets fluctuate, your portfolio can gradually drift away from its intended allocation with (for example) stocks now representing a larger share of your investments than you'd originally planned for. Rebalancing might involve selling holdings that have declined in value and redirecting the proceeds toward other asset classes, providing the chance to realize capital losses and bring your portfolio closer to its intended allocation. In doing so, you can address two financial priorities at once: managing your tax liability and maintaining an investment mix supporting your long-term goals.

Year-end tax planning

As December approaches, reviewing your investment activity can reveal otherwise-overlooked opportunities. Have you realized substantial capital gains this year? Are any investments currently trading below their cost basis? Evaluating both can help determine whether harvesting losses prior to year-end can improve your federal tax position. Don't wait until December to take a look, though! Incorporate tax-loss harvesting into your year-round tax planning strategy to take advantage of opportunities as they arise rather than make rushed end-of-year decisions.

How the wash-sale rule affects tax savings

Watch the wash-sale rule

If you buy the same or a substantially identical security within 30 days before or after selling at a loss — a 61-day window around the sale — the IRS can disallow the loss for the current year. The rule reaches further than people expect: it can be triggered by automatic dividend reinvestments, purchases in your IRA or Roth IRA, and buys made in your spouse’s accounts. To keep market exposure without tripping it, you can buy a similar but not substantially identical security.

This is general information, not tax advice for your specific situation.

Tax-loss harvesting can offer significant tax benefits, but there's a catch! Should you sell an investment at a loss and then repurchase the same (or a substantially identical) investment too soon, the IRS may disallow the loss for current tax purposes. This is known as the “wash-sale rule.”

What triggers a wash sale?

Under IRS rules, a wash sale generally occurs when you sell stock or securities at a loss and do the following within 30 days (either before or after):

  • Purchase the same or substantially identical stock or securities.

  • Acquire substantially identical securities via a taxable trade.

  • Enter into a contract or option to purchase substantially identical securities.

This creates a 61-day window surrounding the sale date, making timing especially important.

Keep in mind that the wash-sale rule can also apply to purchases made through other accounts, including an IRA or Roth IRA, or by your spouse. These transactions can sometimes cause you to lose the intended tax benefit rather than simply postpone it.

What happens if you trigger the wash-sale rule?

Corresponding consequences are often significant. If your transaction qualifies as a wash sale, you generally can't claim the affected loss as a deduction on your current tax return—but it isn't necessarily gone forever! In many cases, it's added to the cost basis of your replacement investment so you can potentially recover the tax benefit when you eventually sell those shares. Avoiding a wash sale doesn't mean abandoning your investment strategy altogether, though; you can purchase a similar (but not substantially identical) security to potentially maintain market exposure while preserving your intended tax benefit.

What to know before harvesting tax losses

Not all investment accounts qualify.

It only works in taxable accounts

Tax-loss harvesting generally applies to investments in taxable brokerage accounts. Tax-advantaged retirement accounts — traditional IRAs, Roth IRAs, and 401(k)s — follow different rules: because transactions inside them don’t trigger immediate capital gains tax, you generally can’t use losses there to offset gains or reduce ordinary income. Where you hold an investment matters as much as which one you sell.

This is general information, not tax advice for your specific situation.

First things first: tax-loss harvesting generally applies to investments held in taxable brokerage accounts. Tax-advantaged retirement accounts (e.g., traditional IRAs, Roth IRAs, and 401(k)s) operate under different tax rules. Since transactions within these accounts typically don't trigger immediate capital gains taxes, you typically can’t use corresponding investment losses to offset gains or reduce ordinary income on your tax return. In other words, where you hold your investments matters just as much as which investments you sell.

It’s important to understand your investment's cost basis.

How will you know whether you've realized a capital loss? This is where “cost basis” comes in, generally the amount you originally paid for an investment adjusted for certain transactions and expenses. Subtracting this from your sale proceeds helps determine your taxable gain or deductible loss, but things can get trickier if you've bought shares of the same investment at different prices or reinvested dividends over time. Keeping accurate records of these transactions is essential for calculating gains and losses correctly.

You’ll need to report capital losses on your tax return.

Harvesting a loss is only part of the process; you'll also need to account for it when filing federal income taxes. Two IRS forms play an important role for most individual investors:

  • Form 8949: Used to report many capital asset sales and exchanges, including applicable gain and loss adjustments

  • Schedule D (Form 1040): Used to calculate your overall net capital gain or loss, including eligible losses carried forward from previous years

Your brokerage may also provide Form 1099-B (detailing investment sales), but don't assume everything is automatically accounted for. Reviewing these records with a tax professional can help ensure transactions are reported accurately and any eligible deductions aren't overlooked.

Tax-loss harvesting: New Jersey nuances

New Jersey doesn’t follow the federal rules

A strategy that lowers your federal tax may not produce the same savings on your New Jersey return. The state is more restrictive:

  • Losses can offset gains only within the same income category and the same tax year — they can’t reduce wages, interest, or other categories.
  • There are no capital-loss carryforwards or carrybacks; unused net investment losses don’t move to future or prior years.
  • There are no preferential long-term rates — New Jersey taxes short- and long-term gains under its regular graduated rates, regardless of holding period.

This is general information, not tax advice for your specific situation.

New Jersey taxpayers must be mindful of an important distinction when it comes to how the state treats capital losses. While federal law generally allows investors to deduct up to $3,000 in excess capital losses against ordinary income each year, New Jersey takes a more restrictive approach with the following rules in place…

  • Limited loss deductions: Investment losses can offset gains within the same income category and tax year but cannot reduce wages, interest income, or earnings from other categories.

  • No capital loss carryforwards or carrybacks: Unlike federal rules, New Jersey doesn't let you apply unused net investment losses to future or previous tax years.

  • No preferential long-term capital gains rates: New Jersey taxes short-term and long-term capital gains under its regular graduated income tax rates regardless of how long investments are held.

The takeaway? A tax-loss harvesting strategy that reduces your federal tax liability won't necessarily produce the same savings on your New Jersey income tax return. Understanding these differences can help you plan accordingly and avoid unwelcome surprises come tax time.

Is tax-loss harvesting always a good idea?

Harvesting may defer taxes, not erase them

When you replace the investment you sold with one bought at a lower price, the replacement often has a lower cost basis. If it later rises and you sell at a profit, that gain can be larger than it would have been had you kept the original — so harvesting can shift taxes to a future year rather than eliminate them. Weigh it against transaction costs, your diversification, and the risk of missing future gains; the strategy should complement your investment plan, not drive it.

This is general information, not tax advice for your specific situation.

Not necessarily! While tax-loss harvesting is often a valuable way to reduce your tax bill, potential savings don't always outweigh the costs. Before selling an investment, it's worth considering how that decision could affect your finances both now and in the future. For example…

Today's tax savings could mean tomorrow's tax bill.

When you sell an investment at a loss and buy a replacement at a lower price, that new one may have a lower cost basis than the original. Should its value rise and you eventually sell it for a profit, the resulting capital gain could be larger than it would’ve been had you retained the original investment—tax-loss harvesting perhaps deferring taxes rather than eliminating them entirely as a result of this. A smaller tax bill, likewise, doesn't automatically translate into bigger lifetime tax savings.

Don't let tax savings override your investment goals.

Beyond future tax implications, a few other considerations are worth weighing:

  • Transaction costs: Brokerage fees, bid-ask spreads, and other trading expenses can eat into your potential savings.

  • Portfolio diversification: Selling investments and choosing replacements can unintentionally change your exposure to some industries or asset classes.

  • Market opportunities: Selling an investment solely to capture a tax loss can mean missing out on future gains if you can’t maintain suitable market exposure.

Ultimately, tax-loss harvesting should complement—not dictate—your investment strategy. A thoughtful approach considers your current tax bracket, potential future tax obligations, and long-term financial objectives before you make a move.

Final notes: making the most of investment losses

Investment losses are an oft-unavoidable part of investing but don't need to set you back completely. With the right approach, tax-loss harvesting can turn these losses into valuable tax-saving opportunities while supporting your broader financial goals. The key? Understanding when the strategy makes sense, navigating applicable tax rules, and keeping the bigger picture in mind. After all, smart tax planning isn't just about what you save today but how your decisions shape your financial future.

Thinking about harvesting losses prior to year-end? All of the rules—wash sales, basis tracking, and New Jersey limits—can compound quickly. Contact Leeds Accounting & Tax Services so we can help you capture the best savings for you, steering clear of any traps.

FAQs

Disclosure:
This article is for general informational purposes only and is not intended as tax or legal advice. Please consult a qualified professional regarding your individual situation.

Karen Beerbower, CPA

Karen is a CPA and Managing Director of Leeds Accounting.

Karen earned her law degree from Arizona State University and is a Certified Public Accountant (CPA), uniquely positioning her at the intersection of law and finance. She is also an assistant professor at William Patterson University, where she shares her expertise with future professionals. With years of experience in bookkeeping, tax returns, 1031 exchanges, and estate planning, Karen is well-equipped to lead our team and drive our mission forward.

https://www.leedsaccounting.com/our-team
Next
Next

Stay NJ, Senior Freeze, and ANCHOR, Explained