Capital gains tax on a home sale in retirement: what North Carolina residents should know
Capital gains tax on a home sale in retirement: what North Carolina residents should know
If you are thinking about selling your home in retirement, you probably want to know how much of the profit will go to taxes. The short answer: many retirees owe nothing in federal or state capital gains tax on the sale. Still, the outcome depends on how long you owned and lived in the home, what you paid for it, what you spent improving it, and your filing status.
This guide walks through the general rules so you can understand the math, see what can change the answer, and know what to verify with a tax professional before you list the property.
How capital gains are calculated on a home sale
When you sell a home, the IRS looks at two numbers: your adjusted basis in the property and the amount realized from the sale. The difference is your capital gain, or your capital loss.
Adjusted basis starts with what you originally paid for the home. You add the cost of capital improvements and subtract any depreciation you claimed, for example if you ever used part of the home as a rental or home office. Improvements that increase your basis include a new roof, a room addition, a major kitchen remodel, or a new HVAC system. Replacing a broken faucet or patching drywall generally does not count. The IRS draws a line between improvements that add value or extend the life of the property and routine maintenance that simply keeps things working.
Amount realized is the sale price minus selling expenses. Those expenses typically include real estate commissions, title insurance, advertising costs, legal fees, and transfer taxes. In Wake County, that includes the North Carolina excise tax of $1 per $500 of the sale price, which the seller usually pays at closing.
The basic formula runs like this:
- Amount realized (sale price minus selling expenses)
- Minus adjusted basis (purchase price plus improvements)
- Equals capital gain or loss
That gain number determines your potential tax exposure. For many retirees selling a home they have owned for decades, the gain can be large on paper. The federal exclusion rules exist for exactly this reason.
The federal exclusion for primary residence sales
Under IRS Section 121, you may be able to exclude a large portion of the gain from your taxable income. To qualify, you need to meet two tests:
- Ownership test: You owned the home for at least two years during the five-year period ending on the date of the sale.
- Use test: You lived in the home as your principal residence for at least two years during that same five-year period.
The two tests do not have to overlap. You could have lived in the home for two years, moved out for a period, and still qualify if you sell within five years of when you last lived there. The five-year look-back window is what matters.
If you meet both tests, the exclusion amounts are $250,000 for single filers or married filing separately and $500,000 for married couples filing jointly. For the joint exclusion, at least one spouse must meet the ownership test, and both must meet the use test (with some exceptions). These exclusion amounts have been in place since 1997, but you should always verify the current limits through IRS Publication 523.
The exclusion is not a deduction. It removes the gain from your income entirely. If your gain is $250,000 or less as a single filer, or $500,000 or less filing jointly, and you qualify, the full gain may be excluded from federal taxable income.
Surviving spouses
If your spouse has passed away and you have not remarried, you may still qualify for the $500,000 joint exclusion if you sell within two years of your spouse's death and both of you met the use test. The timing matters here, and the rules are specific. IRS Publication 523 covers this scenario in detail.
How North Carolina taxes home sale gains
North Carolina generally conforms to the federal Section 121 exclusion. The same portion of gain excluded on your federal return is also excluded on your North Carolina return.
If you have a taxable gain remaining after the exclusion, North Carolina taxes it as ordinary income at the state's flat individual income tax rate. For tax years after 2025, that rate is 3.99%, down from 4.25% in 2025. The rate was set by Session Law 2023-134, and the North Carolina Department of Revenue publishes updated rate schedules on its website.
North Carolina does not have a separate, lower capital gains tax rate. A taxable gain from selling your home is taxed at the same rate as wages or retirement income on your state return. Some states offer preferential rates for capital gains. North Carolina is not one of them.
NC excise tax and Wake County recording fees at closing
Separate from any income tax on gains, North Carolina collects an excise tax on real property conveyances. The rate is $1 for each $500 of the sale price, or fraction thereof. On a $400,000 sale, that comes to $800. This is a closing cost, not an income tax on profit, and it is typically handled by the closing attorney.
Wake County also charges recording fees when the deed is filed. As of 2026, the base recording fee for most documents is $26, plus per-page charges. Your closing attorney or settlement agent will include both the excise tax and recording fees in your closing disclosure. These costs apply whether or not you have a taxable gain.
What can change the outcome
The exclusion rules sound straightforward, but several factors can shift how much tax you owe or whether you owe anything at all.
Filing status and timing
Married filing jointly gets the $500,000 exclusion. Single filers get $250,000. Filing status is determined as of December 31 of the tax year, so the timing of your closing matters. If your spouse passed away and you sell within two years, you may still qualify for the higher amount. If you are recently divorced and selling the home that year, your filing status as of year-end controls which exclusion you receive.
Improvements versus repairs
This is where documentation makes a real difference. Capital improvements add to your basis and reduce your gain. Repairs that simply maintain the home in its current condition generally do not. A new addition, a roof replacement, or a complete bathroom renovation typically qualifies. Fixing a leaky pipe or repainting a room typically does not.
Many retirees have lived in their homes for 20 or 30 years and may have made significant improvements over that time. If you kept receipts, bank records, or credit card statements showing those costs, those records can lower your taxable gain. Even if you did not keep perfect records, reconstructing what you can from contractor invoices, permits, or bank statements is worth the effort.
Partial exclusion for qualifying circumstances
If you do not meet the full two-year ownership or use test, you may still qualify for a reduced exclusion. The IRS allows a prorated exclusion if the sale was connected to a change in health, employment, or what the tax code calls "unforeseen circumstances." Examples include a job transfer, a medical condition that requires relocating, or certain natural disasters.
The partial exclusion is calculated based on the portion of the two-year period you did meet. This area gets specific fast, and the IRS outlines qualifying situations in Publication 523. It is worth checking the criteria if you had to sell sooner than planned.
Selling at a loss
If you sell your home for less than your adjusted basis, the loss is not deductible. Unlike investment property, a personal residence sold at a loss does not generate a tax benefit. You cannot carry the loss forward or offset it against other income. This surprises some people, but the tax code treats personal-use property losses differently from investment losses.
Rental or business use of the home
If you used part of your home for business or rented it out at any point, the tax treatment gets more complicated. You may owe depreciation recapture on the business-use portion, and the Section 121 exclusion may not cover all of the gain. The interaction between rental periods and the exclusion has specific rules. If this applies to you, it is worth discussing with a tax professional who understands both rental-property and primary-residence tax rules.
Prior deferred gains
If you deferred a gain from a previous home sale under the old rollover rules that existed before 1997, that deferred gain reduces your current basis. A lower basis means more of the current sale price is taxable. Similarly, if you ever did a like-kind exchange on a rental property that later became your primary residence, the rules around basis and exclusion get involved. These are not common situations, but they do come up for long-time homeowners.
Records to gather before you sell
Good records make the tax calculation simpler and give your tax professional what they need to review your situation. Before or during the sale process, try to collect the closing statement from when you purchased the home, receipts or bank records for capital improvements, any depreciation records if the home was ever rented or used for business, prior tax returns that show deferred gains, and the current sale documents. You do not need to submit these with your tax return, but keep them in case the IRS or North Carolina Department of Revenue asks for verification. A common rule of thumb is to keep tax records for at least three years from the filing date, though some professionals recommend longer for home-sale documentation.
Steps to verify before you sell
A few checks before listing your home can prevent surprises later:
- Review IRS Publication 523 , available at irs.gov/publications/p523. The publication includes worksheets for calculating your basis and gain, and it covers common exceptions and partial exclusion rules.
- Check the North Carolina Department of Revenue at ncdor.gov for the current tax rate schedule and any updates to how the state handles capital gains reporting.
- Ask your closing attorney or title company to estimate the NC excise tax and Wake County recording fees so those costs are in your financial planning.
- Confirm your filing status for the year you plan to sell, especially if a spouse has passed away or you are recently divorced.
- Estimate your gain using whatever records you have, then compare it to the applicable exclusion amount. If your gain is well below the exclusion and you meet the ownership and use tests, the tax impact may be zero.
Questions to ask a qualified tax professional
This guide covers the general rules, but individual situations vary. A tax professional who reviews your specific records can give you a much clearer picture of your tax exposure. Here are questions worth bringing to that conversation:
- Do I meet both the ownership and use tests for the Section 121 exclusion?
- What is my adjusted basis, and which of my home improvements qualify?
- Will my filing status for the year of the sale affect the exclusion amount?
- If I used part of the home as a rental or home office, how does that change the calculation?
- Are there any carryover gains from prior home sales that affect my current basis?
- What records should I keep, and for how long?
- How will this sale affect other items on my tax return?
That last question can point to ripple effects across your tax return. For instance, a sizable gain might influence certain other tax items in the same year. These are the kinds of details a professional can map out once they see your full records.
If you have questions about housing decisions or costs in retirement, you can ask us a question or explore our housing and fixed-income living guides for more context. For any specific tax situation, a licensed tax professional who can review your records and run the numbers for your circumstances is the right next step.
You might also like









