complete.tools

Tax Loss Harvesting Calculator

Calculate potential tax savings from harvesting investment losses to offset gains

What this tool does

The Tax-Loss Harvesting Calculator helps investors quantify potential tax savings by strategically selling investments at a loss. Tax-loss harvesting is a widely-used investment strategy where you sell securities that have declined in value to realize capital losses. These losses can then offset capital gains from profitable investments, effectively reducing your tax bill for the year.

This calculator analyzes your short-term and long-term capital gains, compares them against unrealized losses you could harvest, and determines the optimal tax benefit based on your filing status and income bracket. It accounts for the IRS ordering rules that govern how losses offset gains, calculates the \$3,000 ordinary income deduction limit, and computes any loss carryforward amounts for future tax years.

Key features include automatic tax bracket determination based on your ordinary income, proper categorization of short-term versus long-term gains and losses, cross-type loss application (using excess short-term losses against long-term gains and vice versa), and calculation of loss carryforward amounts that persist to future years.

How it calculates

The calculator follows IRS ordering rules for applying capital losses:

Step 1: Short-term losses first offset short-term gains, and long-term losses first offset long-term gains.

Step 2: Excess short-term losses offset long-term gains. Excess long-term losses offset short-term gains.

Step 3: Net capital losses up to \$3,000 (\$1,500 if married filing separately) can deduct against ordinary income.

Step 4: Remaining losses carry forward indefinitely to future tax years.

Tax savings are calculated using these formulas: - Short-term gain offset savings = (ST gains offset) x (Marginal tax rate) - Long-term gain offset savings = (LT gains offset) x (LTCG rate: 0%, 15%, or 20%) - Ordinary income deduction savings = (min of \$3,000 or net loss) x (Marginal tax rate) - Total Tax Savings = Short-term savings + Long-term savings + Ordinary income savings

Short-term capital gains (held one year or less) are taxed at ordinary income rates, while long-term capital gains benefit from preferential rates of 0%, 15%, or 20% depending on your taxable income and filing status.

Understanding the Wash Sale Rule

The wash sale rule is a critical IRS regulation that every tax-loss harvester must understand. Under IRC Section 1091, you cannot claim a tax loss if you purchase a "substantially identical" security within 30 days before or after selling at a loss. This 61-day window (30 days before, the sale date, and 30 days after) is designed to prevent investors from claiming artificial tax losses while maintaining essentially the same market position.

What triggers a wash sale: - Buying the same stock or security within the 61-day window - Purchasing a substantially identical mutual fund or ETF - Acquiring the security in your IRA or other tax-advantaged account - Having your spouse purchase the same security in their account - Receiving the security through dividend reinvestment plans

Consequences of a wash sale: - The disallowed loss is added to the cost basis of the replacement shares - Your holding period for the replacement shares includes the original shares' holding period - The loss is deferred, not permanently lost, until you eventually sell without triggering another wash sale

Strategies to avoid wash sales while maintaining market exposure: - Purchase a similar but not substantially identical security (e.g., a different company in the same sector) - Wait 31 days before repurchasing the same security - Buy a broader market index fund instead of individual stocks - Consider tax-loss harvesting across different asset classes

Who should use this

This calculator is valuable for:

1. Active investors with taxable brokerage accounts who have both winning and losing positions and want to optimize their tax situation before year-end.

2. Financial advisors and wealth managers helping clients implement tax-efficient investment strategies and quantify the benefits of tax-loss harvesting recommendations.

3. High-income earners seeking to reduce their tax liability through strategic realization of investment losses, particularly those in the 32%, 35%, or 37% federal tax brackets.

4. Retirees managing portfolio withdrawals who want to minimize taxes on investment gains while potentially creating carryforward losses for future years.

5. Tax professionals estimating year-end tax planning opportunities for clients with significant investment portfolios.

6. Self-directed investors learning about tax-efficient investing who want to understand the mechanics of how losses offset gains.

Worked examples

Example 1 - Basic Loss Harvesting: An investor in the 24% marginal tax bracket has \$8,000 in short-term capital gains from trading and \$5,000 in unrealized short-term losses. By harvesting the losses: - Losses offset \$5,000 of short-term gains - Tax savings = \$5,000 x 24% = \$1,200 - Remaining taxable short-term gains = \$3,000

Example 2 - Cross-Type Offsetting: A married couple filing jointly with \$150,000 income has \$10,000 in long-term gains and \$15,000 in short-term losses available. - Short-term losses first offset short-term gains: \$0 (no ST gains) - Excess \$15,000 ST losses offset \$10,000 LT gains (would have been taxed at 15%) - LT gain tax saved = \$10,000 x 15% = \$1,500 - Remaining \$5,000 loss: \$3,000 deducts from ordinary income (22% bracket) - Ordinary income tax saved = \$3,000 x 22% = \$660 - Total tax savings = \$1,500 + \$660 = \$2,160 - \$2,000 carries forward to next year

Example 3 - High-Income Investor: Single filer with \$500,000 income has \$50,000 in long-term gains and \$20,000 in long-term losses. - Losses offset \$20,000 of long-term gains - At 20% LTCG rate: \$20,000 x 20% = \$4,000 tax savings - Net taxable long-term gains = \$30,000

Limitations

This calculator provides estimates based on federal tax rules and has several limitations:

- Does not account for state income taxes, which vary significantly and may have different capital gains treatment - Assumes all gains and losses are from securities; collectibles and real estate have different tax rates - Does not factor in the 3.8% Net Investment Income Tax (NIIT) that applies to high-income taxpayers - Cannot detect wash sales; users must track their own trading activity to ensure compliance - Uses current year tax brackets; tax laws and rates may change - Does not consider AMT (Alternative Minimum Tax) implications - Assumes user has sufficient income to benefit from the ordinary income deduction - Does not account for prior year carryforward losses

FAQs

Q: When is the best time to harvest tax losses? A: Most investors review their portfolios in late November or December to implement tax-loss harvesting before year-end. However, opportunities can arise throughout the year during market downturns. Be mindful of the wash sale rule's 30-day windows.

Q: Can I harvest losses in my IRA or 401(k)? A: No. Tax-loss harvesting only works in taxable accounts. Gains and losses in tax-advantaged retirement accounts are not recognized for tax purposes until withdrawal.

Q: What happens if I have more losses than gains? A: Excess losses up to \$3,000 per year (\$1,500 if married filing separately) can deduct against ordinary income like wages. Any remaining losses carry forward indefinitely to future tax years.

Q: Does tax-loss harvesting work with cryptocurrency? A: Yes. Cryptocurrency is treated as property by the IRS, and gains and losses are subject to capital gains rules. Notably, the wash sale rule currently does not apply to cryptocurrency, though legislation may change this.

Q: Should I sell winning positions to lock in low tax rates? A: Sometimes. If you're in the 0% long-term capital gains bracket, you might benefit from selling appreciated assets to "reset" your cost basis with zero tax. This is called tax-gain harvesting.

Q: How do I track my cost basis for tax-loss harvesting? A: Most brokerages report cost basis to the IRS and provide it on Form 1099-B. For older positions or transferred securities, you may need to track original purchase prices manually.

Explore Similar Tools

Explore more tools like this one:

- Capital Gains Tax Calculator — Estimate your tax liability for asset sales based on... - Cryptocurrency Tax Calculator — Estimate capital gains taxes on cryptocurrency trades by... - Tax-Equivalent Yield Calculator — Calculate the taxable equivalent yield of a municipal... - Tax Withholding Calculator — Estimate if your paycheck withholding is on track to... - Bitcoin Cost Basis Calculator — Calculate average Bitcoin cost basis across multiple...