You did everything right. You kept your income moderate, sold some appreciated stock, and assumed most of your gains would land in the 0% capital gains bracket. Then you filed, and your capital gains tax was an unpleasant surprise.
How Do Capital Gains Push You Into a Higher Tax Bracket?
Capital gains and qualified dividends can quietly bump you into a higher capital gains bracket because they layer on top of taxable income in your return. When the total reaches above certain income thresholds, it can expose more of your profits to taxes than you expected. It’s a dynamic that affects any investor whose total taxable income crosses a bracket threshold.
Think of your tax return like a bucket. Ordinary income fills the lower brackets first, and your gains land in whatever space is left. That’s why a little extra income can nudge more of your investment profits into a higher capital gains rate.
What are the capital gains tax brackets for 2026?
The IRS applies three preferential rates to long-term capital gains on assets held for more than a year, and the rate you pay depends on your total taxable income. (Short-term gains on assets held a year or less are taxed as ordinary income.) For 2026, the long-term capital gains rates and income levels are:
- 0% if your taxable income is $98,900 or less (married filing jointly), $49,450 or less (single or married filing separately), or $66,200 or less (head of household).
- 15% if your taxable income exceeds those amounts up to $613,700 (jointly), $545,500 (single), $306,850 (married filing separately), or $579,600 (head of household).
- 20% once your taxable income clears those upper thresholds.
Note: These thresholds are adjusted annually for inflation. Always confirm the current tax year’s limits before making decisions.
For a married couple filing jointly, if your taxable income (after deductions) is $80,000, you still have about $18,900 of remaining room in the 0% bracket before you eclipse $98,900. Long-term gains above that amount would be taxed at 15%. That room can disappear quickly when multiple income sources are involved.
Why Is Capital Gains Tax More Complicated in Retirement?
Retirement complicates capital gains taxes because, for many retirees, it’s the first time they’re taking substantial gains, selling positions that may have appreciated for decades to help fund living expenses. This can catch them off guard because they’re often drawing income from multiple sources (Social Security, pensions, IRA withdrawals, brokerage accounts) that compete for the same bracket space, leaving less room for their gains to land tax-free.
Traditional IRA withdrawals are treated as ordinary income, so they fill the lower brackets before capital gains are added. This is something to keep in mind if you’re drawing down a large IRA in the same year you sell investments that have appreciated.
Social Security adds another layer. Up to 85% of your benefit can be subject to tax depending on your combined income, and capital gains count toward that total amount. A large gain that you take in a given year can unexpectedly make more of your Social Security benefits taxable, compounding the impact in ways that aren’t obvious when you look at the gain alone.
Then there’s IRMAA, income-related surcharges on Medicare Part B and Part D premiums. They are recalculated each year based on your income from two years earlier. Your modified adjusted gross income (MAGI) — your adjusted gross income with deductions like tax-exempt interest added back — can trigger IRMAA if it crosses certain thresholds.
Individually, each of these factors is manageable. Together, they make timing and coordination critical. That’s why the order and timing of withdrawals across account types, called tax sequencing, matters so much to retirement planning.
How Do You Know If Capital Gains Will Cost You More in Taxes?
The most direct way to anticipate the tax impact of long-term capital gains is to compare your expected taxable ordinary income against the 0% bracket ceiling for your filing status. Any remaining “headroom” is where gains can be taxed at 0%.
A few situations to watch out for:
- Multiple income streams converging at once, like a pension, Social Security, RMDs, and taxable withdrawals in the same year, will occupy your lower bracket space fast.
- A single high-income year can follow you into future Medicare bills. IRMAA surcharges are calculated on income from two years prior, so the cost shows up well after the fact.
- RMDs beginning around age 73 for most tax-deferred retirement accounts will raise your baseline ordinary income. Any gains realized on top of that from a rebalance, a property sale, or a large brokerage distribution will likely hit the 15% bracket.
Running the numbers before realizing gains is one of the most effective ways to avoid surprises. You can model your complete income picture across sources with the Boldin Planner and see exactly how much headroom you have before gains hit higher brackets.
What’s the Net Investment Income Tax, and When Does It Apply?
The Net Investment Income Tax (NIIT) is an extra 3.8% tax that applies on top of your capital gains rate. It kicks in when your MAGI exceeds $250,000 for married couples, $200,000 for singles, or $125,000 for married filing separately. The tax applies to the lesser of: your net investment income, or the amount your MAGI exceeds those thresholds
The NIIT threshold isn’t indexed for inflation, so more investors are impacted over time. Many retirees cross it each year simply because of their rising account values and required minimum distributions.
Once you’re above it, the effective rate — the total percentage you owe after combining base taxes and surcharges — on some long-term gains can reach 18.8% or 23.8%. That ends up closer to ordinary income tax levels than most people expect when they think of “preferential rates.” A large Roth conversion, a home or business sale, or a busy year of portfolio rebalancing can push you above those income levels before you realize it.
How Can You Reduce Capital Gains Tax Impact in Retirement?
The most effective way to reduce capital gains tax in retirement is to avoid absorbing too much income in a single year. That means being deliberate and strategic about when you take gains and which accounts you draw from.
All of the following strategies work together, and the Boldin Planner is built to help you model and think through the timing of each.
Spread gains across tax years
Realizing large gains all at once is often how retirees accidentally end up in a higher bracket. Selling across two or three years gives you a better chance of keeping your total income below thresholds for the 15% capital gains bracket, Social Security taxation, or the NIIT.
Be selective about which positions you sell
Within a taxable account, not every position has the same tax burden. Selling shares you purchased at the highest price first provides the income you need while keeping your tax liability lower. Positions with large gains and a lower cost basis can be held longer, harvested against losses, or donated directly to charity instead of sold.
Consider tax-loss harvesting
In taxable brokerage accounts, underperforming positions can be sold to generate losses that offset realized gains. This can substantially reduce the net capital gains that stack on top of your ordinary income each year.
Do Roth conversions in lower-income years
The years between retirement and when Social Security and RMDs kick in generally provide the best window for Roth conversions. Converting assets from traditional IRAs to Roth accounts reduces your future ordinary income, leaving more room for your long-term capital gains to land at 0% when distributions start.
Withdraw funds strategically
The order in which you draw from taxable, tax-deferred, and tax-free accounts in any given year can have real consequences for your tax bill. There’s no universal right answer because it depends on your complete income picture, Social Security timing, projected RMDs, and your asset holdings.
How Do You Model Withdrawals Before Selling or Distributing?
Before realizing gains or taking withdrawals, it’s important to model different planning scenarios. The Portfolio and Tax Planning sections of the Boldin Planner allow you to model different withdrawal scenarios and see how your projected tax liability shifts depending on the mix and timing of your income sources.
If you’re retired, you can add your Social Security projections and expected RMD schedule, and use the Roth Conversion Explorer to identify years where careful sequencing can meaningfully reduce the taxes you owe.
Capital gains tax in retirement is plannable, and the investors who approach it that way keep more of the wealth they’ve built.
Frequently Asked Questions on Capital Gains Tax
Most people won’t pay capital gains on a home sale because the IRS home sale exclusion shields the first $250,000 in profit for single filers and $500,000 for married couples filing jointly. To qualify, you need to have lived in the home for at least two of the five years before the sale. Profit above those thresholds is treated as a long-term capital gain. It layers on top of your ordinary income just like any other investment sale would.
Appreciated assets you held for a year or less are short-term gains, meaning they are taxed at your ordinary income rate. If the appreciated assets are held for more than a year, they become long-term gains that qualify for preferential rates depending on income (0%, 15%, or 20%). Just holding an appreciated asset for more than a year can drastically reduce the tax you pay.
Qualified dividends are taxed at the same preferential rates as long-term capital gains, and stack on top of your ordinary income in the same way. If your dividend income is substantial, it can eat into the space you were counting on for your capital gains to land at 0%.
You can avoid capital gains tax in retirement by planning to keep your total taxable income below the 0% bracket thresholds. For 2026, those limits are $49,450 for single filers and $98,900 for those married filing jointly. Strategic moves, like doing Roth conversions in the years before Social Security and RMDs begin, can help maintain your income within those bounds.
Many states treat capital gains as ordinary income, but rules vary by state. A handful of states, including Florida, Texas, and Nevada, have no state income tax at all. If you’re planning a large sale or thinking about relocating, it’s worth verifying how your specific state handles investment income.

