Tax Strategies
Capital Gains Timing: Using the 0% Bracket, Losses, and Holding Periods to Lower the Tax
How capital gains stack on other income, when gains can be taxed at 0%, how losses and the wash-sale rule work, and the timing tools that lower capital gains tax.
Capital gains are the most controllable income most people have. Wages arrive on the employer's schedule and business profit follows the business, but the year a gain is realized, and often its size and character, is usually the owner's choice. That control is the basis of capital gains planning.
This guide covers how capital gains are taxed alongside other income, when gains can be taxed at 0%, how losses and the wash-sale rule work, and the timing tools that move gains into cheaper years. It covers the tax treatment only. Whether to buy, hold, or sell any particular investment is a question for your investment advisor. Current breakpoints for every filing status are on our tax planning reference.
Short-term vs. long-term
The holding period decides the rate:
- Short-term, assets held one year or less: taxed at ordinary income rates, up to 37%.
- Long-term, assets held more than one year: taxed at 0%, 15%, or 20%, depending on taxable income.
A gain realized on day 366 instead of day 365 can cut the federal rate on that gain roughly in half for someone in the higher brackets. Before selling any appreciated asset near the one-year mark, check the purchase date.
A few categories have their own long-term rates: collectibles such as art, coins, and precious metals top out at 28%, and unrecaptured Section 1250 gain, the depreciation portion of a real estate gain, tops out at 25%.
How gains stack on top of other income
Ordinary income fills the brackets first. Long-term gains and qualified dividends are layered on top, and each dollar of gain is taxed at the rate for the band it lands in.
For 2026, the 15% rate starts above $98,900 of taxable income for married couples filing jointly, and the 20% rate starts above $613,700. For single filers, the breakpoints are $49,450 and $545,500.
Consider a married couple with $80,000 of taxable ordinary income who realizes $50,000 of long-term gain in 2026:
- The first $18,900 of the gain fills the space up to $98,900 and is taxed at 0%.
- The remaining $31,100 is taxed at 15%, or $4,665.
The same couple with $30,000 of taxable ordinary income would pay nothing on the full $50,000 gain. Gains do not push ordinary income into a higher bracket, but ordinary income pushes gains out of the 0% band.
The 0% bracket
Because the standard deduction comes off before the brackets apply, the 0% rate reaches further than the breakpoint suggests. A married couple with no other income in 2026 can realize about $131,100 of long-term gains, the $98,900 breakpoint plus the $32,200 standard deduction, and owe no federal income tax on them. For 2027, the same calculation gives about $135,300 ($102,100 plus the $33,200 standard deduction).
The households that can use this most:
- Early retirees before Social Security and required distributions begin.
- Owners in a low-profit or loss year for the business.
- People between jobs, on sabbatical, or in school.
- Adult children and parents in lower brackets, when appreciated assets are given to them before a sale. Two cautions: the kiddie tax taxes a child's unearned income above a small threshold at the parents' rate, through age 18, or 23 for full-time students; and gifts above the annual exclusion require a gift tax return.
Gain harvesting. In a year with room in the 0% band, selling appreciated long-term holdings and buying them back immediately raises the basis at no tax cost. The wash-sale rule applies only to losses, not gains, so the repurchase is allowed. The higher basis reduces the gain on a future sale in a higher-income year.
Watch the side effects. Even 0% gains increase AGI, which can raise the taxable portion of Social Security, reduce marketplace premium tax credits, increase Medicare premiums two years later, and phase out the senior deduction. Run the full return, not just the gains.
Capital losses
Capital losses net against gains in a set order: short-term losses against short-term gains, long-term against long-term, then any net loss in one category against net gain in the other. If the year ends with a net capital loss:
- Up to $3,000 ($1,500 married filing separately) offsets ordinary income.
- The rest carries forward indefinitely, keeping its short-term or long-term character.
Realizing losses deliberately. Selling holdings with unrealized losses before year-end creates losses that offset gains realized elsewhere, including gains from a business sale or real estate. Losses offsetting short-term gains save tax at ordinary rates; losses carried forward can offset gains in later years.
Losses that do not count: personal-use property such as a home, car, or boat, and losses inside IRAs, 401(k)s, and other retirement accounts.
The wash-sale rule
A loss on stock or securities is disallowed if you buy substantially identical securities within 30 days before or after the sale, a 61-day window. The disallowed loss is added to the basis of the replacement shares, so it is deferred rather than lost, with one important exception: if the replacement is bought in an IRA or Roth IRA, the loss is permanently lost.
The rule applies across all accounts you control and to purchases by your spouse. Reinvested dividends within the window can trigger a partial wash sale. Under current law, the wash-sale rule is written for stock and securities, and digital assets treated as property have generally not been subject to it, although proposals to extend it have been introduced. Brokers began reporting digital asset sales on Form 1099-DA starting with 2025; see our crypto tax guide.
Other timing tools
Installment sales. When a buyer pays over several years, gain is generally recognized as payments are received, which can keep more of the gain in lower brackets each year. Depreciation recapture is taxed up front, and the seller carries the buyer's credit risk. See selling a business.
Specific identification of lots. When you sell part of a position bought at different times and prices, you can identify which lots are sold, choosing high-basis lots to minimize gain or long-term lots for the lower rate. The election must be made with your broker at the time of sale; otherwise the broker defaults to first-in, first-out.
Charitable gifts of appreciated assets. Giving long-term appreciated assets directly to charity avoids the gain entirely and, if you itemize, produces a deduction at fair market value. See charitable giving under the 2026 rules.
Step-up at death. Assets held until death receive a basis equal to their value at death, and the unrealized gain is never taxed. For older owners with highly appreciated assets, deciding which assets to sell and which to keep is partly a tax decision. Assets given during life carry over the donor's basis instead. Details and exceptions are in our guide to the basis step-up at death.
Qualified Opportunity Funds. Reinvesting a capital gain in a qualified opportunity fund defers the gain, and gain on the fund investment itself can be excluded after ten years. The program became permanent under the 2025 tax law, with new zone designations beginning in 2027.
Qualified small business stock. Gain on qualifying C-corp stock held long enough can be partly or entirely excluded under Section 1202. See the QSBS walkthrough.
Fund distributions. Mutual funds distribute realized gains to shareholders, usually in December, and those distributions are taxable in a taxable account even if reinvested. Buying shares just before a distribution date means paying tax on gains you did not share in.
The home sale exclusion
Up to $250,000 of gain ($500,000 married filing jointly) on a principal residence is excluded if you owned and lived in the home for at least two of the five years before the sale. Partial exclusions are available after shorter periods for job changes, health, and certain unforeseen circumstances. Depreciation claimed for a home office or rental use after May 6, 1997 is taxable as unrecaptured Section 1250 gain, and periods of nonqualified use, such as renting the home before living in it, can reduce the exclusion.
The NIIT and state tax
Above modified AGI of $200,000 (single) or $250,000 (married filing jointly), the 3.8% Net Investment Income Tax applies to capital gains as well, so the top federal rate on long-term gains is effectively 23.8%. Gains on the sale of an active business you materially participate in are generally excluded.
Most states tax capital gains as ordinary income, with no preferential rate, and a few have no income tax at all. Washington taxes long-term capital gains above an annual exemption at its own rates. A gain realized after a genuine move to a no-tax state may avoid state tax, but states scrutinize moves timed around a sale.
A year-end checklist
- Project taxable income for the year and identify room in the 0% and 15% bands.
- Check holding periods on any position you plan to sell; wait past one year where it matters.
- Pair realized gains with available losses, and check the 61-day wash-sale window, including IRAs and a spouse's accounts.
- In a low-income year, consider realizing gains at 0% to reset basis.
- Use appreciated long-term assets, not cash, for charitable gifts.
- Specify lots before selling partial positions.
- Watch MAGI-based side effects: NIIT, IRMAA, the senior deduction, the SALT phase-down, and premium tax credits.
Rubric Financial builds capital gains timing into the year-end projection, so the amount, timing, and character of gains are decided against the rest of the return. Which investments to hold or sell stays with your investment advisor.
Sources
- IRS Topic 409, Capital Gains and Losses
- IRS Publication 550, Investment Income and Expenses
- IRS Publication 523, Selling Your Home
- 26 U.S.C. § 1091 (wash sales)
- 26 U.S.C. § 1(h) (capital gains rates)
- IRS Rev. Proc. 2025-32 (2026 inflation adjustments)
- IRS Rev. Proc. 2026-35 (2027 inflation adjustments)
- 26 U.S.C. § 121 (exclusion of gain on sale of principal residence)
- 26 U.S.C. § 453 (installment method)
- 26 U.S.C. § 1411 (net investment income tax)
- IRS Rev. Rul. 2008-5 (wash sale when replacement shares are bought in an IRA)
Figures are federal and current as of the date above. Tax law and inflation-adjusted amounts change; confirm current figures before acting.
Educational content, not tax, legal, investment, or accounting advice. Confirm the specifics with a CPA before acting. See our Terms.
Frequently asked questions
How do I qualify for the 0% capital gains rate?
Long-term capital gains and qualified dividends are taxed at 0% to the extent your total taxable income, including the gains, stays below the first breakpoint: $98,900 for married couples filing jointly and $49,450 for single filers in 2026 ($102,100 and $51,050 in 2027). Because the standard deduction comes off first, a married couple with no other income could realize well over $100,000 of long-term gains at a 0% federal rate.
How are capital gains taxed on top of other income?
Ordinary income fills the brackets first, and long-term gains and qualified dividends stack on top. The capital-gains rate depends on where the gains fall: 0% for the portion under the first breakpoint, 15% in the middle, and 20% above the second breakpoint. Gains also raise AGI, which can trigger the 3.8% NIIT and affect phase-outs, even when the gain itself is taxed at 0%.
How much capital loss can I deduct?
Capital losses first offset capital gains without limit. If losses exceed gains, up to $3,000 a year ($1,500 married filing separately) offsets ordinary income, and the rest carries forward indefinitely, keeping its short-term or long-term character. Losses on personal-use property, such as a home or car, are not deductible.
What is the wash-sale rule?
If you sell stock or securities at a loss and buy substantially identical securities within 30 days before or after the sale, the loss is disallowed for now and added to the basis of the new shares. The rule applies across all of your accounts, including IRAs, where the loss is lost permanently, and to purchases by your spouse. It does not apply to gains, so selling at a gain and immediately rebuying to reset basis is allowed.
How much gain can I exclude when I sell my home?
Up to $250,000 of gain ($500,000 for married couples filing jointly) on the sale of a principal residence, if you owned and used the home as your main home for at least two of the five years before the sale. The exclusion can generally be used once every two years. Gain attributable to depreciation claimed after May 6, 1997, such as for a home office or rental use, is not excludable.
About the author
Aparna Devalla, CPA, Partner, Tax & Accounting
Licensed CPA. Decades of experience in U.S. taxation, accounting, and banking. Leads the tax and accounting practice at Rubric Financial.
Guides on this topic
The same ground in slide format, if you want the three-minute version.
Tax
Year-End Tax Planning Checklist for SMB Owners
The checklist of what to confirm or do by December 31, updated for the 2026 rules: SALT phase-down, new deductions, charitable changes, and retirement deadlines.
Tax
Section 1202 QSBS: Up to $15M Gain Tax-Free
Qualified Small Business Stock can exclude up to $15M (or 10× basis) of gain from federal tax for stock issued after July 4, 2025, $10M for earlier stock. Here's eligibility, both regimes, and the holding rules.
Tax
Real Estate Tax Strategies for Small Businesses and Investors: Depreciation, 1031, REPS, and Opportunity Zones
Every real-estate tax lever the IRS actually lets small-business owners and investors pull. Cost segregation, 100% bonus depreciation, 1031 exchanges, real-estate-professional status, depreciation recapture, and opportunity zones. Which applies to your situation and how they stack.
More insights
Tax Strategies
What the 2025 Tax Law Changed for 2026 and Beyond: A Planning Guide for Owners and Families
Tax Strategies
529 Plans: A Tax Perspective on Contributions, Withdrawals, Ownership, and Estate Planning
Tax Strategies
Cost Basis Step-Up at Death: When It Applies, How It Works, and How to Plan Around It
Want this handled instead of researched?
Tell us what your business looks like and a partner at Rubric Financial will scope the work: a fixed engagement cost, a monthly retainer, or hourly, whichever fits.