You can sell an appreciated investment, recognize a real profit, and owe 0% federal long-term capital gains tax on some or all of that gain. The opportunity is especially relevant when your business has a slow year, you take a sabbatical, or you are between a business exit and your next source of income.
The catch is that the 0% rate is not based on the size of the sale, your bank balance, or your business revenue. It depends on taxable income, and ordinary income gets first claim on the available bracket. A sale that looks tax-free in isolation can become partly taxable once you add business profit, wages, interest, qualified dividends, and other income.
Capital-gain harvesting turns that moving target into a deliberate year-end decision. Done carefully, it can raise your investment basis, reduce a future tax bill, and help you rebalance a concentrated portfolio. Done casually, it can create an estimated-tax surprise or disrupt another income-based benefit.
What the 0% Capital Gains Rate Actually Covers
The preferential 0%, 15%, and 20% federal rates generally apply to net long-term capital gains: gains on capital assets held for more than one year, after eligible capital losses are netted against gains. Qualified dividends generally use the same rate bands and occupy part of the same bracket space.
For 2026, the top of the 0% long-term capital gains band is:
| Filing status | Maximum taxable income for the 0% band |
|---|---|
| Single | $49,450 |
| Married filing jointly or qualifying surviving spouse | $98,900 |
| Head of household | $66,200 |
| Married filing separately | $49,450 |
These figures are taxable-income thresholds, not gross-income thresholds. Taxable income is calculated after applicable adjustments and either the standard deduction or itemized deductions. For 2026, the basic standard deduction is $16,100 for single and married-filing-separately taxpayers, $32,200 for married couples filing jointly, and $24,150 for heads of household.
Do not simply add the standard deduction to the 0% threshold and treat the result as a universal gross-income limit. Self-employment tax deductions, retirement contributions, health-insurance deductions, qualified business income, capital-loss carryovers, qualified dividends, and other return items can all change the result.
The Stacking Rule Determines How Much Gain Fits
Think of taxable income as a container. Ordinary taxable income fills the bottom first. Qualified dividends and net long-term capital gains sit on top. Only the portion of the preferential income that fits below the 0% ceiling receives the 0% rate.
A useful planning estimate is:
Available 0% gain space = 0% threshold − projected taxable ordinary income − qualified dividends − other preferential-rate income
This is a planning shortcut, not a substitute for the Qualified Dividends and Capital Gain Tax Worksheet or Schedule D Tax Worksheet used on an actual return.
Example: A Single Consultant With a Slow Year
Suppose your projected 2026 taxable ordinary income is $31,000 after deductions. You also expect $2,450 of qualified dividends. Your estimated remaining space in the 0% band is:
$49,450 − $31,000 − $2,450 = $16,000
You own an investment lot worth $60,000 with an adjusted basis of $38,000. Selling the whole lot would realize a $22,000 long-term gain. Based on this simplified estimate, the first $16,000 would fit in the 0% band and the remaining $6,000 would spill into the 15% band.
The $60,000 of proceeds is not the taxable gain. The gain is the $22,000 difference between proceeds and adjusted basis. That distinction is why accurate lot-level basis records matter.
Instead of selling the entire lot, you might select shares with roughly $16,000 of embedded gain, leave a buffer for December income, or intentionally accept some gain at 15% because diversification is worth more than preserving a perfect 0% result.
Why Harvest a Gain When You Could Keep Deferring It?
Tax deferral is valuable, but it is not always the best objective. Harvesting a gain can improve your position in several ways.
Raise Your Basis
After you sell an appreciated investment, the gain becomes realized. If you buy the investment again, your new purchase price generally becomes the basis of the new lot. A higher basis means less taxable gain if you sell later.
For example, imagine shares with a $20,000 basis are now worth $35,000. If you realize the $15,000 gain at a 0% federal rate and repurchase at $35,000, a later sale at $40,000 would generally leave only $5,000 of post-repurchase gain rather than $20,000 of total appreciation.
Rebalance Without a Federal Capital Gains Bill
Founders and business owners often accumulate concentrated positions: employer stock, a sector-heavy portfolio, or a single fund bought over many years. A low-income year can provide room to diversify without paying the federal long-term capital gains tax that might apply in a busier year.
Use a Low-Income Window That May Not Return
Potential harvesting windows include:
- A year when business profit falls because you reinvest in staff, equipment, or product development
- A transition between selling one business and starting another
- A sabbatical or parental-leave year
- Early retirement before pensions or required distributions begin
- A year with unusually large legitimate deductions
The opportunity is annual. Unused 0% bracket space does not carry forward, while an investment's gain may grow and future income may put you in a higher band.
A Year-End Capital-Gain Harvesting Workflow
The calculation should begin with your books, not your brokerage app. A brokerage account can show unrealized gains, but it cannot reliably forecast your business profit, deductions, or income from every other source.
1. Build a Full-Year Income Forecast
Start with year-to-date business results and forecast the remaining months. Include:
- Net Schedule C profit or expected pass-through income
- Wages paid by your S corporation or another employer
- Interest and ordinary dividends
- Qualified dividends
- Rental, royalty, pension, or retirement income
- Already realized short- and long-term gains or losses
- Capital-loss carryovers from prior returns
Use a separate line for every estimate and record its source. A live profit-and-loss report is much more useful than relying on last year's return when this year's business conditions have changed.
2. Estimate Adjustments and Deductions
Project deductible retirement contributions, the deductible part of self-employment tax, eligible self-employed health-insurance costs, and either itemized deductions or the standard deduction. If the qualified business income deduction may apply, model it carefully because its interaction with taxable income can be circular and situation-specific.
The output you need is projected taxable ordinary income before the new harvested gain, plus qualified dividends and other income that uses the capital-gain bands.
3. Inventory Lots and Holding Periods
For each candidate lot, record:
- Acquisition date
- Quantity
- Current value
- Adjusted basis
- Unrealized gain
- Expected holding period on the sale date
An investment generally must be held for more than one year to produce a long-term gain. Selling one day too early can turn the gain into short-term income taxed at ordinary rates.
Confirm which basis method your broker will use before placing the order. Specific-lot identification can let you harvest the desired amount of gain more precisely than a default first-in, first-out method, but the identification needs to be completed and documented correctly.
4. Model the Whole Tax Return
Run at least three scenarios: no sale, a sale that stays below the estimated 0% ceiling, and a larger sale that intentionally enters the 15% band. Compare the total federal and state result, not just the capital-gains line.
Leave a margin for late-arriving income. December invoices paid earlier than expected, mutual-fund capital-gain distributions, bank interest, or a stronger final month can consume the space you planned to use.
5. Execute Before the Market Closes for the Year
Tax reporting generally follows the trade date for a regular securities sale, but waiting until the final minutes of the last trading day creates avoidable operational risk. Verify the calendar, account restrictions, lot selection, and order status with time to correct a mistake.
If you still want the investment, you can generally repurchase it immediately after realizing a gain. The wash-sale rule disallows certain losses when substantially identical securities are acquired within the surrounding 61-day window; it does not erase a recognized gain. Still, price movement, spreads, and trading restrictions can affect the economics.
6. Save the Evidence
Retain trade confirmations, year-end brokerage statements, Form 1099-B, acquisition records, basis adjustments, the lot-selection confirmation, and the calculation used to size the sale. If a broker reports missing or incorrect basis, those records support the correction on Form 8949.
For durable financial records, create separate accounts or metadata for realized gains, realized losses, fees, and tax lots. A plain-text accounting workflow makes the assumptions reviewable, while a dashboard such as Fava can help you compare actual income with the forecast throughout the year.
Common Mistakes That Turn a 0% Plan Into a Tax Bill
Treating Gross Proceeds as Gain
Selling $80,000 of stock does not create an $80,000 gain if the adjusted basis is $65,000. Conversely, missing basis can make a broker statement appear to show far more gain than you actually earned. Reconcile basis before deciding how many shares to sell.
Forgetting That Qualified Dividends Use the Same Space
Qualified dividends receive preferential rates, but they also fill the capital-gain bands. A $5,000 year-end dividend can reduce your 0% harvesting room by roughly $5,000.
Harvesting a Short-Term Gain
The 0% long-term rate generally does not apply to assets held for one year or less. Check the exact acquisition date and any special holding-period rules instead of trusting a portfolio label.
Assuming Every Business-Asset Gain Is a Long-Term Capital Gain
Inventory sales produce ordinary business income. Depreciation recapture can make part of an equipment or real-estate gain taxable at ordinary or special rates. A business sale may allocate proceeds across inventory, equipment, goodwill, covenants, and other assets with different tax treatment. Do not apply the investment-portfolio shortcut to an asset sale without modeling the allocation.
Ignoring Capital Losses and Carryovers
Current and carried-forward capital losses net against gains. That can be useful, but it changes how much gain you need to realize to use the 0% band. Review the prior return and current realized activity before placing a trade.
Confusing 0% Federal Tax With No Consequences
A gain taxed at 0% is still income on the return. It may affect state income tax, marketplace health-insurance assistance, taxation of Social Security benefits, education benefits, or other income-based calculations. States do not necessarily follow the federal preferential rates.
Large gains can also interact with the separate 3.8% Net Investment Income Tax once modified adjusted gross income exceeds its statutory threshold. The NIIT thresholds are $200,000 for single and head-of-household filers, $250,000 for joint filers and qualifying surviving spouses, and $125,000 for married taxpayers filing separately.
Neglecting Estimated Taxes
Even when the federal tax on the harvested portion is 0%, another part of the transaction or your state return may generate tax. Individuals who expect to owe $1,000 or more at filing generally need to consider withholding or estimated payments. Recalculate after the sale instead of assuming the brokerage transaction requires no cash-tax planning.
Cases That Need Extra Review
The simple 0% framework is designed for common long-term stock, fund, and similar capital gains. Get tailored advice before acting when the transaction involves:
- Collectibles, which can face a maximum 28% rate
- Unrecaptured Section 1250 gain from depreciated real property, which can face a maximum 25% rate
- Qualified small business stock and the Section 1202 rules
- Incentive stock options or alternative minimum tax exposure
- Cryptocurrency with incomplete basis records
- A partnership interest, installment sale, opportunity-zone investment, or business asset sale
- A move between states during the year
The goal is not to force every gain into a generic worksheet. It is to identify a potentially valuable window, quantify it with complete records, and recognize when specialized rules take over.
Your 2026 Decision Checklist
Before harvesting a gain, confirm that you can answer yes to each question:
- Have you projected full-year taxable income rather than using gross business revenue?
- Have you included qualified dividends and gains already realized in every account?
- Have you checked capital-loss carryovers on the prior return?
- Is the selected asset long-term on the intended trade date?
- Is the adjusted basis supported at the tax-lot level?
- Have you modeled federal tax, state tax, NIIT, and income-based benefits?
- Have you left room for unexpected year-end income?
- Have you planned any estimated payment or additional withholding?
- Will you retain the calculation and trade records with the year's books?
The 0% rate is not a loophole. It is a normal part of the federal tax structure, and small business owners with variable income are unusually likely to have years when it matters. The advantage comes from seeing the low-income year before it closes and having records accurate enough to use it confidently.
Keep Your Tax Planning Records Clear
Capital-gain harvesting works only when your business income, investment basis, and realized transactions tell one consistent story. Beancount.io offers transparent, version-controlled, AI-ready plain-text accounting so you can preserve that story without black boxes or vendor lock-in. Get started for free and keep each tax-planning decision tied to auditable records.