Capital Gains Tax on Residential Property — Selling Your Home vs. Selling a Rental (Exclusion vs. 1031 Exchange)
- Tax Wealth Consultant

- Jun 23
- 8 min read

When you sell residential property that has gone up in value, the tax result depends almost entirely on one thing: was it your home, or was it a rental? The capital gains tax for residential property treats these two situations completely differently. Sell the home you live in, and a powerful exclusion can wipe out most or all of the gain. Sell a rental single-family home, and that exclusion does not apply at all — but a different tool, the 1031 exchange, can defer the tax instead. Understanding which rules apply to which property is the heart of capital gains planning for real estate.
This guide compares the two side by side: how the Section 121 exclusion works for capital gains on home sale transactions, why selling rental property gets no exclusion, and how a 1031 like-kind exchange lets a real estate investor defer the capital gains tax (and the depreciation recapture) when selling rental property. Capital gains on home sale situations and selling rental property situations follow almost opposite rules, which is exactly why planning matters. This is capital gain planning, not a guide to rental operating deductions. If you have searched for a tax advisor near me before selling a home or selling rental property, this lays out the framework — and as a tax planning firm Irvine homeowners and investors rely on, we can run your specific numbers. As a tax planning firm Irvine residents trust, Tax Wealth Consultant keeps these rules current every year. Every figure and rule below comes directly from the Internal Revenue Code and IRS Publication 523.
Same House, Different Tax: Why Use Matters

Two identical single-family homes on the same street can be taxed completely differently when sold — because the tax code cares about HOW the property was used, not what it looks like. A property you live in is a primary residence; a property you rent to tenants is investment property. That distinction controls which capital gains tax rules apply (source: IRC §121; IRC §1031; IRS Publication 523).
THE CORE DIFFERENCE
Primary residence: eligible for the Section 121 home sale exclusion, which can exclude a large amount of gain from tax
Rental property (such as a rental single-family home, or SFR): NOT eligible for the home sale exclusion — but eligible for a 1031 like-kind exchange to defer the gain
Both, if held more than a year, are taxed at long-term capital gains rates (0%, 15%, or 20% under IRC §1(h)) on any gain that is not excluded or deferred
A rental also carries depreciation recapture, which a primary residence generally does not (covered in Section 4)
This is why the very first question in any residential property capital gains plan is: what was this property's use, and for how long? The answer determines whether you are working with the home sale exclusion, the 1031 exchange, or — in some cases — a combination of both. The rest of this guide walks through each path (source: IRC §121; IRC §1031).
Selling Your Home — The Section 121 Exclusion

When you sell your primary residence, the Section 121 exclusion is the most valuable tool available. Under IRC §121, an eligible taxpayer can EXCLUDE up to $250,000 of capital gain from the sale of a main home — or up to $500,000 for a married couple filing jointly — from federal tax entirely. For many homeowners, this home sale exclusion eliminates the capital gains tax on the sale completely (source: IRC §121; IRS Publication 523).
KEY FACTS ABOUT THE SECTION 121 EXCLUSION
Excludes up to $250,000 of gain (single) or $500,000 (married filing jointly)
Applies to a primary residence — the home you actually live in, not a rental or a second home
Only the GAIN is potentially taxable, not the sale price — gain is the sale price minus your cost basis (purchase price plus capital improvements)
Gain above the exclusion amount is taxed at long-term capital gains rates if you owned the home more than a year
The exclusion can generally be used once every two years
It is important to be precise about what the home sale exclusion covers: it excludes GAIN, up to the limit, on a primary residence. A single filer with a $200,000 gain on their home typically owes nothing. A married couple with a $450,000 gain typically owes nothing. But a married couple with an $800,000 gain would exclude $500,000 and owe capital gains tax on the remaining $300,000. Knowing your true cost basis — including capital improvements over the years — is essential, because it directly reduces the taxable gain (source: IRC §121; IRS Publication 523).
Qualifying for the Home Sale Exclusion — The Two Tests

To claim the full Section 121 exclusion, you must pass BOTH an ownership test and a use test. Both look back over the five-year period ending on the date of sale (source: IRC §121; IRS Publication 523).
THE OWNERSHIP TEST AND THE USE TEST
Ownership test: you must have OWNED the home for at least 2 years (24 months) during the 5-year period ending on the sale date
Use test: you must have LIVED in the home as your main home for at least 2 years (24 months) during that same 5-year period
The 24 months do NOT have to be continuous — you add up the time
Married couples filing jointly generally qualify for the full $500,000 if both meet the use test and at least one meets the ownership test
If you do not meet the full two-year tests, a PARTIAL exclusion may still be available if the sale is due to a change in workplace location, a health reason, or certain unforeseen circumstances defined by the IRS. In that case, you exclude a prorated portion of the limit based on the time you did qualify. The partial exclusion rules are specific, and the qualifying reasons are defined — this is an area where the exact facts matter and a tax professional's review is valuable (source: IRC §121(c); IRS Publication 523).
Selling a Rental — No Exclusion, Plus Depreciation Recapture

