Selling a California home when the gain is far bigger than the exclusion
The exclusion on a main home sale is $250,000 of gain, or $500,000 for a married couple filing jointly. Congress set those numbers in 1997 and never indexed them. In Marin, on the Peninsula, in the Santa Cruz hills and anywhere else a house bought decades ago is now worth several times what it cost, the exclusion covers a slice of the gain and the rest is taxable. A 1031 exchange does not rescue it, because a 1031 exchange does not apply to a home you live in.
What Section 121 covers, precisely
Internal Revenue Code Section 121 lets you exclude gain on the sale of your main home if you pass two tests and one timing rule:
- Ownership. You owned the home for at least 24 months out of the 5 years before the sale.
- Use. You lived in it as your residence for at least 24 months of those same 5 years. The two periods do not have to be the same 24 months, and the months do not have to be consecutive.
- Frequency. You did not exclude gain on the sale of another home during the 2 years before this sale.
Pass all three and $250,000 of gain comes off, or $500,000 on a joint return. California conforms to Section 121, so the same amount comes off at state level. What the exclusion does not do is scale. It is a fixed dollar amount subtracted from the gain, not a percentage of it, so the larger the gain the smaller the share of it the exclusion reaches.
The arithmetic that surprises people
Consider a couple who bought a house in 1992 for $450,000, put $150,000 into it over the years, and sell it now at $4,000,000. Their basis is roughly $600,000, so the gain is about $3,400,000. The exclusion removes $500,000 of it. $2,900,000 remains, and that is the number the rate structure below applies to.
The figures are arithmetic on assumed numbers, chosen to show how the exclusion behaves against a large gain. They are not anyone's actual sale and not a projection of your result.
What can apply to the gain above the exclusion
| Charge | Rate | Applies when |
|---|---|---|
| Federal long-term capital gains | 0, 15 or 20 percent | Applies to the gain left after the Section 121 exclusion. Which rate applies depends on taxable income, and a large home sale often pushes the excess into the 20 percent bracket by itself. |
| Net investment income tax | 3.8 percent | Gain you exclude under Section 121 is not net investment income. Gain above the exclusion can be, once modified adjusted gross income passes the IRC 1411 thresholds. |
| California income tax | up to 13.3 percent | California conforms to the Section 121 exclusion, so the same $250,000 or $500,000 comes off at state level. California has no preferential capital gains rate, so what remains is taxed as ordinary income. The 13.3 percent top rate includes the 1 percent tax on taxable income above $1 million. |
| Unrecaptured Section 1250 gain | up to 25 percent | Only if depreciation was claimed, for example during a period the home was rented or a home office was deducted. Section 121(d)(6) says the exclusion does not cover gain equal to depreciation taken after May 6, 1997. |
Rates shown are the published statutory rates and are not a projection of any individual outcome. What you actually owe depends on your basis, your improvements, your filing status, any depreciation you claimed, and your other income in the year of sale. Confirm the numbers with your CPA before you plan around them.
Why a 1031 exchange does not apply to your home
Section 1031 defers gain on property held for investment or for productive use in a trade or business. A house you live in is neither. This is not a technicality that a well drafted escrow can work around, and it is the most common wrong assumption a seller arrives with, usually because they have heard an investor friend describe an exchange on a rental.
The provisions are built for different situations. Section 1031 defers the entire gain indefinitely but demands you stay invested in real property. Section 121 asks nothing of you afterward and lets you spend every dollar, but it only reaches the first $250,000 or $500,000.
The one place they meet: Rev. Proc. 2005-14
There is a genuine overlap, and it applies to a property that was your principal residence and then became a rental. Revenue Procedure 2005-14 lets both provisions apply to the same sale, in a set order:
- Section 121 first. The exclusion is applied to the realized gain, provided you still satisfy the 2 out of 5 year ownership and use tests as of the sale.
- Section 1031 second. The gain that remains may be deferred through an exchange into replacement property held for investment, which is where 1031 replacement property and Delaware Statutory Trust interests enter the picture for owners who qualify.
- Depreciation sits outside the exclusion. Under Section 121(d)(6), gain equal to depreciation you claimed after May 6, 1997 cannot be excluded. Section 1031 may still defer it.
- Cash you take out is limited. Boot is taxable, though only to the extent it exceeds gain you excluded under Section 121.
The window is the constraint. The use test looks back 5 years from the sale, so a house rented out for six or seven years has usually aged out of Section 121 entirely, and only the exchange is left. Whether your particular facts sit inside Rev. Proc. 2005-14 is a question for your CPA, and it is worth asking before the listing goes up rather than at closing.
Two rules that catch people in the wrong order
- Nonqualified use, Section 121(b)(5). Gain allocated to periods after January 1, 2009 in which the property was not your principal residence cannot be excluded. The important exception is in Section 121(b)(5)(C)(ii): the part of the 5 year period ending on the sale date that falls after you last used the home as your principal residence is carved out. Living in the house and then renting it out before you sell therefore does not normally create nonqualified use. Buying it as a rental and moving in later does.
- The 5 year lock after an exchange, Section 121(d)(10). If you acquired the property in a 1031 exchange, the exclusion is unavailable on a sale within 5 years of that acquisition. Owners who exchange into a rental, later move into it, and then sell on a changed timetable land here.
Proposition 19 is a property tax question, not an income tax question
These two get discussed in the same breath and they are unrelated. Proposition 19 does nothing to your capital gain. What it governs is the assessed value you carry into the next house, which is a recurring annual cost rather than a one time bill.
- Base year value transfer. If on the date of sale you are 55 or older, severely and permanently disabled, or a victim of a wildfire or Governor declared disaster, you may move your home's taxable base year value to a replacement primary residence anywhere in California, and you may do it up to 3 times. The county limits that applied before April 1, 2021 are gone. For an owner who has held a California house since the 1990s, the difference between carrying the old assessed value and being reassessed at today's purchase price is substantial and permanent.
- Parent to child transfers narrowed. Since February 16, 2021 the exclusion applies only where the home was the parent's principal residence and becomes the child's principal residence, and the excluded amount is capped at the factored base year value plus $1 million, which is $1,044,586 through February 15, 2027. A child who inherits the family home and rents it out no longer keeps the old assessment. Families who assumed otherwise are often making that discovery at the worst possible moment.
Base year value transfers and the intergenerational exclusion are administered by your county assessor and both carry filing deadlines. Claims under the parent to child exclusion are generally due within 3 years of the transfer, or before a sale to a third party.
Where home sellers usually get stuck
- Assuming a 1031 exchange is available. It is not, on a home you live in, and by the time the question is asked the escrow is often already open.
- Reconstructing basis at closing. Improvements over 30 years add to basis and reduce the gain, but only if you can document them. That record is far easier to assemble before the house is emptied than after.
- Forgetting a rental period or a home office. Depreciation claimed after May 6, 1997 is outside the exclusion under Section 121(d)(6), whether or not you remembered to claim it.
- Missing the Proposition 19 filing. The base year value transfer is not automatic. It is a claim you file with the county assessor, with a deadline.
- Treating the exclusion as a percentage. On a $3,400,000 gain, $500,000 is about 15 percent of it. The instinct that "most of it is covered" is what produces an unplanned tax bill.
Questions about selling a California home, answered
How much capital gain can I exclude when I sell my home?
Up to $250,000 of gain if you file singly, or up to $500,000 if you file a joint return with your spouse, under Internal Revenue Code Section 121. You must have owned the home for at least 24 months out of the 5 years before the sale, and used it as your residence for at least 24 months of those 5 years. You cannot use the exclusion if you already excluded gain on another home sale in the 2 years before this one.
Has the $500,000 exclusion ever been increased?
No. The $250,000 and $500,000 figures were set by the Taxpayer Relief Act of 1997 and are not indexed to inflation. They are the same today as they were in 1997, while California home values have moved a great deal in that period. This is the single reason a long held California home so often produces a taxable gain even though the owner is selling one house and buying another.
Can I do a 1031 exchange on my primary residence?
No. Section 1031 applies only to property held for investment or for productive use in a trade or business, so a primary residence does not qualify. Section 121 is the provision that applies to a main home, and it excludes a fixed dollar amount rather than deferring the whole gain. The two provisions can meet in one transaction, but only where the property was genuinely converted from a residence to investment use.
What is Rev. Proc. 2005-14?
It is the IRS guidance that allows Section 121 and Section 1031 to be applied to the same property when a principal residence has been converted into a rental. The order matters: Section 121 is applied to the realized gain first, and Section 1031 may then defer what is left. Gain equal to depreciation claimed after May 6, 1997 is outside the Section 121 exclusion under Section 121(d)(6), though Section 1031 may still reach it. Whether your facts fall inside this guidance is a question for your CPA.
If I move out and rent the house before selling, do I lose the exclusion?
Not automatically. Section 121(b)(5) allocates gain to periods of nonqualified use after January 1, 2009, and that allocated share cannot be excluded. But Section 121(b)(5)(C)(ii) expressly carves out the part of the 5 year period ending on the sale date that falls after the last date you used the home as your principal residence. Renting it out after you move out therefore does not normally create nonqualified use inside that window. Buying a house as a rental first and converting it to your home later is the pattern that does.
I acquired this house through a 1031 exchange. Can I still use Section 121?
Not for 5 years. Section 121(d)(10) blocks the exclusion on the sale of property you acquired in a like-kind exchange if the sale happens within the 5 year period beginning on the acquisition date. This catches owners who exchange into a rental, move into it, and then sell sooner than they expected.
Does Proposition 19 reduce my capital gains tax?
No. Proposition 19 is about California property tax, not income tax. It is worth knowing about because it changes what the next house costs to hold every year, but it does nothing to the capital gain on the house you are selling. Those are two separate questions and they are often run together in the same conversation.
What does Proposition 19 actually allow?
If you are 55 or older, severely and permanently disabled, or a victim of a wildfire or a Governor declared disaster, you may transfer the taxable base year value of your home to a replacement primary residence anywhere in California, up to 3 times. Proposition 19 also narrowed the parent to child exclusion: it now applies only where the home was the parent's principal residence and becomes the child's principal residence, and the excluded value is capped at the factored base year value plus $1 million, which is $1,044,586 through February 15, 2027. Your county assessor administers all of this, and there are filing deadlines.
Sources
- Internal Revenue Code Section 121, including subsections (b)(5), (d)(6) and (d)(10), and Section 1411.
- IRS Topic No. 701, Sale of Your Home, and IRS Publication 523.
- Revenue Procedure 2005-14, on the concurrent application of Sections 121 and 1031.
- Internal Revenue Code Section 1031 and Treasury Regulation 1.1031(k)-1.
- California Proposition 19 (2020), as administered by the California State Board of Equalization and county assessors.
This page is general information about tax law, not tax advice, and no part of it is a recommendation of any security or investment. Every sale turns on facts specific to the taxpayer. Consult your own CPA or tax attorney before acting.