Guide to Tax-Loss Harvesting: Reduce Your Investment Taxes
Learn how tax-loss harvesting works to reduce your capital gains taxes. Understand the wash sale rule, when to harvest, and how to maximize tax savings.
What Is Tax-Loss Harvesting
Tax-loss harvesting is the practice of selling investments at a loss to offset capital gains taxes on winning investments. If you sold Stock A for a $10,000 gain and Stock B for a $4,000 loss, you only pay capital gains tax on the net $6,000 gain. If your losses exceed your gains, you can deduct up to $3,000 of net capital losses against ordinary income per year. Remaining losses carry forward to future tax years indefinitely. This strategy does not avoid taxes permanently — it defers them and reduces your current tax bill, freeing up money that can continue growing in your portfolio.
The Wash Sale Rule
The IRS wash sale rule prevents you from claiming a tax loss if you buy a substantially identical security within 30 days before or after the sale. This 61-day window (30 days before, the sale day, and 30 days after) means you cannot simply sell a losing stock and immediately repurchase it. The rule also applies across accounts — selling at a loss in your brokerage and buying the same stock in your IRA within the window triggers the wash sale rule. To maintain market exposure while respecting the rule, replace the sold investment with a similar but not identical one — for example, swap an S&P 500 fund from one provider for a total market fund from another.
When to Harvest Losses
The best time to harvest losses is whenever you have appreciated investments you plan to sell and losing positions to offset them. Common opportunities arise during market downturns when many positions may be in the red. Year-end is a popular time to review your portfolio for harvesting opportunities before December 31. However, you can harvest losses any time of year. Some investors and robo-advisors practice daily or continuous tax-loss harvesting to capture every opportunity. Be mindful of your overall tax situation — if you are in a zero percent capital gains bracket, harvesting losses has no benefit and resets your cost basis lower, which could increase future taxes.
Recommended Resources
Start investing with $0 commissions on stocks and ETFs.
Automated investing tailored to your goals. Start with $1.
Sponsored · We may earn a commission at no cost to you
Implementing the Strategy
Review your taxable brokerage account (not retirement accounts — gains and losses in 401(k)s and IRAs have no tax consequence). Identify positions with unrealized losses. Determine which gains you need to offset — short-term gains are taxed at higher rates and benefit more from offsetting losses. Sell the losing position and immediately purchase a similar (but not substantially identical) investment to maintain your asset allocation. Document the loss and the replacement purchase for tax reporting. Consider working with a tax advisor to optimize the timing and amounts, especially if your tax situation involves multiple income sources or state tax considerations.
Related Free Tools
Related Articles
Frequently Asked Questions
Can I tax-loss harvest in a retirement account?
No. Gains and losses within tax-advantaged accounts like 401(k)s, IRAs, and Roth IRAs have no current tax impact. Selling a losing investment in a retirement account does not generate a deductible loss. Tax-loss harvesting only works in taxable brokerage accounts where you pay capital gains tax on realized gains.
Is tax-loss harvesting worth it?
For investors in higher tax brackets with significant gains, the savings can be substantial. Offsetting a $20,000 long-term gain at the 15 percent rate saves $3,000 in federal taxes. Offsetting short-term gains taxed at 32 percent saves even more. However, the strategy has limits — transaction costs, the effort of finding replacement investments, and the fact that it defers rather than eliminates taxes should be considered.
What is a substantially identical security?
The IRS does not precisely define 'substantially identical,' but same-company stock, options on the same stock, and mutual funds tracking the same index from the same provider are considered substantially identical. Funds tracking different indexes or the same index from different providers are generally considered different enough. For example, selling a Vanguard S&P 500 fund and buying a Fidelity total market fund is typically accepted.