Now the other side. When you sell a rental property — such as a rental single-family home — the Section 121 home sale exclusion does NOT apply, because it was not your primary residence. The entire gain is potentially taxable. And selling a rental brings an additional tax that a home sale generally does not: depreciation recapture (source: IRC §121; IRC §1250; IRS Publication 544).
WHAT SELLING A RENTAL TRIGGERS
No home sale exclusion — the full long-term capital gain is taxable at 0%, 15%, or 20% under IRC §1(h)
Depreciation recapture: the depreciation you claimed (or were allowed to claim) while it was a rental is 'recaptured' — taxed as unrecaptured Section 1250 gain at a maximum federal rate of 25%
The 3.8% net investment income tax under IRC §1411 may also apply to the gain for higher earners
California taxes the gain as ordinary income at the state level, on top of the federal tax
Depreciation recapture surprises many rental owners. Even if you never personally took depreciation deductions, the IRS calculates recapture on the depreciation 'allowed or allowable' — meaning the amount you COULD have claimed. So a rental sale can produce two layers of tax: long-term capital gains on the appreciation, plus up to 25% on the recaptured depreciation. This is precisely why the 1031 exchange — covered next — is such an important planning tool for rental owners (source: IRC §1250; IRS Publication 544).
The 1031 Exchange — Deferring the Gain on a Rental

For a rental or investment property, the 1031 exchange (also called a like-kind exchange) is the primary tool to DEFER the capital gains tax and the depreciation recapture. Under IRC §1031, if you sell investment real estate and reinvest the proceeds into 'like-kind' replacement investment real estate, you can defer the tax that would otherwise be due — potentially indefinitely, by repeating the process (source: IRC §1031; Treas. Reg. §1.1031).
KEY 1031 EXCHANGE RULES
Applies ONLY to property held for investment or business use — a primary residence does NOT qualify
Like-kind real property: most U.S. investment real estate is like-kind to other U.S. investment real estate (a rental SFR can be exchanged for an apartment building, commercial property, or other investment real estate)
45-day identification window: you must identify replacement property within 45 days of selling the relinquished property
180-day completion window: you must close on the replacement property within 180 days of the sale
A Qualified Intermediary (QI) must hold the sale proceeds — you cannot take possession of the cash, or the exchange is disqualified
The exchange defers BOTH the capital gains tax and the depreciation recapture into the replacement property
The 1031 exchange defers tax; it does not erase it. The deferred gain and recapture carry over into the basis of the replacement property and become due if you eventually sell without exchanging again. The deadlines are strict and there are no extensions — missing the 45-day or 180-day window disqualifies the exchange. Because the process requires a Qualified Intermediary and precise timing, a 1031 exchange should be set up BEFORE the sale closes, with a QI engaged and the tax treatment confirmed in advance (source: IRC §1031; Treas. Reg. §1.1031; IRS Publication 544).
Home vs. Rental — Side by Side (and When They Combine)

Putting the two paths next to each other makes the planning clear (source: IRC §121; IRC §1031; IRS Publication 523).
PRIMARY RESIDENCE (your home): • Tool: Section 121 home sale exclusion • Benefit: EXCLUDES up to $250,000 (single) / $500,000 (married) of gain — gone, not just deferred • Tests: own 2 of 5 years AND live in it 2 of 5 years • Depreciation recapture: generally none (unless the home had business/rental use) • 1031 exchange: not available for a primary residence RENTAL PROPERTY (such as a rental SFR): • Tool: 1031 like-kind exchange • Benefit: DEFERS the capital gains tax and depreciation recapture (not excluded — carried forward) • Rules: 45-day identification, 180-day close, Qualified Intermediary required • Depreciation recapture: applies on an outright sale (up to 25%); deferred in a 1031 • Section 121: not available for a rental |
Where to Go From Here

The capital gains tax on residential property comes down to a single planning question answered correctly: is this a home (use the Section 121 exclusion) or a rental (consider a 1031 exchange to defer)? Getting the answer right — and the timing, the tests, the basis, the recapture, and the deadlines — is the difference between a tax-free or tax-deferred sale and an unexpected bill. None of it should be improvised at the closing table; the best results come from planning before the property is listed. If you are preparing to sell a home or a
rental single-family home and want the gain handled correctly, Tax Wealth Consultant is a tax planning firm Irvine families and investors trust, serving Orange County and California. We calculate your true gain and basis, confirm your Section 121 eligibility, model the depreciation recapture on a rental, and coordinate the timing of a 1031 exchange with your Qualified Intermediary. If you have searched for a tax advisor near me before a property sale, we are glad to help you plan it the right way.
Sources cited in this article: • Internal Revenue Code §121 — Exclusion of gain from sale of principal residence ($250,000/$500,000) • Internal Revenue Code §121(c) — Partial exclusion (change of employment, health, unforeseen circumstances) • Internal Revenue Code §121(d)(10) — 5-year holding rule for property acquired in a 1031 exchange • Internal Revenue Code §1031 — Like-kind exchanges of real property • Internal Revenue Code §1250 — Depreciation recapture on real property (unrecaptured §1250 gain, up to 25%) • Internal Revenue Code §1(h) — Long-term capital gains rates (0%, 15%, 20%) • Internal Revenue Code §1411 — Net investment income tax (3.8%) • Treasury Regulation §1.1031 — Like-kind exchange rules • IRS Publication 523 — Selling Your Home • IRS Publication 544 — Sales and Other Dispositions of Assets |
Selling a Home or a Rental? Plan the Capital Gains Before You List
Tax Wealth Consultant calculates your true gain and basis, confirms your Section 121 exclusion eligibility, models depreciation recapture on a rental, and coordinates the timing of a 1031 exchange with your Qualified Intermediary. Clear, factual planning before the sale — so the gain is handled the right way
Or call (949) 409-8335 — speak with a tax advisor near me in Irvine today
Or email support@taxwealthconsultant.com




Comments