
How Capital Gains Are Taxed After You Retire
Fact Checked
FileTax.com content is reviewed for accuracy, timeliness, and completeness. It undergoes a structured editorial review process involving writers and expert reviewers.
More on our editorial standards
Rebekah PierceContent Writer
Alistair HoehneTax Content Reviewer
Your Takeaways:
- Capital gains are profits from selling investments like stocks, funds, or property.
- Long-term gains (held over 1 year) are taxed at lower rates (0%, 15%, or 20%), while short-term gains are taxed as ordinary income.
- Selling assets in retirement creates taxable events that increase your total income.
- Capital gains can push you into a higher tax bracket or increase overall taxes.
- Higher gains can make more of your Social Security benefits taxable.
TL;DR:If you’re using the sale of stocks, funds, or even property to fund retirement, you’ll have to pay capital gains taxes. These taxes ripple through your entire personal finance plan, raising your overall tax bill, potentially bumping you into a higher tax bracket, and sometimes making your Social Security and Medicare premiums more expensive. We’ll walk through how capital gains taxes work for retirees, and what that means for your retirement plan and managing taxes year to year. |
|---|
Retirement means more time for travel, hobbies…and sometimes, headaches about taxes. This is especially true when it comes to capital gains in retirement.
Selling stocks, mutual funds, or property from your investment accounts to pay for your retirement lifestyle? If so, then you’re probably going to face capital gains taxes. If you’re using your retirement savings and retirement funds for income, how you manage these asset sales, and how long you’ve held your investments, can spell the difference between a surprise tax bill and a smarter, tax-efficient year.
With every sale, you’re dealing with term capital gains tax rates that depend on whether you held that stock for less than a year or for the long haul. Those gains don’t just affect your federal tax; state and local taxes might get involved, too.
And the story gets more complicated with tax-advantaged accounts, tax loss harvesting, and the IRS’s ordinary income rate rules on top.
But managing your taxes in retirement means you need to understand the capital gains vs. ordinary income rules so you know how your retirement funds are taxed at every step.
What Are Capital Gains?
A capital gain is the profit you make when you sell a capital asset for more than you paid for it. Capital assets include things like stocks, bonds, mutual funds, and real estate. The initial amount you paid is called your "cost basis." The difference between the selling price and your cost basis is your capital gain.
Example: If you bought 100 shares of a stock for $10 each, your cost basis is $1,000. If you later sell all 100 shares for $30 each, your proceeds are $3,000. Your capital gain is the $2,000 difference ($3,000 sale price - $1,000 cost basis). This $2,000 is the amount that gets taxed. |
|---|
It's important to remember that this applies only to sales in taxable investment accounts. Withdrawals from tax-deferred accounts like a traditional IRA or 401(k) are taxed differently, usually as ordinary income. Withdrawals from a Roth IRA are typically tax-free.
Short-Term vs. Long-Term Capital Gains
The amount of tax you’ll pay on a capital gain depends partly on how long you owned the asset before selling it, along with your taxable income. The holding period creates two distinct types: short-term and long-term capital gains for retirement.
A short-term capital gain comes from selling an asset you've held for one year or less. These gains are taxed at your ordinary income tax rate (between 10-37%), the same rate that applies to your salary, pension payments, or traditional IRA withdrawals. This means they’re added to your other income and taxed within your regular income tax brackets.
A long-term capital gain is the profit from selling an asset you've held for more than a year. The tax treatment for long-term gains is much more favorable. The federal government taxes long-term capital gains at special, lower rates, which can be 0%, 15%, or 20%, depending on your total taxable income. For many retirees, this preferential rate makes a huge difference in their overall tax burden.
Why Retirees Trigger Capital Gains
During your working years, you might have bought and sold investments occasionally. But in retirement, selling assets often becomes a core part of your retirement income strategy. You sell appreciated assets from your taxable accounts to create the cash flow you need to cover bills, travel, or other expenses.
Every time you sell an asset for a profit, you create a taxable event. This is called a "realized gain." You could be sitting on a portfolio full of unrealized capital gains, but you don't actually incur capital gains taxes in retirement until you sell.
For instance, you might decide to sell $50,000 worth of stock from your brokerage account to supplement your Social Security and pension income for the year. If your cost basis in that stock was $20,000, you've just realized a $30,000 long-term capital gain. That $30,000 gets added to your income for the year, and you’ll need to pay capital gains tax on it.
How Capital Gains Affect Your Retirement Taxes
Realized capital gains directly increase your adjusted gross income (AGI) and, consequently, your overall taxable income. Even though long-term gains have their own favorable tax rates, they still get added to your income calculation.
This increase can push you into a higher tax bracket for your ordinary income or make more of your other income taxable. A significant capital gain can have ripple effects across your entire tax return, sometimes in ways you don't expect.
Think of your income in retirement as different buckets: you might have a Social Security bucket, a pension bucket, and a capital gains bucket. When you file your taxes, the Internal Revenue Service (IRS) pours all of them into one big container to calculate your AGI. A large capital gain makes that container much fuller, which can trigger other tax consequences.
Capital Gains and Social Security
One of the biggest surprises for new retirees is discovering that their Social Security benefits can be taxable. Whether they are, and how much is taxed, depends on your "combined income" (also called provisional income).
Your combined income is calculated by taking your adjusted gross income, adding any non-taxable interest, and then adding 50% of your Social Security benefits for the year.
Calculation: Combined Income = AGI + Nontaxable Interest + 50% of Social Security Benefits |
|---|
When you have a capital gain, it increases your AGI. This, in turn, pushes up your combined income. If your combined income crosses certain thresholds set by the IRS, up to 85% of your Social Security benefits could become taxable.
A large capital gain from selling assets could easily be the factor that makes a larger portion of your benefits subject to federal income taxes.
Capital Gains and Medicare IRMAA
Another area affected by capital gains in retirement is your Medicare premiums. Most people pay the standard Part B (medical insurance) and Part D (prescription drug) premiums. However, if your income exceeds certain levels, you'll be required to pay an Income-Related Monthly Adjustment Amount, or IRMAA.
IRMAA is an extra charge added to your monthly premiums. The Social Security Administration determines IRMAA based on the modified adjusted gross income (MAGI) from your tax return two years prior. For example, your 2026 IRMAA is based on your 2024 MAGI.
Capital gains are included in your MAGI calculation. A substantial gain from selling stocks or a property can elevate your MAGI above the IRMAA thresholds, leading to significantly higher Medicare premiums two years down the road.
Net Investment Income Tax (NIIT) for Retirement
For retirees with higher incomes, another tax to watch is the Net Investment Income Tax for retirees, or NIIT. This is a 3.8% surtax on the lesser of your net investment income or the amount your MAGI exceeds certain thresholds. This tax applies to individuals, estates, and trusts.
Net investment income includes the following types of income components:
- Capital gains
- Dividends
- Interest
- Rental and royalty income
- Annuity income
The NIIT applies if your MAGI is over:
- $200,000 for single or head of household filers
- $250,000 for married couples filing jointly
- $125,000 for married filing separately
Example: if you’re a single filer with a MAGI of $220,000, which includes $50,000 of net investment income, the NIIT would apply. The tax is calculated on the lesser of your investment income ($50,000) or the amount your MAGI exceeds the threshold ($220,000 - $200,000 = $20,000). In this case, you'd owe an additional 3.8% on $20,000, which is $760. |
|---|
You calculate and report this tax on Form 8960.
Additional Medicare Tax
The Additional Medicare Tax is often confused with the NIIT, but it’s completely different. This is a 0.9% surtax on earned income, not investment income. It applies to wages, salaries, and self-employment income that exceed the same thresholds as the NIIT ($200,000 for single, $250,000 for married filing jointly).
While many retirees don't have earned income, this tax applies to those who continue to work part-time, consult, or run a small business. If you earn income from work and also have significant investment income, you could potentially be hit with both the NIIT and the Additional Medicare Tax in the same year. This tax is reported on Form 8959.
What About Capital Losses?
Not every investment is a winner. When you sell an asset for less than its cost basis, you have a capital loss, which you can use to offset your capital gains. Short-term losses first offset short-term gains, and long-term losses first offset long-term gains. If you have any losses left over, you can use them to offset the other type of gain.
If your capital losses exceed your capital gains for the year, you can deduct up to $3,000 of the excess loss against your other income, like your pension or salary. If your net loss is more than $3,000, the remainder can be carried forward to future tax years to offset future gains or be deducted at a rate of $3,000 per year. This process is known as a capital loss carryforward.
Capital Gains Tax Forms

