How to Qualify for 0% Capital Gains Tax When You Are Still Working
What "qualify" really means: a line you can move
There is no application and no form. Long-term gain is taxed at 0% to the extent your taxable income, gain included, stays at or below $49,450 for a single filer or $98,900 for joint filers in 2026 (Rev. Proc. 2025-32).
Add the $16,100 single standard deduction and the line is about $65,550 of total income for a single filer, $131,100 for a couple. Most writing stops there and says to hope your income is low.
A working seller can do more than hope. Total income is a number you partly control, and every dollar you pull out of it above the line lifts the room for 0% gain by a dollar (2026 rules).
That is the idea of this page: stack the deductions you already have access to, then spread the sale so each year fits under the higher line. For the 15% and 20% bands (Rev. Proc. 2025-32), the NIIT and the other thresholds, see the main hub at capital gains; for the plain version of 0% harvesting, see 0% capital gains harvesting.
The stacking ladder: from $25,550 of room to about $63,500
Take a single owner under 50 with $40,000 of net self-employment profit and no other income. Before any gain, the room under the 2026 line is the $65,550 of total income minus what that profit already uses. Every figure below is arithmetic from the cited 2026 limits, not an engine result.
| Step | Deduction | Ordinary income left | Room for 0% gain |
|---|---|---|---|
| Standard deduction only | none | $40,000 | $25,550 |
| Half of self-employment tax (IRC 164(f)) | $2,826 | $37,174 | $28,376 |
| Solo 401(k) employee deferral ($24,500 limit for 2026, IRS news release IR-2025-111) | $24,500 | $12,674 | $52,876 |
| Solo 401(k) employer profit sharing (about 20% of net earnings after the SE tax deduction, IRS Publication 560, 2026) | $6,196 | $6,478 | $59,072 |
| HSA, self-only coverage ($4,400 for 2026, Rev. Proc. 2025-19) | $4,400 | $2,078 | $63,472 |
Result: the room for 0% gain rises from $25,550 to $63,472, nearly two and a half times, using four moves most self-employed owners have never combined. Family HSA coverage lifts the HSA limit to $8,750 for 2026 (Rev. Proc. 2025-19), and age 55 or older adds $1,000. At 50 or older the 401(k) catch-up adds $8,000 for 2026, so $32,500 of employee deferral in all (IR-2025-111).
The next rungs: what else raises the line
- Self-employed health insurance (IRC 162(l)). Premiums for you and your family are deductible above the line, limited to the profit of the business that pays them. It is not an extra contribution, so it only helps if you pay premiums.
- Traditional IRA ($7,500 for 2026, plus $1,100 at 50 or older, IR-2025-111). Deductible only within the active-participant phase-out ($81,000 to $91,000 of MAGI for a single filer in 2026, IRC 219(g)). A Solo 401(k) makes you an active participant, and MAGI includes the gain, so this works in a spread year and usually fails in a one-year spike.
- Cash balance or defined benefit plan (IRC 404, 415(b)). For an owner with high profit this is the big lever, deductions well above the 401(k) limits, but it needs a plan actuary, a multi-year commitment and real earned income to support it.
- Charitable. A non-itemizer deduction of $1,000 single or $2,000 joint is allowed starting 2026 (IRC 170(p), added by Public Law 119-21). Larger gifts of appreciated assets to a donor-advised fund can be bunched into one year; see donor-advised funds.
- Itemizing. If mortgage interest, property tax and gifts exceed the $16,100 standard deduction, the excess lifts the line. Bunch them into the gain years.
- Capital losses. Losses offset gain dollar for dollar before it reaches the bracket test; see tax-loss harvesting.
- Prepay deductible business expenses in the last operating year, and for rental real estate use the passive loss allowance of up to $25,000 that phases out between $100,000 and $150,000 of AGI (IRC 469(i)).
The ceiling: contributions need earned income, and the sale is not earned income
Retirement deductions are capped by compensation, and for a self-employed person that means net earnings from self-employment (IRC 401(c)(2), 219(f)(1)). A gain from selling a business interest or a building is capital gain, not earnings, so it supports no contribution at all.
That is why our owner stops at about $37,922 of deductions on $40,000 of profit: the profit is spent. A W-2 employee with a $120,000 salary has more room to defer, but also a higher starting line to climb out of.
It also means the ladder only works for people who are still earning. If the sale ends the business and the paycheck, there is no profit left to shelter, which is the situation the plain 0% bracket page covers (2026 thresholds).
Why spreading the sale is half of the answer
Look at the four examples. The same $185,000 gain in one year costs $34,025 in total tax, of which $23,918 is federal and $950 is the 3.8% net investment income tax, because total income of $225,000 passes the $200,000 single threshold, which is not indexed (IRC 1411, 2026).
Spread over four years with no planning, the bill drops to $21,578. Add the ladder and it is $9,158, a difference of $24,868 against the one-year sale. All of what remains in $9,158 is Illinois, whose flat tax on the gain the engine charges whatever the federal line.
The one-year column with the same deductions (the fourth example) still costs $27,387. Moves without spreading cannot fit a $185,000 gain under a $63,472 line. The mechanism that makes spreading possible is the installment method of IRC 453: tax follows the payments. See installment sale and seller financing for the note terms that make the payments safe to wait for.
Traps that quietly shrink the room
- The 20% QBI deduction. The IRC 199A deduction (2026) is limited to 20% of taxable income minus net capital gain. Once you push ordinary income near zero, there is almost nothing left to take 20% of, so do not count on it as a rung.
- Section 1245 recapture. Gain on depreciated equipment is ordinary income, and IRC 453(i) puts it in the year of sale even if the buyer pays over several years. It sits on top of your ordinary income and eats the room. See recapture on an installment sale.
- Interest on the note. The interest portion is ordinary income, so a larger note pushes more ordinary income into each year.
- The deferral years. In 2026 a 401(k) deduction defers tax on the contribution to a later year; it does not erase it. That is a good trade when you fund it at 0% today and the withdrawal is at a lower rate later, and a poor one if it is not.
A short checklist before you set the schedule
- List this year's profit or salary and every rung above that you can reach.
- Compute the line: $65,550 for single, $131,100 for joint, plus each deduction (2026, Rev. Proc. 2025-32).
- Divide the gain by the room to see how many years a seller note needs to run.
- Confirm the recapture and interest that will land in each year.
- Have your CPA confirm the plan documents, the IRA phase-out and the state treatment before signing a note. For a sale already in motion, see capital gains tax on the sale of a business and how to reduce it.
Run your own numbers in the calculator on this page, or get the Big Sale Tax Analysis at /analysis/.
What to know
This is a planning picture, not a promise. The ladder assumes steady profit, a single filer under 50 and 2026 limits; later years use projected tables. Retirement deductions are deferrals, a cash balance plan commits you to funding it for years, and the IRA deduction can vanish when MAGI rises.
A seller note carries buyer credit risk, and state tax still applies to every dollar of gain. Your CPA should confirm each step before you rely on it.
How much tax does this sale cause? A worked example
Single filer, Illinois, $40,000 of net business profit, sells a business interest for a $185,000 long-term gain in one year. Standard deduction, no other planning. Same owner, same $185,000 gain collected as $46,250 a year from 2026 through 2029 on a seller note, still $40,000 of profit each year.
Same four-year schedule. Each year the owner takes the deductions in the ladder below ($37,922 in total), leaving $2,078 of ordinary income. The engine applies the 2026 standard deduction to that $2,078.
Same $37,922 of deductions, but the whole $185,000 gain lands in one year. Shows that the moves alone do not do it.
| Engine run | One-year sale, no moves | Same gain over four years | Four years plus pre-tax moves | One-year sale plus the same moves |
|---|---|---|---|---|
| Filing status | Single | Single | Single | Single |
| State | Illinois | Illinois | Illinois | Illinois |
| Tax years | 1 | 4 | 4 | 1 |
| Other income (wages, pension, interest) per year | $40,000 | $40,000 | $2,078 | $2,078 |
| Long-term capital gain | $185,000 | $185,000 | $185,000 | $185,000 |
| Federal income tax on the sale | $23,918 | $12,420 | $0 | $18,229 |
| Net investment income tax (3.8%) | $950 | $0 | $0 | $0 |
| State income tax on the sale | $9,158 | $9,158 | $9,158 | $9,158 |
| Total tax caused by the sale | $34,025 | $21,578 | $9,158 | $27,387 |
| Effective rate on the gain | 18.4% | 11.7% | 5.0% | 14.8% |
| Gain kept after these taxes | $150,975 | $163,423 | $175,843 | $157,613 |
Computed November 11, 2026 by the Big Sale Tax engine (engine.js yearTax): federal brackets, 0/15/20% thresholds and AMT from Rev. Proc. 2025-32 (OBBBA-adjusted) and the One Big Beautiful Bill Act (P.L. 119-21); NIIT under IRC 1411 (thresholds not indexed); state tax from the engine's state table. "Tax caused by the sale" = tax with the sale minus tax without it. Excludes selling costs, local taxes and estimated-tax timing. Education only.
How much tax would you owe? Run your own numbers
2026 law from the engine: federal 0/15/20% brackets (Rev. Proc. 2025-32), 25% cap on unrecaptured 1250 gain, ordinary rates on 1245 recapture, 3.8% NIIT over $200,000 single / $250,000 joint (IRC 1411), AMT, and your state's rules (California on the FTB 2026 schedules).
What was sold and years held only matter in a few states: Washington exempts real estate, Ohio and New Mexico treat a business sale differently, Arizona subtracts 25% for assets bought after 2011 and Oklahoma deducts gain on Oklahoma property held 5 years or more.
Tax shown is the tax caused by the sale. Excludes local taxes other than Maryland's county tax (3.2% used). Tick the active-owner box if you materially participate in the business. Education only.
Long-Term vs Short-Term Capital Gains (2026)
The one-year holding rule, the 2026 0/15/20% thresholds for every filing status, NIIT, recapture, the state layer and a worked $200,000 example: 11 months vs 13 months, and what spreading the gain can save.
Frequently asked questions
How to qualify for 0% capital gains tax?
What is the income limit for 0% capital gains tax?
How to qualify for 0% long-term capital gains tax if I sell a business?
Can a retirement plan contribution lower my capital gains tax?
Does the 0% bracket depend on my state?
Why does selling in one year ruin the 0% bracket?
Sources
- Rev. Proc. 2025-32 (2026 inflation adjustments)
- IRS: 401(k) limit increases to $24,500 for 2026, IRA limit to $7,500
- Rev. Proc. 2025-19 (2026 HSA limits)
- IRC 164 (Cornell LII)
- IRC 162 (Cornell LII)
- IRC 219 (Cornell LII)
- IRC 401 (Cornell LII)
- IRC 199A (Cornell LII)
- IRC 453 (Cornell LII)
- IRC 469 (Cornell LII)
- IRC 170 (Cornell LII)
- IRC 1411 (Cornell LII)
- IRS Publication 560, Retirement Plans for Small Business
Figures as of October 7, 2026; each rate and limit above names its source and year. Education only, not legal or tax advice.
Keep reading
0% capital gains harvesting
Fill the 0% long-term capital gains bracket on purpose each year, by harvesting gains or by spreading a sale with an installment note.
ReadInstallment sale (Section 453)
Report the gain as the buyer pays you instead of all in the year of sale, under rules that have been in the tax code for decades.
ReadSale-year phase-outs
Your gain is taxed at 15% or 20%, but in the sale year it also switches off deductions and credits that were quietly working for you.
ReadSale of a business
Why one price becomes seven tax buckets, which pieces are ordinary income, and what an active owner can keep out of the 3.8% NIIT.
ReadHow to avoid capital gains tax on a business sale
Every strategy for a business sale in one decision table: what it does to your bill, who it fits and the catch.
ReadTax-loss harvesting and the loss bank
Count every loss you already own, capital carryforwards, suspended passive losses and Section 1231 losses, and line them up against the sale gain.
ReadKnow your number before you sign.
Start with a free scope call: a short call to see whether the Big Sale Tax Analysis is worth it for your sale. No obligation.
Prefer email? Request the analysis by email.
You talk to Hans Goldstein. Enrolled Agent, admitted to practice before the IRS.