Quick answer: Tax loss harvesting is a tax planning strategy where you sell investments at a loss to balance out capital gains from selling profitable assets. According to the IRS, harvested losses reduce taxable gains dollar for dollar, and you can deduct up to $3,000 of leftover losses against ordinary income per year. Unused losses carry over to future tax years indefinitely, helping you lower your overall tax bill.
What is tax loss harvesting and how does it work?
When you buy an investment, your purchase price is known as your cost basis. If the asset drops in value below that basis, you hold an unrealized loss on paper. Tax loss harvesting happens when you sell that asset to lock in a realized capital loss. You can then use that realized loss to wipe out taxable capital gains from other investments sold in the same tax year.
The IRS requires you to net investments by matching short-term losses against short-term gains, and long-term losses against long-term gains. Short-term assets are held for one year or less, while long-term assets are held for more than one year. If you have leftover short-term losses, they can offset long-term gains, and vice versa. Netting your positions lowers your overall taxable investment income.
This tax strategy applies only to taxable brokerage accounts. You cannot harvest tax losses inside tax-sheltered accounts like traditional IRAs, 401(k) plans, or Health Savings Accounts. When organizing your retirement accounts, it helps to review assets to exclude from Roth IRAs so you keep tax-efficient strategies focused where they belong.
What is the IRS wash sale rule?
The wash sale rule is an IRS regulation designed to stop investors from claiming artificial tax deductions. According to IRS Publication 550, a wash sale occurs if you sell a security at a loss and buy a substantially identical security within a 61-day window. This window covers the 30 days before the sale date, the sale date itself, and the 30 days after the sale date.
If you trigger a wash sale, the IRS disallows the tax loss deduction for that year. Instead of deducting the loss right away, the disallowed amount is added to the cost basis of the new security. This adjustment delays your tax benefit until you eventually sell the replacement investment in a valid trade. You cannot bypass this rule by buying the asset in a different account, such as an IRA or a spouse’s account.
To avoid a wash sale while staying invested in the market, you can buy a replacement asset that is similar but not substantially identical. For example, if you sell an index fund tracking one market index at a loss, you can buy a fund tracking a different index. Alternatively, you can wait 31 full days before repurchasing the exact same security. Watch out for automatic dividend reinvestments during this window, as they can accidentally trigger a wash sale.
How to execute tax loss harvesting in 4 simple steps
Executing this strategy effectively requires careful tracking and clear timing throughout the year. Follow these steps to harvest your losses correctly.
- Review your portfolio holdings: Look through your taxable brokerage accounts to spot investments currently trading below your original purchase price. Focus on positions with meaningful losses that comfortably exceed any trading fees.
- Calculate your realized capital gains: Check your trading history for the current tax year to total your realized short-term and long-term capital gains. Knowing your total gains helps you figure out how many losses you need to sell to offset them.
- Select replacement investments: Pick replacement assets to maintain your target portfolio allocation during the mandatory 30-day waiting period. Selecting suitable replacement funds is also a helpful step when learning how to derisk your portfolio.
- Sell positions and log transactions: Complete your asset sales before the final trading day of the calendar year. Save all transaction records so your tax preparer or tax software can report them accurately on IRS Form 8949 and Schedule D.
What are the IRS limits and rules for capital losses?
There is no annual cap on using capital losses to cancel out capital gains. You can use $50,000 in capital losses to eliminate $50,000 in taxable capital gains in the exact same year. However, if your total capital losses exceed your total capital gains, strict annual limits apply against regular earnings.
According to IRS Topic 409, individual taxpayers can deduct up to $3,000 of net capital losses against ordinary income per tax year ($1,500 if married filing separately). Ordinary income includes your job salary, freelance earnings, interest income, and self-employment earnings.
Any net loss remaining after the $3,000 ordinary income deduction does not disappear. It becomes a capital loss carryforward that you roll into future tax years indefinitely. In subsequent years, you apply the carried-over loss against new capital gains first, and then against up to $3,000 of ordinary income each year until the balance reaches zero.
| Financial Scenario | Realized Capital Gains | Harvested Capital Losses | Net Taxable Result | Annual Tax Benefit |
|---|---|---|---|---|
| Gains fully offset | $10,000 | $10,000 | $0 | Offsets $10,000 in capital gains |
| Losses exceed gains | $4,000 | $9,000 | -$5,000 loss | Offsets $4,000 gains + $3,000 income ($2,000 carries forward) |
| No gains, only losses | $0 | $5,000 | -$5,000 loss | Deducts $3,000 from ordinary income ($2,000 carries forward) |
Is tax loss harvesting right for your investment strategy?
This tax strategy provides the largest financial benefit to investors in higher income tax brackets who hold investments in taxable brokerage accounts. Because short-term capital gains and ordinary income face higher tax rates than long-term gains, harvesting short-term losses can yield substantial cash savings at tax time. Reinvesting those tax savings back into your portfolio allows your wealth to compound faster over time.
However, tax harvesting may not suit every investor. If you are currently in a low tax bracket, the immediate tax savings might be minimal. Constant harvesting also lowers the cost basis of your replacement investments, which can lead to higher taxable gains when you sell them in future years. Always weigh transaction costs, market volatility risk, and recordkeeping effort against your estimated tax savings before making trades.
Frequently asked questions
What is the main benefit of tax loss harvesting?
The main benefit is reducing your tax bill by using realized investment losses to offset taxable capital gains and up to $3,000 of ordinary income.
How much capital loss can I deduct against ordinary income each year?
According to the IRS, you can deduct up to $3,000 of net capital losses against ordinary income per year, or $1,500 if married filing separately.
What happens if I buy back a stock within 30 days of selling it at a loss?
You trigger the IRS wash sale rule, which disallows your tax loss deduction for that year and adds the loss to the cost basis of the newly purchased security.
Does tax loss harvesting apply to Roth IRAs or 401(k) accounts?
No, tax loss harvesting only applies to taxable brokerage accounts because tax-sheltered retirement accounts do not generate deductible capital losses.
This article provides general information, not financial, legal, or immigration advice.