When you deal with capital gains, you'll see a few specific forms come tax time.
- Form 1099-B, Proceeds from Broker and Barter Exchange Transactions: Your brokerage firm sends you this form. It details your asset sales from the year, including sale dates, proceeds, and cost basis information.
- Form 8949, Sales and Other Dispositions of Capital Assets: You use the information from your 1099-B to fill out this form. You’ll list each individual sale here, separating short-term and long-term transactions.
- Schedule D, Capital Gains and Losses: The Schedule D for retirement is the key summary form. The totals from Form 8949 flow here, where you calculate your net capital gain or loss for the year. That final number then goes onto your main Form 1040 tax return.
- Form 8960, Net Investment Income Tax: You'll use this form if your income is high enough to be subject to the 3.8% NIIT.
- Form 8959, Additional Medicare Tax: This form is used to calculate the 0.9% surtax on high earned income.
How This Fits Into Retirement Taxes
The profits you take from your investment accounts don't exist in a vacuum; they directly influence the taxability of your Social Security benefits and your future Medicare premiums. A good grasp of how these moving parts fit together helps you make more informed decisions about when and how to sell your retirement assets.
Getting your arms around taxes in retirement can save you real money and plenty of stress. If you stay alert to how capital gains, Social Security, IRMAA, and NIIT numbers collide, you’re in a stronger spot to keep more of your cash working for you.
Team up with a sharp tax advisor or wealth management pro, and treat every withdrawal, sale, or distribution like it matters…because it really does.
💡 File your taxes with confidence. Start your taxes the easy way with our DIY filing platform.
Other Categories
See what some of the hundreds of thousands of satisfied customers have to say about our services:
Levi C.
VERY FAST
I got approved within a couple of days for my tax extension filing through these guys, and they responded to my email the same day. Great customer service and fast results. Give them a shot.
LaMontica
Great Service!!
This is the second year that I have used this service. Each time, the process was quick, easy, and efficient. I will definitely be using this service in the future and will recommend it to friends and family.
Chezbie
Fantastic Site!!
The process was so easy. I processed this extension in a matter of minutes! For you last-minute filers out there, come here. It'll help you end your long day in peace!
Why Trust FileTax.com
• Written and reviewed by qualified tax professionals, including CPAs and tax law reviewers
• Reviewer and contributor profiles include credentials, expertise, and verification information
• Content is reviewed for tax accuracy, compliance, and clarity before publication
• Based on IRS guidance, state tax agencies, and current tax law updates
• Editorial standards and review processes are publicly documented
Links


