Learn how tax-loss harvesting can offset capital gains, how wash-sale rules work, and what California investors should consider.
Tax-loss harvesting is the deliberate sale of an investment below its adjusted basis to realize a capital loss that may offset capital gains or, within annual limits, other income. An investor may purchase a different investment to maintain market exposure, but the strategy must account for wash-sale rules, investment risk, transaction costs, and future tax consequences.
The technique does not erase an economic loss or guarantee permanent tax savings. It often changes the timing of tax and can reduce the basis of a replacement position. Investment goals should remain primary.
Capital gains and losses are first separated by holding period. Short-term items are netted together, and long-term items are netted together. If one category is a gain and the other a loss, the two net amounts are then combined.
If total capital losses exceed capital gains, an individual may generally deduct up to $3,000 of net capital loss against other income each year, or $1,500 if married filing separately. The unused amount carries forward while retaining short- or long-term character.
Example: Elena has a $14,000 long-term gain. She sells another investment with a $6,000 long-term loss. Her net long-term gain becomes $8,000 before considering other Schedule D items. Harvesting the loss reduced current net gain by $6,000, but Elena also gave up the old position and may recognize future gain on a replacement investment.
A wash sale generally occurs when stock or securities are sold at a loss and substantially identical stock or securities are acquired within 30 days before or after the sale. This creates a 61-day testing window centered on the loss sale. Acquiring a contract or option to buy the security can also trigger the rule.
The rule can apply when a spouse or a corporation controlled by the taxpayer buys the replacement. It can also apply across brokerage accounts even when no single broker reports the full adjustment. Automatic dividend reinvestments are an easy-to-miss purchase.
For a replacement in a taxable account, the disallowed loss is generally added to the replacement shares' basis, and the old holding period carries over. The loss is usually deferred, not permanently lost. If substantially identical shares are acquired in an IRA or Roth IRA, the disallowed loss is not added to IRA basis, creating a potentially harsher result.
"Substantially identical" is a facts-and-circumstances standard. Different companies' stock is ordinarily not identical, but funds tracking the same or very similar index require careful analysis. There is no universal IRS-approved list of replacement funds.
A loss is less useful when existing carryovers already exceed likely gains, the investor is in a low capital-gain bracket, or the replacement compromises the portfolio. Offsetting long-term gain can trade a current 0% or 15% rate for future gain taxed at a higher rate. Harvesting a long-term loss against short-term gain may be more valuable, but the Schedule D netting sequence — not the investor's label — controls.
Tax-advantaged accounts generally do not produce deductible capital losses. Selling inside an IRA or 401(k) does not ordinarily create a Schedule D loss. Traders with a valid Section 475 mark-to-market election, straddles, options, cryptocurrency, mutual-fund distributions, and business assets can involve different rules.
Current statutory wash-sale rules focus on stock and securities. Digital assets can require different analysis under current law, but Congress or Treasury could change that result; economic substance, related transactions, and reporting records still matter.
Federal capital-loss limitations and wash-sale adjustments flow through Form 8949 and Schedule D. Brokers may show certain same-account wash-sale disallowances in Form 1099-B box 1g, but taxpayers remain responsible for adjustments the broker did not detect.
California generally follows federal capital gain and loss mechanics but taxes gains at regular state rates. State and federal basis or carryovers can differ, so harvesting should be modeled separately for each return. California Schedule D (540) is used when state gains or losses differ from federal amounts.
Heath Income Tax can help investors reconcile capital-loss carryovers, identify wash-sale adjustments, and evaluate federal and California tax effects.
Must I wait 31 days to reinvest?
Not necessarily if buying a genuinely non-identical investment, but buying substantially identical stock or securities within the 61-day window can disallow the loss.
Can harvested losses offset dividends?
Losses first offset capital gains. A remaining net capital loss can generally offset up to $3,000 of other income, which may include dividend income in the overall tax calculation.
Does a wash sale mean the loss disappears forever?
Often it is deferred through basis in taxable replacement shares. IRA replacement purchases can produce a different and less favorable result.
The definitions and examples on this page are for informational purposes only and do not constitute tax advice. Tax laws change frequently and individual circumstances vary. Consult a qualified tax professional before making decisions based on this content.
Click a question or ask us your own.
Ask Us a Question
Message Sent!
Thank you — we'll get back to you as soon as possible.