Capital gains tax on a home sale is a separate question from your net proceeds, and it is easy to confuse the two. Your net proceeds are what remains after payoff, commission, closing costs, concessions, fix-up cost, and carrying cost. Your tax result, if any, depends on your gain, your ownership and use history, your filing status, and the tax rules that apply to your situation. This guide explains the Section 121 exclusion in general terms only, so you can ask a tax adviser better questions. It does not promise a tax result, and it is not tax advice.
In general terms, Section 121 can exclude a portion of gain on the sale of a principal residence if ownership and use tests are met. The commonly described exclusion amounts are up to $250,000 for a single filer and up to $500,000 for a married couple filing jointly, subject to the full rules and exceptions. Meeting those tests, calculating gain, and handling special cases such as a move, a divorce, a rental period, or a prior exclusion all need professional advice for your facts.
The ownership and use tests in general terms
In general terms, Section 121 requires ownership and use of the home as a principal residence for at least 2 years out of the 5 years ending on the sale date, with ownership and use tested separately and with special rules for certain situations. The 2 years do not have to be continuous in every case, and there are exceptions and special counting rules that can change the answer. Keep records of purchase, ownership changes, periods of residence, rental use, and improvements, because those records support the calculation and any adviser review. Do not assume a test is met from a headline summary alone.
How gain is generally figured
Gain is generally figured as sale price minus selling expenses and minus your adjusted basis, which often starts with what you paid and is adjusted for certain improvements and other items under the tax rules. Fix-up costs before a sale do not automatically become basis additions, and selling costs are treated under their own rules, so keep fix-up invoices, improvement records, and closing documents separate and complete. A higher sale price after fixes can increase gain as well as net proceeds, which is another reason to separate the net proceeds maths from the tax maths. An adviser can help you apply the correct treatment to each cost.
When the general picture may not apply
The general picture may not apply cleanly if the home was rented, used as a second home, inherited, received as a gift, owned by a trust, or sold after a divorce, a job move, or a health event. Prior use of an exclusion, a sale within a short period, and depreciation claimed during rental use can also change the result. These situations have detailed rules and exceptions, and a short guide cannot cover them safely. If any of these facts apply to you, raise them early with a tax adviser, before you set a price or accept an offer that assumes a particular tax outcome.
What to do before you rely on an exclusion
Before you rely on any exclusion, gather your purchase closing statement, improvement records, prior tax returns that show any earlier exclusion, and records of residence and rental periods. Ask a tax adviser to confirm eligibility, the exclusion amount for your filing status, how gain is calculated for your home, and whether estimated tax or reporting steps apply. Do not reduce your asking price, increase your fix-up budget, or promise a buyer a tax outcome based on this guide. A short adviser check is far cheaper than a tax surprise after closing.
Worked example: as-is net compared with after-fix net
Use this formula for every comparison on this page. Net equals sale price minus mortgage payoff minus commission minus transfer tax minus other closing costs minus seller concessions minus fix-up cost minus carrying cost multiplied by months to sell. Fix-up cost is zero on the as-is path. All figures in this example are example figures for arithmetic only, not quotes and not a promise of what your home will sell for.
In this example, the after-fix path includes an example fix-up cost of $10,000. That is an example figure for arithmetic only, not a quote and not a planning range for your home. The as-is path has no fix-up cost.
| Line | As-is | After fixes |
|---|---|---|
| Sale price | $380,000 | $425,000 |
| Mortgage payoff | -$150,000 | -$150,000 |
| Commission | -$20,900 | -$23,375 |
| Transfer tax | $-0 | $-0 |
| Other closing costs | -$7,600 | -$8,500 |
| Seller concessions | $0 | $0 |
| Fix-up cost | $0 | -$10,000 |
| Carrying cost | -$4,500 | -$7,500 |
| Net proceeds | $197,000 | $225,625 |
As-is net is $197,000. After-fix net is $225,625. The difference is $28,625, which is the after-fix net minus the as-is net. If the fix-up cost rises, the after-fix net falls by the same amount, and if the after-fix price falls, the after-fix net falls by that amount less any change in commission and other closing costs. Change one input at a time and watch which input moves the answer most for your home.
Any capital gains tax is not included in this table. The table shows net proceeds before any tax result, and your tax result is a separate question to check with a tax adviser.
What to do next
- Gather your purchase, improvement, and residence records now, so a tax adviser can review your Section 121 position before you price.
- Run your own numbers with the RenovateBudget calculator.
- Check the state guide for transfer tax and local notes that may affect your sale.
- Read the related guide for the job you are actually considering.
- Review how RenovateBudget figures are built, and read the site disclaimer before you rely on any estimate.
Frequently asked questions
What is the Section 121 exclusion in general terms?
Section 121 can, in general terms, exclude up to $250,000 of gain for a single filer and up to $500,000 for a married couple filing jointly on a qualifying principal residence sale, subject to ownership, use, and other rules. Check your eligibility with a tax adviser.
What are the 2-of-5-years tests?
In general terms, you must have owned the home and used it as your principal residence for at least 2 years out of the 5 years ending on the sale date, with ownership and use tested separately and with exceptions for certain situations.
Does fixing up a home before selling always reduce taxable gain?
Not necessarily. Selling costs and basis are treated under separate tax rules, and not every pre-sale repair becomes a basis addition. Keep invoices and closing documents, and ask a tax adviser how each cost is treated for your home.
Is net proceeds the same as taxable gain?
No. Net proceeds are sale price minus payoff and selling costs, while taxable gain is generally sale price minus selling expenses and adjusted basis, subject to any exclusion. The two figures answer different questions.
Should I get tax advice before selling?
Yes, if you may claim an exclusion, if your gain could be large, or if your ownership, rental, or move history is complex. A tax adviser can confirm eligibility and reporting steps for your facts. This guide is not tax advice.
Disclaimer: This guide is for planning only. Every cost figure here is an estimate or an example figure, not a quote, not a final price, and not tax or legal advice. Prices vary by home, condition, market, and contractor, so get local written quotes and professional advice before you commit to a sale or a repair.