A married couple filing jointly can harvest more than $90,000 of investment profits in a single year and owe exactly $0 in federal tax.
Most investors treat every profitable asset sale in a taxable account as an automatic 15% or 20% penalty. In reality, federal rate tables carve out a dedicated 0% long-term capital gains bracket that triggers whenever your taxable income drops below annual statutory thresholds.
Taking deliberate advantage of temporary career breaks, early retirement, or low-income years allows you to reset your cost basis permanently with zero federal tax liability. You only need to measure your bracket headroom, account for state tax traps, and execute the trades before December 31.
Federal 0% Capital Gains Tier — Core Rules
How the 0% Long-Term Capital Gains Tier Works

The federal 0% capital gains rate eliminates taxes on profits from investments held over a year, provided your total taxable income stays below specific annual limits.
Qualifying for these long-term rates requires holding an asset in a taxable brokerage account for at least 366 days. Eligibility hinges on your taxable income – what remains after taking either the standard deduction or itemized deductions off your gross income – rather than your starting gross salary or business revenue.
The IRS adjusts these bracket ceilings each year.
Check the published IRS tax tables for the exact single and married filing jointly thresholds, which establish the statutory line between the 0% tier and the 15% capital gains bracket.
Under these rules, a single filer with modest taxable income who sells an appreciated index position generating $20,000 in long-term gains owes exactly $0 in federal capital gains tax. That investment profit is locked in clean, permanently removing any future federal tax liability on that growth.
The Mechanics of the 0% Federal Rate
Key thresholds governing long-term capital gains treatment
Ordinary Income Fills Your Lower Brackets First

Ordinary income absorbs your lowest tax brackets before capital gains enter the calculation, which directly limits how much 0% room remains for investment sales.
Under IRS stacking rules, ordinary earnings form the foundation of your tax return. Wages, bank interest, pension payments, and distributions from traditional pre-tax retirement accounts fill the zero and low-percentage brackets first, rather than sitting in a separate, isolated bucket beside your capital gains.
Capital gains and qualified dividends stack on top.
Because gains sit above ordinary income, even a modest salary or a few freelance consulting fees can push your total income past the 0% ceiling. Every dollar of capital gain pushed above that statutory line is taxed at the 15% federal rate instead of qualifying for zero tax.
Fortunately, deductions work in your favor. Claiming the standard deduction or itemizing expenses wipes out an equal amount of ordinary income from the bottom, creating extra space for your capital gains to settle inside.
⚠️ COMMON MISTAKE
Stacking Without Factoring the Standard Deduction
Do not count your gross wages against the 0% cap. Always subtract the standard deduction from your ordinary income first to find your true available headroom for harvesting gains.
The Low-Income Windows That Create 0% Opportunities

Specific transitional periods in your career create temporary drops in ordinary earnings that open up valuable space in the federal 0% bracket.
The most predictable window occurs during early retirement bridge years. Between leaving full-time work and turning 70, before claiming Social Security benefits and before mandatory Required Minimum Distributions kick in from traditional retirement accounts, taxable ordinary income often drops to near zero for several consecutive calendar years.
Mid-career disruptions offer similar openings. Spending a year in full-time graduate school, taking extended unpaid parental leave, or taking a planned career sabbatical reduces wage income enough to qualify for the zero-percent tier.
Starting a new business venture provides another common opening.
Early operational expenses and business deductions frequently offset initial revenue, keeping personal taxable distributions low. Higher earners routinely miss these windows by waiting until April to review taxes, failing to harvest gains before the strict December 31 calendar deadline locks the year.
0% Tax Windows — Execution Mechanics
🌅 Pre-RMD Bridge
Harvest gains to bracket ceiling and rebuy immediately; wash-sale rules apply only to losses
🎒 Sabbatical / Leave
Apply the standard deduction against part-year wages first to maximize zero-rate headroom
💼 Startup Loss Years
Pass-through business deductions directly reduce AGI to create temporary capital gain capacity
🗺️ State Tax Watchout
Federal 0% status does not protect against state income taxes on realized investment gains
Settlement Rule
Execute trades before the final trading days of December to ensure settlement completes before year-end.
State Taxes and Credit Phaseouts Create Hidden Costs

A zero percent federal tax bill does not mean the transaction is entirely free once state revenue departments and benefit programs get involved.
Most state revenue agencies do not mirror the federal zero percent bracket, taxing long-term investment gains at their regular state rates between 3% and 9%. A $40,000 gain that owes nothing to the federal government can still generate a surprise $2,400 bill on your state return.
Healthcare subsidies create an even larger hidden expense.
Realized capital gains flow directly into your Modified Adjusted Gross Income, which governs Affordable Care Act premium tax credits. Bumping that income line can reduce monthly premium assistance by thousands of dollars, while also accelerating the phaseout of higher education credits and income-tested municipal tax relief programs.
The net math is what matters.
Subtract your state income tax bill and any surrendered healthcare subsidies from the federal tax you avoided, confirming the trade leaves you ahead before you click sell.
📈 How to Execute a Clean Tax-Gain Harvest
Estimate Annual Ordinary Income
Add up your wages, interest, and distributions, then subtract your standard deduction.
Calculate Available 0% Headroom
Subtract your net taxable income from the published federal 0% bracket limit.
Identify Highly Appreciated Lots
Select specific index fund or stock shares held longer than 365 days with substantial unrealized growth.
Sell Within the Dollar Ceiling
Execute the sale so the realized profit remains strictly within your calculated headroom.
Repurchase the Position Immediately
Buy back the identical asset on the spot to reset your cost basis without waiting 30 days.
Tax-Gain Harvesting Resets Your Cost Basis for Free

