Tax-Loss Harvesting

By AJ Smith · February 23, 2022 · 9 minute read

We’re here to help! First and foremost, SoFi Learn strives to be a beneficial resource to you as you navigate your financial journey. Read more We develop content that covers a variety of financial topics. Sometimes, that content may include information about products, features, or services that SoFi does not provide. We aim to break down complicated concepts, loop you in on the latest trends, and keep you up-to-date on the stuff you can use to help get your money right. Read less

Tax-Loss Harvesting

Tax-loss harvesting enables investors to use investment losses to help reduce the tax impact of investment gains, thus potentially lowering the amount of taxes owed. While a tax loss strategy – sometimes called tax loss selling — is often used to offset short-term capital gains (which are taxed at a higher federal tax rate), tax-loss harvesting can also be used to offset long-term capital gains.

Of course, as with anything having to do with investing and taxes, tax-loss harvesting is not simple. In order to carry out a tax-loss harvesting strategy, investors must adhere to specific IRS rules and restrictions. Here’s what you need to know.

What Is Tax-Loss Harvesting?

Tax-loss harvesting is a strategy that enables an investor to sell assets that have dropped in value as a way to offset the capital gains tax they may owe on the profits of other investments they’ve sold. For example, if an investor sells a security for a $25,000 gain, and sells another security at a $10,000 loss, the loss could be applied so that the investor would only see a capital gain of $15,000 ($25,000 – $10,000).

While there’s more to the strategy than just a 1:1 application of losses to gains, as you’ll see in the sections below, a tax-loss harvesting strategy can be an important part of a tax-efficient investment strategy.

How Tax-Loss Harvesting Works

In order to understand how tax-loss harvesting works, you first have to understand the system of capital gains taxes.

Capital Gains and Tax-Loss Harvesting

As far as the IRS is concerned, capital gains are either short term or long term:

•   Short-term capital gains and losses are from the sale of an investment that an investor has held for one year or less.

•   Long-term capital gains and losses are those recognized on investments sold after one year.

The one-year mark is crucial, because the IRS taxes short-term investments at the much-higher marginal income tax rate of the investor. For high earners that can be as high as 37%, plus a 3.8% net investment income tax (NIIT). That means the taxes on those quick gains can be as high as 40.8% — and that’s before state and local taxes are factored in.

Meanwhile, the long-term capital gains taxes for an individual are simpler and lower. These rates fall into three brackets, according to the IRS: 0%, 15%, and 20%. Here are the rates for 2021-22, per the IRS.

Capital Gains Tax Rate

Income – Single

Married, filing separately

Head of household

Married, filing jointly

0% Up to $40,400 Up to $40,400 Up to $54,100 $80,800
15% Over $40,400 to $445,850 Over $40,400 to $250,800 Over $54,100 to $473,750 Over $80,801 to $501,600
20% Over $445,850 Over $250,800 Over $473,750 Over $501,600

As with all tax laws, don’t forget the fine print. For instance, the additional 3.8% NIIT may apply to single individuals earning at least $200,000 or married couples making at least $250,000. Also, long-term capital gains from sales of collectibles (e.g, coins, antiques, fine art) are taxed at a maximum of 28% rate; this is separate from regular capital gains tax, not in addition. Short-term gains on collectibles are taxed at the ordinary income tax rate.

Rules of Tax-Loss Harvesting

The upshot is that investors selling off profitable investments can face a stiff tax bill on those gains. That’s typically when investors (or their advisors) start to look at what else is in their portfolios. Inevitably, there are likely to be a handful of other assets such as stocks, bonds, real estate, or different types of investments that lost value for one reason or another.

“Harvesting” these capital losses is a way to reduce the pain of capital gains tax. While tax-loss harvesting is typically done at the end of the year, investors can use this strategy any time.

Bear in mind that although a capital loss technically happens whenever an asset loses value, it’s considered an “unrealized loss” in that it doesn’t exist in the eyes of the IRS until an investor actually sells the asset and realizes the loss.

