On This Page
Key Takeaways
- Harvesting sells a losing position in a taxable account so the realized loss offsets gains, while a replacement that is not substantially identical keeps the exposure.
- Realized losses offset realized capital gains first, and short-term and long-term categories are netted separately before being combined.
- The IRS limits the net capital loss that can reduce ordinary income to $3,000 per year, or $1,500 for married filing separately, with the remainder carried forward.
- A wash sale disallows the matched loss. Taxable replacements receive a basis adjustment; a replacement in the taxpayer’s IRA or Roth IRA does not.
- Compare the current tax effect with the replacement’s basis, future sale treatment and transaction costs.
What is tax-loss harvesting?
Tax-loss harvesting is the practice of selling an investment below its adjusted basis in a taxable account so the recognized loss offsets capital gains and, within limits, ordinary income. The loss enters the capital-gain and loss calculation. Each harvest runs four steps: pick the lots, keep the exposure with a replacement, clear the wash-sale window and net the result.
A harvest starts from the intended portfolio exposure. The investor identifies the shares to sell, their adjusted basis and holding period, and the replacement position or cash allocation before trading.
Formula
Recognized capital result = recognized gains − allowed losses; Other-income deduction = smaller of the positive net capital loss and the filing-status limit- Net short-term and long-term categories separately before combining them.
- The annual individual limit is $3,000, or $1,500 for married filing separately.
- Apply wash-sale adjustments before calculating the usable loss.
- Use the carryover worksheet for unused losses, including the effect of taxable income available to absorb the deduction.
Tax-loss harvesting example
An investor sells a fund position for $7,000 against $10,000 adjusted basis and has $2,000 recognized capital gains in the same year. The investor buys a $7,000 replacement that is not substantially identical, makes no other purchase inside the wash-sale window, pays no transaction charges and has enough taxable income to use the full $1,000 net-loss deduction.
- Realized loss: $7,000 sale proceeds − $10,000 cost basis = −$3,000
- Offset against gains: −$3,000 + $2,000 realized gain = −$1,000 net capital loss
- Ordinary income deduction: lesser of $1,000 and the $3,000 annual limit = $1,000
- Carryforward to later years: $1,000 − $1,000 = $0
- New position basis: $7,000, which is $3,000 below the original basis
The $3,000 loss offsets $2,000 gains and leaves a $1,000 deduction against other income, with zero carryforward in this example. The replacement begins with $7,000 basis; selling it later for $11,000 produces a $4,000 gain before sale costs.
The harvest wipes out the $2,000 gain and takes $1,000 off other income this year. The replacement’s basis sits $3,000 below the original, so that $3,000 comes back as gain when it sells. Price the tax effect at the rate that applies to each lot’s category and account.
How the wash-sale rule works
The wash-sale window includes the thirty days before the loss sale, the sale date and the thirty days after. Acquisitions of substantially identical securities, qualifying contracts or options, and purchases in the taxpayer’s IRA or Roth IRA all count.
Match the acquired shares with the loss shares. A taxable replacement receives the deferred loss in its basis. A replacement in the taxpayer’s IRA or Roth IRA disallows the loss without increasing IRA basis. Partial replacements affect the matched portion.
Check automatic dividend reinvestments, a spouse’s purchases, purchases by a corporation the taxpayer controls and every other account. Waiting until day thirty-one clears the window for the next purchase; an acquisition already made inside the window still counts.
Replacement exposure and substantially identical securities
Compare the replacement’s economic exposure with the portfolio’s intended allocation. Then test substantial identity on the securities and the transaction facts, starting with benchmark construction, holdings and legal structure. A different fund ticker or index name is only the first check.
Contracts and options can create acquisition rights relevant to the wash-sale rule. Include those positions in the same review as the shares.
How capital losses are netted and carried forward
Net short-term and long-term categories separately before combining them. An individual’s net capital loss reduces other income up to the annual $3,000 limit, or $1,500 for married filing separately.
Use the capital-loss carryover worksheet to determine the remaining amount and character. Include the taxable income available to absorb the deduction. A carryforward then participates in later years’ netting calculations.
Records and tax reporting for harvested losses
Keep the identified lots, execution prices, charges, replacement details and wash-sale adjustments together. Reconcile the broker's Form 1099-B with the full account picture before it flows to Form 8949 and Schedule D.
Compare the completed allocation with the intended one. A finished harvest leaves the replacement’s role in the portfolio, its basis and the tax result on record.
Limitations of tax-loss harvesting
- Record the replacement’s lower basis for the gain it will report later. Harvesting defers tax unless the position is later donated or receives a stepped-up basis: the replacement starts at the lower $7,000 basis, so a later sale reports a larger gain.
- Harvest in taxable accounts only. Sales inside an IRA or 401(k) create no deductible capital loss, and an IRA purchase can disallow a taxable loss with no basis increase.
- Run the wash-sale review across every account. Automatic reinvestments, a spouse’s purchases and acquisitions at other brokerages can all trigger it, and each broker’s Form 1099-B covers only its own accounts.
- Pick the replacement on its holdings, benchmark and legal structure. A different ticker leaves the substantial-identity question open, and a wash sale defers the whole $3,000 loss.
- Plan the deduction around the annual cap: net losses reduce ordinary income by at most $3,000 a year, or $1,500 for married filing separately. Count spreads and commissions on both trades too; they come out of the saving, and the example sets them at zero.
Bottom line
Tax-loss harvesting realizes a loss in a taxable account so it offsets capital gains and, up to the annual limit, ordinary income. It works best when the replacement keeps the intended exposure without being substantially identical, every account is checked across the 61-day wash-sale window, and the new position’s lower basis is recorded for the gain it will report later.
Clear answers
Frequently Asked Questions
Sources and Further Reading
- IRS Revenue Ruling 2008-5: IRA replacement
- IRS Publication 550: Wash-sale scope
- IRS Topic no. 409, Capital gains and losses
- IRS Instructions for Schedule D (Form 1040), Wash Sales
- IRS Topic no. 703, Basis of assets
- IRS: About Schedule D (Form 1040), Capital Gains and Losses
How entries are sourced, calculated and updated: editorial methodology.