Will I pay tax when I sell my home in retirement?
Short answer
Usually not, or not much. If you owned the home and lived in it as your main home for at least 2 of the 5 years before the sale, the IRS lets you leave up to $250,000 of gain out of your income, or up to $500,000 if you are married filing jointly. Only gain above that can be taxed. Your age does not matter, and you can generally use it once every 2 years.
WisePlan Wealth is an on-device retirement spending planner for iPhone, Mac and Android (private, no account; your data stays on your device) that finds the most you can afford to spend across your Go-Go, Slo-Go and No-Go years, using your 401(k), IRA, Roth and taxable savings. It is not a financial advisor or tax filer, and it does not file taxes or calculate official tax amounts.
Home sale exclusion calculator (US, 2026)
For the tax on the taxable part, see the capital gains tax calculator. In 2026 some or all of it may fall in the 0% bracket.
Runs in your browser. Nothing is saved or sent. Uses only what you enter.
Instead of checking whether your plan works with a budget you had in mind, see how much you can actually afford to spend from your 401(k), IRA, Roth and taxable savings plus what you keep from selling your home, tuned for your Go-Go, Slo-Go and No-Go yearsA rough guide based on IRS Publication 523, not tax advice. Your return and Publication 523 worksheets are the final word.
Assumptions / what this calculator does not do
- Covers the sale of your main home only, not a second home or a rental property.
- Does not handle a home you rented out or used partly for a business, or depreciation you claimed. Those cases have extra rules in Publication 523.
- Treats ownership as one number for a couple, because only one spouse needs to meet the ownership test. Each spouse’s months living there are counted separately.
- Uses the shortest of months lived, months owned and months since an earlier excluded sale for a partial exclusion, as in Publication 523 Worksheet 1.
- Does not cover the special rules for military, Foreign Service, intelligence or Peace Corps service, like-kind exchanges, or vacant land.
- Does not include state tax. Some states tax home sale gains differently.
Sources
- Internal Revenue Service, Publication 523 (2025), Selling Your Home (ownership, residence and 2-year look-back tests; $250,000 and $500,000 limits; partial exclusion for work, health and unforeseeable events; Worksheets 1 to 3; care facility rule; when to report; checked October 29, 2026).
- Internal Revenue Service, Topic no. 701, Sale of your home ($250,000 and $500,000 exclusion; reporting on Form 8949 and Schedule D when you get Form 1099-S or have taxable gain; page updated October 12, 2026; checked October 29, 2026).
FAQ
- Do I pay tax when I sell my house in retirement?
- Often not. If you owned and lived in the home as your main home for at least 2 of the 5 years before the sale, the IRS lets you leave up to $250,000 of gain out of your income, or up to $500,000 if you are married and file a joint return. You only pay tax on gain above that amount. Your age does not matter.
- How do I work out my gain?
- Start with the sale price and take off your selling costs, such as agent commissions and legal fees. Then take off what you paid for the home, the buying costs you paid at closing, and the cost of improvements like a new roof, an addition or a kitchen remodel. Repairs and painting do not count. What is left is your gain.
- What if we lived there less than 2 years?
- You may still get part of the exclusion if the main reason you sold was a job move of at least 50 miles, a health reason (including a move to care for a family member), or an unforeseeable event such as a divorce or a disaster. The partial amount is $250,000 times the months you qualify, divided by 24.
- Can I use the exclusion more than once?
- Yes, but generally not more than once in any 2-year period. If you excluded gain on another home sold in the 2 years before this sale, you usually cannot take the full exclusion again yet.
- Do I have to report the sale if no tax is due?
- If you get Form 1099-S from the closing, you must report the sale on your return even if all the gain is excluded. You also report it if part of the gain is taxable. If neither applies, IRS Publication 523 says you do not need to report the sale.
- Does WisePlan work out my home sale tax?
- No. WisePlan Wealth is an on-device retirement spending planner (private, no account). You type in your 401(k), IRA, Roth and taxable savings, plus any one-time money such as home sale proceeds, and it finds the most you can afford to spend each year across your Go-Go, Slo-Go and No-Go years. It does not file taxes or calculate official tax amounts. Use this page’s calculator for a rough idea, and IRS Publication 523 or a tax professional for your return.
Full guide
Will I pay tax when I sell my home in retirement? Many retirees sell a larger home and move somewhere smaller or cheaper. This guide explains, in plain words, how the US home sale exclusion works, how to work out your gain, and what to do with the money in your retirement plan. Related: capital gains tax in retirement and tax in retirement by state.
1. The three tests
To leave the full amount of gain out of your income, Publication 523 says you need to pass three tests. Ownership: you owned the home for at least 24 months in the 5 years before the sale. Residence: you lived in it as your main home for at least 24 months in those 5 years. The months do not have to be in one block. Look-back: you did not exclude gain on another home sold in the 2 years before this sale. For a married couple filing jointly, only one of you has to pass the ownership test, but each of you has to pass the residence test.
2. How much you can leave out
The limit is $250,000 of gain for a single filer and $500,000 for a married couple filing jointly when both of you pass the tests. If only one of you passes, the IRS works out each spouse’s limit as if you were single and adds them together, so a couple might get $250,000 instead of $500,000. IRS Topic 701, updated in October 2026, lists the same $250,000 and $500,000 limits.
3. Working out your gain
Your gain is the sale price minus selling costs (agent commissions, advertising, legal fees), minus your adjusted basis. Basis starts with what you paid for the home plus buying costs such as title insurance, recording fees and transfer taxes. Add improvements that are still part of the home, like an addition, a new roof, central air or a kitchen remodel. Repairs and upkeep, such as painting or fixing leaks, do not count. Keep receipts for improvements; Publication 523 suggests keeping your records until 3 years after the due date of the return for the year you sell.
4. If you miss the 2-year tests
You may still get a partial exclusion if the main reason you sold was a job move at least 50 miles farther away, a health reason (such as a doctor recommending a move, or moving to care for a family member), or an unforeseeable event such as a divorce, a disaster that damaged the home, or a change in work that left you unable to pay basic living costs. The partial limit is $250,000 times the shortest of your months living there, months owning it, and months since an earlier excluded sale, divided by 24. Time spent in a licensed care facility, such as a nursing home, can count as living in your home if you lived there at least 12 months of the 5 years and became unable to care for yourself.
5. Reporting the sale
If you get Form 1099-S from the closing, report the sale on Form 8949 and Schedule D even if none of the gain is taxable. You also report it if part of the gain is taxable. Taxable gain on a home you owned more than a year is a long-term capital gain, taxed at 0%, 15% or 20% depending on your income. See the capital gains tax calculator. A loss on your own home cannot be deducted. If the sale adds a large taxable gain, you may need to pay estimated tax; see estimated taxes in retirement.
6. What it means for your retirement spending
The money you keep after the sale, the new home and moving costs is often one of the biggest one-time amounts in a retirement plan. Some people spend part of it in the early, active Go-Go years on travel or helping family, and invest the rest to support spending later. A higher taxable gain can also raise the income Medicare uses for premiums two years later; see IRMAA.
See how much you can actually afford to spend
Instead of checking whether your plan works with a budget you had in mind, see how much you can actually afford to spend. WisePlan Wealth finds the most you can spend each year across your Go-Go, Slo-Go and No-Go years, using your 401(k), IRA, Roth and taxable savings, Social Security, and any one-time money you type in, such as what you keep from selling your home, all on your device. It does not file taxes or calculate official tax amounts.
Related guides
- Capital gains tax in retirement (US)
- Tax in retirement by state
- Estimated taxes in retirement
- IRMAA Medicare surcharge
- How much can I spend in retirement? (US)
- Retirement budget calculator
This is general information, not financial, tax or legal advice. The calculator is a rough guide based on IRS Publication 523 (2025) and IRS Topic no. 701. Page dated October 29, 2026.
🇨🇦 In Canada? Gain on your main home is usually sheltered by the principal residence exemption. See also downsizing in retirement.