You lock in a zero percent rate without altering your asset allocation by selling appreciated positions and immediately buying them back.
Unlike tax-loss harvesting, which requires a 30-day waiting period under the IRS wash-sale rule, gains face no waiting restriction. You can sell an index fund and repurchase the identical holding five seconds later, instantly stepping up your cost basis to current market value.
That accumulated growth is wiped clean forever.
For instance, selling an index fund holding with a $30,000 purchase basis at its current $50,000 market value captures $20,000 of profit. Buying it right back resets your baseline to $50,000 at zero federal tax cost, shielding that $20,000 from future taxation when you liquidate later.
Precision matters right down to the dollar.
Any realized gain that pushes above the zero percent threshold boundary gets hit with a 15% federal tax rate, so keep your total taxable income strictly inside the lower tier.
Choosing Between Low-Bracket Strategies
Tax-Gain Harvesting
- Eliminates capital gains taxes permanently in taxable brokerage accounts
- Provides accessible liquidity for investors under age 59½ without penalties
- No 30-day waiting period to buy back the same asset
- Does not shelter future dividends or yields from annual taxation
Roth IRA Conversion
- Moves pre-tax dollars into a permanent tax-free compound growth shelter
- Generates ordinary taxable income that directly fills low tax brackets
- Subject to 5-year rules and age restrictions for penalty-free earnings withdrawals
- Eliminates future Required Minimum Distributions on converted balances
Why Tax-Gain Harvesting Beats Roth Conversions in Specific Years

Tax-gain harvesting beats a Roth conversion when you need accessible cash today, because both strategies fight for the exact same low-bracket headroom. A traditional IRA conversion generates ordinary income dollar-for-dollar. That ordinary income builds from the bottom up, pushing your taxable brokerage gains straight into the 15% bracket.
Executing both at scale in the same calendar year cancels the savings.
For early retirees living off their portfolios before age 59½, gain harvesting provides liquid money without the 10% early withdrawal penalty tied to retirement accounts. Resetting your cost basis on appreciated funds frees up capital you can spend immediately, avoiding the five-year waiting rules that govern Roth conversion principal.
Roth conversions remain unmatched for multi-decade sheltering inside retirement plans. But they do nothing to solve risk in your brokerage account.
If you hold an over-concentrated taxable stock position with a $20,000 basis that has grown to $75,000, harvesting gains at 0% permanently erases a massive future tax bill. You clean up your taxable allocation for free, without tying those dollars to strict retirement age restrictions.
A zero percent tax rate is an intentional code provision. When your income dips, leaving your cost basis low is simply paying future taxes on purpose.
— Core Principle of Taxable Account Management
Frequently Asked Questions
Does the 30-day wash-sale rule apply if I sell stock for a capital gain?
No. Under IRS rules, the wash-sale rule applies exclusively to positions sold at a loss to prevent artificial tax deductions. You can sell an appreciated stock to realize gains at 0% and buy it back immediately without waiting.
Do qualified dividends count toward the 0% capital gains bracket?
Yes. Qualified dividends receive the identical preferential tax treatment as long-term capital gains and stack into the exact same 0%, 15%, and 20% brackets on top of your ordinary income.
What happens if my capital gains push me slightly over the 0% threshold?
Only the portion of the gain that exceeds the bracket ceiling is taxed at the 15% rate. The portion of your capital gains that sits below the threshold remains taxed at 0%.
Yes, it can. Capital gains increase your Modified Adjusted Gross Income, which the government uses two years later to determine Income-Related Monthly Adjustment Amount (IRMAA) surcharges for Medicare Part B and Part D.
Can I harvest capital gains at 0% inside a 401(k) or traditional IRA?
No. Capital gains rates only apply to taxable brokerage accounts. All distributions from traditional pre-tax retirement accounts are taxed as ordinary income, regardless of how long the underlying investments were held.
Setting Your Year-End Headroom Calculation
Run your numbers each November: tally your annual wages, interest, and dividend payouts, then subtract your standard deduction to establish your baseline taxable income. The remaining gap below the federal 0% limit represents your available tax-gain harvesting headroom.
Investment profits do not automatically trigger a 15% tax bill when you actively spot low-earning windows. The 0% tier is a perishable annual allowance, so execute your sell-and-buy orders before the calendar year closes to permanently lock in tax-free growth.
Review Your Taxable Brokerage Headroom Today
Check your unrealized gains and current tax bracket to see if a low-income window gives you room to reset your cost basis before year-end.

