Tax-Loss Harvesting in Retirement: Does It Still Make Sense After You Stop Working?
Tax-loss harvesting gets marketed as a trick for high earners who are still working, the people offsetting a big bonus or a concentrated stock win. What gets less attention is how loss harvesting changes once you stop working, when your income is lower, your capital gains are a choice, and your required minimum distributions are not.
The mechanics are the same either way. The difference is the tax bracket they land in. A loss that saves a working professional 20 percent can save a retiree almost nothing, or it can quietly shield a gain they were about to realize anyway. Knowing which situation you are in is the whole game.
This article is educational, not individualized tax or investment advice. The rules around capital losses, the wash sale rule, and Medicare income thresholds are easy to get wrong, so confirm your own situation with a qualified tax professional.
The practical takeaway
In retirement, tax-loss harvesting is less about the automatic 3,000 dollar ordinary income deduction and more about pairing losses with the capital gains you create on purpose. The same loss that is worth little in the 0 percent or 12 percent bracket can be worth far more when it offsets a taxable gain you were going to realize anyway.
What tax-loss harvesting is
Tax-loss harvesting means selling an investment that is below its cost basis to realize a loss, then using that loss on your tax return. The loss first offsets realized capital gains of the same kind, dollar for dollar. Any leftover can offset up to 3,000 dollars of ordinary income each year, and whatever remains carries forward to future years.
The catch is the wash sale rule. If you buy the same or a substantially identical security within 30 days before or after the sale, the loss is disallowed and the basis of the replacement shares is adjusted instead. The point of the rule is to stop you from selling, banking the loss, and buying the position right back. It applies whether the repurchase happens in the same taxable account or, importantly, in an IRA.
Why retirement changes the math
While you are working, harvested losses typically offset ordinary income taxed at your marginal rate, plus any gains from a concentrated position you are trimming. That is a clean, reliable benefit. In retirement, three things change the picture.
- Your income is often lower. A married couple might land in the 0 percent long-term capital gains bracket in a given year. In that bracket, realizing a loss has little to offset, and you may be better off realizing gains on purpose instead.
- Your capital gains are now a choice. You are selling to fund spending and to rebalance, so losses can be paired with gains you would have realized regardless.
- Some income is not optional. RMDs, pension payments, and Social Security arrive on their own schedule, and they can push you across brackets and Medicare thresholds in ways a working saver does not face.
The clearest case for harvesting in retirement is when a loss offsets a gain you need to realize anyway to raise cash or rebalance. The least useful case is harvesting a loss in a year when you are already in the 0 percent capital gains bracket, because there is nothing for the loss to shelter.
Gain harvesting can beat loss harvesting in low years
In a low-income year, the more valuable move is sometimes the reverse: sell winners on purpose to fill the 0 percent long-term capital gains bracket, then buy them back (or a similar position) at the higher, stepped-up basis. This resets your basis so future gains are smaller. The wash sale rule does not block this, because it applies to losses, not gains.
The risk is overshooting. Realized gains are income, and income raises your adjusted gross income, which can make more of your Social Security taxable and push you into a higher Medicare IRMAA bracket two years later. That is the hidden cost people miss. A gain harvested to save 0 percent today can trigger a Medicare premium surcharge that more than wipes out the savings.
This is where modeling matters more than rules of thumb. RetireFree's Retirement Withdrawal Calculator helps you see how realized gains and withdrawals interact with taxes, and the How Much to Retire planner lets you line those moves up against your actual spending.
The wash sale rule and other traps
- Thirty days on each side. The window covers 30 days before and 30 days after the sale, so a repurchase you made a few weeks earlier can still trip the rule.
- Substantially identical is broader than you think. Selling one S&P 500 fund and buying a different one tracking the same index can be treated as substantially identical.
- IRAs count. Buying the same security inside an IRA within the window can disallow the loss from a taxable sale.
- Dividend reinvestment. An automatic dividend reinvestment in the same holding can be an accidental repurchase that trips the rule.
- Short-term and long-term net separately. Losses offset gains of the same character first, then cross over. The character of your losses affects how much they save you.
A practical sequence to run each year
- Estimate the year's income, including RMDs, pension, Social Security, and any planned sales, so you know which capital gains bracket you are in.
- List the gains you already have to realize, such as rebalancing or a large purchase you are funding from the taxable account.
- Pair losses against those gains first. This is the highest-value use of a loss in retirement.
- Check the 0 percent bracket before realizing extra gains. If you have room, gain harvesting may be worth more than loss harvesting, but watch Social Security and IRMAA.
- Mind the wash sale window on any position you sell at a loss, including what you buy in an IRA.
Related planning resources
Tax moves like this only matter in the context of your overall retirement, including where you live and what care you might need.
- RetireCityIQ helps compare retirement cities by cost of living and state taxes, which matters because state treatment of capital gains varies widely.
- Where55 is useful if lowering housing costs is part of your plan, with 55+ and active adult community discovery.
- WhereAssistedLiving helps families research assisted living and memory care options for later-life care planning.
Bottom line
Tax-loss harvesting does not stop mattering at retirement, but it stops being a one-size-fits-all move. In low-income years the reverse strategy, gain harvesting, can be worth more, and both have to be weighed against Social Security taxation and Medicare IRMAA. The highest-value use of a loss in retirement is usually offsetting a gain you were going to realize anyway, not chasing the 3,000 dollar ordinary income deduction.
See how realized gains change your plan
Model withdrawals and capital gains together so a tax move does not quietly push you into a higher bracket or Medicare premium tier.
Frequently asked questions
What is the wash sale rule?
The wash sale rule disallows a loss if you buy the same or a substantially identical security within 30 days before or after the sale. The disallowed loss is added to the basis of the replacement shares, and the rule applies to repurchases in IRAs as well as taxable accounts.
Can you deduct capital losses in retirement?
Yes. Capital losses offset realized capital gains, and up to 3,000 dollars of leftover losses can offset ordinary income each year, with the remainder carried forward. The value of that deduction depends on your tax bracket, which is often lower in retirement.
Does tax-loss harvesting affect Social Security or Medicare?
Losses themselves do not directly increase your Social Security taxation or Medicare premiums. But the gains they offset, and any gain harvesting you do in a low-income year, count as income and can raise your adjusted gross income, which affects both Social Security taxation and future Medicare IRMAA tiers.
This article is for education only and is not individualized tax, investment, or financial advice. Capital loss, wash sale, and Medicare income rules change over time and vary by individual situation. Confirm your own strategy with a qualified tax professional.