
How to Raise Cost Basis With the 0% Capital-Gains Bracket
An investor with room in the 0% long-term capital-gains bracket may be able to sell appreciated shares, recognize the gain at a 0% federal rate, and repurchase the investment at a higher basis.
This is usually called gain harvesting. It is distinct from pairing a gain with a capital loss.
How the Basis Reset Works
Suppose an investor owns long-term shares worth $40,000 with a $25,000 basis. Selling creates a $15,000 long-term gain.
If the full gain fits inside the investor's 0% federal band, the current federal capital-gains tax on the sale may be zero. Repurchasing at $40,000 creates a new basis near the current price and starts a new holding period.
State tax and other income-based effects may still apply.
Calculate Available Room Correctly
For 2026, the maximum 0% amount is $49,450 for most single filers and $98,900 for married couples filing jointly.
Begin with taxable ordinary income. Then include qualified dividends and existing net long-term gains. The amount remaining below the threshold is the potential 0% room.
Do not subtract the threshold from gross income or assume the full threshold is available for gains.
When Raising Basis Helps
Gain harvesting can be useful when an investor expects to:
- Sell shares later for spending.
- Rebalance a taxable portfolio.
- Reduce a concentrated position over time.
- Move from a low-income year into higher-income years.
It may be less useful when the shares are likely to be donated, held for a potential basis adjustment at death, or sold after moving to a lower-tax state. Restarting the holding period can also matter.
Do Not Waste a Capital Loss Automatically
If the gain already fits in the 0% band, offsetting it with a carryforward may consume a loss without reducing current federal capital-gains tax. Model whether the loss can instead offset a short-term or higher-rate gain.
The complete Schedule D calculation controls; an investor cannot freely assign a loss to a preferred gain.
Pre-Trade Checklist
- Estimate taxable ordinary income.
- Add qualified dividends and existing gains.
- Confirm the gain is long-term.
- Model state, Medicare, Social Security, NIIT, and credit effects.
- Use specific-lot identification.
- Decide whether repurchasing fits the investment plan.
- Save the sale and purchase records.
For loss-funded gain realization, read matched-pair tax-loss harvesting. For a retirement example, see realizing gains in the 0% bracket.
Bottom Line
The 0% capital-gains band can support a higher basis without current federal capital-gains tax. The opportunity is limited by the investor's full taxable-income stack and can create other costs, so calculate the room before selling.
Official Source
