How much capital gains can I take tax-free in retirement?
More than most people think. Long-term gains are taxed at 0% while your taxable income, gains included, stays under the 0% line, and the standard deduction comes off first. In 2027 a married couple both 65 or older with no other taxable income can sell $150,625 of gains and owe no federal tax; one person 65 or older, $75,707. Every dollar of IRA withdrawals or pension uses up a dollar of that room.
Gains you can take at 0% in 2027, without Social Security
| Other taxable income a year | Single, under 65 | Single, 65 or older | Married, both under 65 | Married, both 65 or older |
|---|---|---|---|---|
| $0 | $67,650 | $75,707 | $135,300 | $150,625 |
| $20,000 | $47,650 | $55,707 | $115,300 | $130,625 |
| $40,000 | $27,650 | $35,707+$5 tax | $95,300 | $110,625 |
| $60,000 | $7,650 | $15,707+$5 tax | $75,300 | $90,625+$8 tax |
Other taxable income is traditional IRA or 401(k) withdrawals, a pension, interest. Roth withdrawals and selling at cost don't count.
One person, 65, spending $50,000 a year from a $1,000,000 brokerage account, half of it gains.
With Social Security: a 0% rate isn't always zero tax
Gains count toward the income that decides how much of your benefit is taxed. So selling gains can make more of your Social Security taxable at your ordinary rate, even while the gains themselves are taxed at 0%.
| Other taxable income a year | Single, 67, $24,000 of Social Security | Married, both 67, $40,000 of Social Security |
|---|---|---|
| $0 | $55,307no added tax | $116,625no added tax |
| $20,000 | $35,307+$1,633 tax | $96,625+$548 tax |
| $40,000 | $15,307+$77 tax | $76,625+$1,448 tax |
For example, one person with $24,000 of Social Security and $20,000 of IRA withdrawals can take $35,307 of gains at 0%, but federal tax still goes up by $1,633, because the gains make more of the benefit taxable.
Federal income tax only, 2027 brackets and deductions (Rev. Proc. 2026-35). 65 or older includes the $6,000 senior deduction per person, which runs 2025-2028 and shrinks by 6% of income over $75,000 ($150,000 married); where the gains take income past that line, the few dollars of tax that adds are shown. From 2029 a couple 65 or older with no other income has $138,700 of room instead.
How the 0% rate works
Only long-term gains. Investments held more than a year, and qualified dividends. Short-term gains are taxed as ordinary income.
Only the gain counts. Selling $100,000 of a fund you paid $70,000 for is a $30,000 gain. The rest is your own money coming back and isn't income at all, so the room in the tables is gains, not sales.
Gains stack on top. Ordinary income fills the brackets first and gains sit above it. The deduction left over after ordinary income shelters gains too, which is why the room is bigger than the 0% line itself.
Harvest gains in low-income years. In a year with room left, you can sell at a gain and buy straight back. You pay nothing now and the higher cost basis means less gain later. The wash-sale rule only blocks losses, not gains.
Other things gains raise. Gains are part of the income that sets the marketplace health insurance credit before 65 and Medicare's IRMAA surcharges after. Most states tax gains as ordinary income.
Assumed for this page
- Standard deduction, no itemizing, no state tax, no wages; the gains are all long-term.
- Social Security rows: one person or both spouses 67, with the benefit shown for the household.
This is a model, not financial advice. A plan of your own works out the gains you can take each year from your real accounts.
Ask a different version of this question
No plan needed. The guide sets up an example household and the projection engine runs it, the same engine behind every plan.