What is tax-loss harvesting? How does it work?

The short answer:

Person looking at a laptop and taking notes

Jump to a section:

Key takeaways:

  1. Tax-loss harvesting (TLH) is a portfolio management strategy that involves selling investments at a loss in order to offset capital gains on other investments or to lower your overall taxable income
  2. Tax-loss harvesting can be used to either decrease capital gains taxes or offset ordinary income, but the IRS limits how much you can deduct annually
  3. To make TLH work, you have to sell depreciated investments (losers) to cancel out realized gains (winners) on investments you sold at a profit

Conventional investing advice tells us to avoid selling investments at a loss. However, sometimes there are benefits to releasing some of your holdings back into the wilds of the market, even if temporarily. Tax-loss harvesting can help.

What is tax-loss harvesting?

Tax-loss harvesting (TLH) is a portfolio management strategy that involves selling investments at a loss in order to offset capital gains on other investments or to lower your overall taxable income. When done right, this technique adds balance to your portfolio, and may even help you buy new investments, retire earlier, or possibly leave a larger legacy to your heirs.

How much in capital gains can you deduct each year?

Tax-loss harvesting can be used to either decrease capital gains taxes or offset ordinary income, but the IRS limits how much you can deduct annually.

Capital gains annual deduction limits

  • Single filers and married couples filing jointly can deduct a maximum of $3,000 annually in realized losses from ordinary income.
  • Married couples filing separately can each deduct $1,500 annually.

What else do I need to know about tax-loss harvesting?

Know your cost basis

Your cost basis is what you originally paid for an investment. Finding this value is easy if you only made one purchase. In such a case, your one-time investment serves as your cost basis. However, if you invested in a security over a period of time, as one does with dollar cost averaging, arriving at your cost basis will be a bit more challenging.

To find this number, you’ll need to know a couple things:

  • The dates you purchased each share.
  • The value of each transaction.

Once you have these facts, you can calculate the gain or loss and parse which ones classify as long-term (more than a year) or short-term (less than a year) capital gains.

Wash sale rule

Since tax-loss harvesting can present opportunities to buy new investments that may provide better performance, investors will typically purchase similar types of securities to the ones they sold to keep their risk levels and asset allocations consistent.

But there's a rule that prevents investors from selling depreciated securities and replacing them with either the same or "substantially identical" investment within 30 days before or after the sale. The IRS calls this the wash-sale rule, which prohibits investors from writing off investment losses that could potentially raise their taxes for the year.

The term "substantially identical" does not prohibit investors from buying investments in the same industry. So, for example, you can sell your shares in United Health and replace them with Blue Cross Blue Shield stock. This is also the case for mutual funds and ETFs that benchmark the same industries.

Taxable accounts only

Your retirement accounts, such as 401(k)s and IRAs, cannot be used to harvest losses. That's because they are tax-deferred, meaning they grow tax-free until you take a distribution (withdraw). Even if you have losses in a retirement account, the IRS treats these differently than taxable accounts, rendering TLH useless.

A final note: You must make all transactions in the tax year you wish to harvest losses. So, if you want to harvest losses from 2022, your transactions need to clear by December 31, 2022.

How does tax-loss harvesting work?

To make TLH work, you have to sell depreciated investments (losers) to cancel out realized gains (winners) on investments you sold at a profit. By doing so, you only owe taxes on your net profit, which is found simply by calculating the following:

Amount gained - Amount lost = Net profit

Here’s a hypothetical example to illustrate how TLH works:

Let's say in March you bought 50 shares of Hudu stock, an up-and-coming streaming service, at $50 per share for a total of $2,500. Unfortunately, by November of that same year, Hudu plummets to just $5 a share, leaving you with a mere $250 in current market value.

Knowing that your investment in Hudu was a risky one, at the same time, you also invested $10,000 in streaming giant, FlixMax, to hedge your bets. Unlike Hudu, this investment went up by 30%—representing a $3,000 gain—leaving your current market value in FlixMax at $13,000.

Since 30% is nothing to sneeze at, you decide to sell your stake in FlixMax and realize your $3,000 gain. However, since you realized your gain in less than a year (short-term gain), you will owe ordinary income tax on your profit. So, you sell your losing investment in Hudu to offset some of this gain.

But how much of this gain can be offset?

Let's go back to our net profit formula above.

Amount gained: $3,000 ($10,000 + $3,000) - Amount lost: $2,250 ($2,500 - $250) = $750.

By harvesting your losses, you lowered your tax burden from $3,000 to $750, or 75%.

Who can benefit from tax-loss harvesting?

It’s important to note that tax-loss harvesting is not reserved for just the wealthy. Everyday investors can also benefit.

Virtually anyone can benefit from tax-loss harvesting, unless you are a single filer that earns less than $40,000 or a joint filer that makes less than $80,000. In this case, you will owe nothing on long-term capital gains.

When is the best time to harvest losses?