The loss at the time of the sale can be used to count against any capital gains made in a calendar year. Given the high taxes associated with short-term capital gains, it’s a strategy that has many investors selling out of losing positions at the end of the year.

Example of Tax-Loss Harvesting

If you’re wondering how tax-loss harvesting works, here’s an example. Let’s say an investor is in the top income tax bracket for capital gains. If they sell investments and realize a long-term capital gain, they would be subject to the top 20% tax rate; short-term capital gains would be taxed at their marginal income tax rate of 37%.

Now, let’s imagine they have the following long- and short-term gains and losses, from securities they sold and those they haven’t:

Securities sold:

•   Stock A, held for over a year: Sold, with a long-term gain of $175,000

•   Mutual Fund A, held for less than a year: Sold, with a short-term gain of $125,000

Securities not sold:

•   Mutual Fund B: an unrealized long-term gain of $200,000

•   Stock B: an unrealized long-term loss of $150,000

•   Mutual Fund C: an unrealized short-term loss of $80,000

The potential tax liability from selling Stock A and Mutual Fund A, without tax-loss harvesting, would look like this:

•   Tax without harvesting = ($175,000 x 20%) + ($125,000 x 37%) = $35,000 + $46,250 = $81,250

But if the investor harvested losses by selling Stock B and Mutual Fund C (remember: long-term losses apply to long-term gains and short term losses to short term gains first), the tax picture would change considerably:

•   Tax with harvesting = (($175,000 – $150,000) x 20%) + (($125,000 – $80,000) x 37%) = $5,000 + $16,650 = $21,650

Note how the tax-loss harvesting strategy not only reduces the investor’s tax bill, but potentially frees up some money to be reinvested in similar securities (restrictions may apply there; see information on the wash sale rule below).

Considerations Before Using Tax-Loss Harvesting

As with any investment strategy, it makes sense to think through a decision to sell just for the sake of the tax benefit because there can be other ramifications in terms of your long-term financial plan.

The Wash Sale Rule

For example, if an investor sells losing stocks or other securities they still believe in, or that still play an important role in their overall financial plan, then they may find themselves in a bind. That’s because a tax regulation called the wash sale rule prohibits investors from receiving the benefit of the tax loss if they buy back the same investment too soon after selling it.

Under the IRS wash sale rule, investors must wait 30 days before buying a security or another asset that’s “substantially identical” to the one they just sold. If they do buy an investment that’s the same or substantially identical, then they can’t claim the tax loss. But for an investment that’s seen losses, that 30-day moratorium could mean missing out on growth — and the risk of buying it again later for a higher price.

Matching Losses With Gains

Investors must also be careful which securities they sell. Under IRS rules, like goes with like: So, long-term losses must be applied to long-term gains first, and the same goes for short-term losses and short-term gains. After that, any remaining net loss can be applied to either type of gain.

How to Use Net Losses

The difference between capital gains and capital losses is called a net capital gain. If losses exceed gains, that’s a net capital loss.

•   If an investor has an overall net capital loss for the year, they can deduct up to $3,000 against other kinds of income — including their salary and interest income.

•   Any excess net capital loss can be carried over to subsequent years and deducted against capital gains, and up to $3,000 of other kinds of income — depending on the circumstances.

•   For those who are married filing separately, the annual net capital loss deduction limit is only $1,500.

How to Use Tax-Loss Harvesting to Lower Your Tax Bill

When an investor has a diversified portfolio, every year will likely bring investments that thrive and others that lose money, so there can be a number of different ways to use tax-loss harvesting to lower your tax bill. The most common way, addressed above, is to apply capital losses to capital gains, thereby reducing the amount of tax owed. Here are some other strategies:

Tax-Loss Harvesting When the Market Is Down

For investors looking to invest when the market is down, capital losses can be easy to find. In those cases, some investors can use tax-loss harvesting to diminish the pain of losing money. But over long periods of time, the stock markets have generally gone up. Thus, the opportunity cost of selling out of depressed investments can turn out to be greater than the tax benefit.

It also bears remembering that many trades come with trading fees and other administrative costs, all of which should be factored in before selling stocks to improve one’s tax position at the end of the year.

Tax-Loss Harvesting for Liquidity

There are years when investors need access to capital. It may be for the purchase of a dream home, to invest in a business, or because of unforeseen circumstances. When an investor wants to cash out of the markets, the benefits of tax-loss harvesting can really shine.

In this instance, an investor could face bigger capital-gains taxes, so it makes sense to be strategic about which investments — winners and losers — to sell by year’s end.

Tax-Loss Harvesting to Rebalance a Portfolio

The benefits of maintaining a diversified portfolio are widely known. And to keep that portfolio properly diversified in line with their goals and risk tolerance, investors may want to rebalance their portfolio on a regular basis.

That’s partly because different investments have different returns and losses over time. As a result, an investor could end up with more tech stocks and fewer energy stocks, for example, or more government bonds than small-cap stocks than they intended.

Other possible reasons for rebalancing are if an investor’s goals change, or if they’re drawing closer to one of their long-term goals and want to take on less risk.

That’s why investors check their investments on a regular basis and do a tune-up, selling some stocks and buying others to stay in line with the original plan. This tune-up, or rebalancing, is an opportunity to do some tax-loss harvesting.

The Takeaway

Tax loss harvesting, or selling off underperforming stocks and then taking a tax credit for the loss, can be a helpful part of a tax-efficient investing strategy.

There are many reasons an investor might want to do tax-loss harvesting, including when the market is down, when they need liquidity, or when they are rebalancing their portfolio. It’s an individual decision, with many considerations for each investor — including what their ultimate financial goals might be.

If you’re ready to develop your own investing strategy, you can open an online brokerage account with SoFi Invest® and begin trading stocks, ETFs, or even crypto with as little as $10. As a SoFi member, you also get access to advice from financial professionals who can help answer your questions.

Find out how SoFi Invest can help you meet your financial goals.

SoFi Invest®
The information provided is not meant to provide investment or financial advice. Also, past performance is no guarantee of future results.
Investment decisions should be based on an individual’s specific financial needs, goals, and risk profile. SoFi can’t guarantee future financial performance. Advisory services offered through SoFi Wealth, LLC. SoFi Securities, LLC, member FINRA / SIPC . SoFi Invest refers to the three investment and trading platforms operated by Social Finance, Inc. and its affiliates (described below). Individual customer accounts may be subject to the terms applicable to one or more of the platforms below.
1) Automated Investing—The Automated Investing platform is owned by SoFi Wealth LLC, an SEC registered investment advisor (“Sofi Wealth“). Brokerage services are provided to SoFi Wealth LLC by SoFi Securities LLC, an affiliated SEC registered broker dealer and member FINRA/SIPC, (“Sofi Securities).
2) Active Investing—The Active Investing platform is owned by SoFi Securities LLC. Clearing and custody of all securities are provided by APEX Clearing Corporation.
3) Cryptocurrency is offered by SoFi Digital Assets, LLC, a FinCEN registered Money Service Business.
For additional disclosures related to the SoFi Invest platforms described above, including state licensure of Sofi Digital Assets, LLC, please visit Neither the Investment Advisor Representatives of SoFi Wealth, nor the Registered Representatives of SoFi Securities are compensated for the sale of any product or service sold through any SoFi Invest platform. Information related to lending products contained herein should not be construed as an offer or prequalification for any loan product offered by SoFi Bank, N.A.
Tax Information: This article provides general background information only and is not intended to serve as legal or tax advice or as a substitute for legal counsel. You should consult your own attorney and/or tax advisor if you have a question requiring legal or tax advice.

All your finances.
All in one app.

SoFi QR code, Download now, scan this with your phone’s camera

All your finances.
All in one app.

App Store rating

SoFi iOS App, Download on the App Store
SoFi Android App, Get it on Google Play

TLS 1.2 Encrypted
Equal Housing Lender