When markets are down, opportunities arise for investors to make targeted investment changes, rebalance their portfolios, and take advantage of tax loss harvesting to ensure they take the right amount of risk for their situation.

For example, suppose an investor has a concentrated single stock position or an investment producing more volatility than expected. In that case, a falling market may be an opportune time to diversify.

One way to do this is to swap out more volatile investments and replace them with a more diversified mix. This presents the option to either realize a tax loss or at least do so with a lower tax burden than would have been possible a year ago.

Final word

Harvesting losses the right way can be challenging, so it’s best to seek the help of professionals to get it right and avoid any setbacks. To get the most out of tax-loss harvesting (and preserve your sanity), consider consulting a team of experts who live and breathe this stuff.

Want to learn more? Look no further than Facet. See how our investment management program is designed to maximize your success and achieve your desired outcomes.

Ready to get more organized and have more clarity with your money? Schedule a free call with Facet. We’ll show you how a personalized financial roadmap, built for you by a CFP® professional, can turn your money into a tool to help you live a better life today, and feel more confident about tomorrow.

Disclosures

The information, opinions, and market data presented herein are prepared by Facet Wealth, Inc. (“Facet”), an SEC-registered investment adviser, for educational and informational purposes only and does not constitute individualized investment, financial, tax, or legal advice, nor a recommendation or offer to buy or sell any security.

Market data and economic commentary referenced are obtained from sources believed to be reliable and are confirmed accurate as of the date of publication. Facet assumes no obligation to update or supplement this material to reflect subsequent market shifts or developments.

Investing involves inherent risk, including the possible loss of principal. Past performance is no guarantee of future results. Asset allocation and diversification strategies do not ensure a profit or protect against loss in declining markets. SEC registration does not imply a certain level of skill or training.

©2026 Facet Wealth, Inc. All Rights Reserved

FAQs

About Facet

Facet is a national, SEC-registered investment advisor (RIA) and consumer fintech leader dedicated to making expert financial planning accessible to everyone.

Through a transparent, flat-fee membership model, Facet provides objective guidance designed to put the member’s best interest first—always. Unlike traditional firms that often take a cut of your returns or charge by the hour, Facet’s affordable fee doesn’t change even as your money grows, helping you keep more of your own money for the life you want to live.

Facet combines user-friendly technology with a dedicated team of CERTIFIED FINANCIAL PLANNER® professionals to deliver a personalized roadmap for every aspect of a member’s financial life. This comprehensive approach covers everything from the big milestones to everyday decisions—including investment management, tax strategy, equity compensation, and retirement planning—evolving as your life and opportunities unfold. Facet’s mission is to empower individuals to move beyond “standard” advice, helping them make confident decisions and live more enriched lives through financial planning the way it should be: simple, guided, and all about you.

Explore more articles

A low-angle shot of the white marble exterior of the Federal Reserve building, featuring the engraved "FEDERAL RESERVE" title and a large stone American eagle sculpture with outstretched wings perched above the entrance.

The Fed’s September 2026 rate hike: What Warsh’s comments mean for investors

Federal Reserve Chair Kevin Warsh announced a 0.25% interest rate hike at the September 2026 FOMC meeting, marking a shift from talk to action in the fight against inflation. Warsh has spent the prior two Fed meetings saying the Fed was committed to price stability, but had refrained from actually hiking rates. However, recent economic ... Read more

6 Min Read
A senior woman sitting at a kitchen table reviewing financial paperwork and investment documents while using a laptop.

Should you still own bonds given today's market risks?

The U.S. bond market faces a number of challenges for the remainder of 2026 and into 2027, which is leaving some investors in bonds worried about whether their money is at risk. I spent many years as a bond portfolio manager earlier in my career, and I do think the bond market faces some real ... Read more

7 Min Read
A mature woman wearing glasses sitting in a brightly lit kitchen, using her smartphone while working on a laptop with financial documents nearby to review Medicare IRMAA costs.

Should you really avoid IRMAA in retirement?

It is entirely natural to feel protective over the nest egg you spent decades building. When you are living on a fixed income, seeing a sudden increase in your monthly health insurance costs can feel like a setback. However, making decisions purely out of fear of a Medicare surcharge can accidentally cost you far more ... Read more

5 Min Read

Get started

To schedule a free consultation with a Facet expert, fill out the form below and we will contact you within 24 hours.

This field is for validation purposes and should be left unchanged.
This field is hidden when viewing the form
This field is hidden when viewing the form
This field is hidden when viewing the form
This field is hidden when viewing the form
This field is hidden when viewing the form
This field is hidden when viewing the form
This field is hidden when viewing the form

By submitting this form, you acknowledge that you have directly provided the email and phone number contact information listed, further acknowledge that Facet Wealth has the option to use either method to contact you, and agree to the terms set forth in our Company Privacy Notice. Message frequency varies, and message and data rates may apply. Reply STOP to opt-out of messages, and email [email protected] for help

OR
To speak with someone now, call us at
1-888-826-6401