How Does the Federal IRC Section 121 Exclusion Work?
Internal Revenue Code Section 121 allows homeowners to exclude capital gains from the sale of a primary residence from federal income tax. The exclusion amounts are:
- $250,000 for single filers
- $500,000 for married couples filing jointly
To qualify, you must have owned and used the property as your principal residence for at least 2 of the 5 years preceding the sale. The two years do not need to be consecutive.
For most California homeowners who have lived in their home for several years, the Section 121 exclusion covers the entire gain. A couple who bought a home for $600,000 and sells it for $1,000,000 has a $400,000 gain — fully excluded under the $500,000 married filing jointly limit.
Where it gets more complex is when the gain exceeds the exclusion, when you have converted a primary residence to a rental, or when the timing of your move affects your qualification.
"Gross income does not include gain from the sale or exchange of a principal residence."
— 26 U.S.C. § 121(a), Internal Revenue Code
How Does California Treat Capital Gains Differently?
This is one of the most important distinctions for California homeowners planning a move:
California Does Not Offer a Preferential Capital Gains Rate
The federal tax code taxes long-term capital gains at 0%, 15%, or 20% depending on income. California taxes all capital gains — long-term or short-term — as ordinary income, at rates ranging from 1% to 13.3%. This means a California homeowner with a large gain pays a significantly higher state tax than the federal rate on the same income.
The good news: California conforms to the IRC Section 121 exclusion. So if your gain qualifies for the federal exclusion, it also qualifies for the California exclusion. The $250,000 / $500,000 exclusion applies at both levels.
The impact is felt only on the portion of the gain that exceeds the exclusion. For most primary residence sales, this is not an issue. But in high-appreciation California markets, gains of $600,000, $800,000, or even $1 million are not uncommon — and the excess is taxed by California at ordinary income rates.
Example: $800,000 Gain on a Primary Residence
| Component | Federal | California |
|---|---|---|
| Total gain | $800,000 | $800,000 |
| Section 121 exclusion (married) | $500,000 | $500,000 |
| Taxable gain | $300,000 | $300,000 |
| Tax rate on gain | 15% (long-term capital gains) | ~9.3% (ordinary income rate) |
| Estimated tax | ~$45,000 | ~$27,900 |
In this example, the California tax is lower in dollar terms because the ordinary income rate is lower than the capital gains rate at this income level. But in other scenarios — particularly when the gain pushes income into California's 10.3%, 11.3%, or 13.3% brackets — the California tax can exceed the federal.
How Does the Mid-Year Move Affect the Exclusion?
The timing of your move relative to the sale of your home is one of the most consequential decisions in the entire relocation. Here is why:
The IRC Section 121 exclusion requires that you have owned and used the home as your principal residence for at least 2 of the 5 years before the sale. California imposes the same requirement. If you move to Texas in January 2025 and sell the California home in March 2025, you still meet the 2-of-5-year test because you lived there through most of the prior 5 years.
However, your residency status in the year of the sale affects which California return you file and how your income is taxed:
Scenario A: You Are Still a California Resident in the Year of Sale
- You file a California resident return (Form 540)
- All income — from every source — is subject to California tax
- The Section 121 exclusion reduces your California tax on the gain
- Your total California income tax is calculated on all income combined
Scenario B: You Have Established Texas Residency Before the Sale
- You file a California nonresident return (Form 540NR)
- Only California-source income (the home sale gain) is subject to California tax
- Your Texas income, if any, is not taxed by California
- The Section 121 exclusion still applies to the gain on the California property
In Scenario B, you may pay less total California tax because your non-California income is excluded from the California return entirely. However, this requires having genuinely established Texas residency before the sale date, which means the earlier you start the residency transition process, the more flexibility you have.
Timing Strategies to Minimize California's Tax Bite
While there are no magic tricks to eliminate California's claim on a property gain, there are legitimate timing strategies that can reduce your overall tax burden:
Strategy 1: Sell Before Establishing Texas Residency (Simplified Filing)
If you sell while still a California resident, you file a single California resident return. All income is on one return, and the Section 121 exclusion applies cleanly. There is no nonresident return, no withholding complexity, and no need to prove Texas residency. This is simpler but may result in higher total California tax if you have significant non-California income in the same year.
Strategy 2: Establish Texas Residency First, Then Sell (Complex but Potentially Lower Tax)
If you establish genuine Texas residency before selling, you file a California nonresident return. Only the California-source gain is taxed by California. Your non-California income escapes California tax entirely. However, this triggers the 3.33% withholding requirement and requires a nonresident return filing.
Strategy 3: Sell in January or Early in the Year
If you are planning to move mid-year, selling early in the calendar year — while you are still clearly a California resident — simplifies everything. You have a full California resident return, the exclusion applies, and there is no ambiguity about your residency status in the year of sale.
Strategy 4: Consider a 1031 Exchange for Investment Properties
If you own California rental property (not your primary residence), a 1031 exchange allows you to defer capital gains by reinvesting the proceeds in a "like-kind" property. This is a separate strategy from the primary residence exclusion, but it can be powerful for investment property owners who are relocating. Note: 1031 exchanges have strict timing requirements (45 days to identify a replacement property, 180 days to close).
No Strategy Is Universal
The optimal timing depends on your specific income, filing status, other California-source income, and the size of your gain. What saves one family money may cost another family more. This is exactly the kind of analysis a qualified CPA should perform with your actual numbers before you commit to a timeline.
What Happens to Capital Gains on Investment Properties?
If you own California investment or rental property, the rules are different from a primary residence sale:
- No Section 121 exclusion. The exclusion applies only to your principal residence. If you converted your home to a rental and then sell, you may get a partial exclusion based on the years it was your primary residence, but the rental years are fully taxable.
- California depreciation recapture. If you depreciated the property while it was a rental (which you were required to do), California taxes the recaptured depreciation as ordinary income, up to a rate of 9.3%.
- 3.33% withholding applies to nonresidents. If you have already moved to Texas when you sell, the full 3.33% withholding on the gross sales price applies (see Section 2 of this guide).
- Net Investment Income Tax (NIIT). At the federal level, gains on investment property may be subject to the 3.8% NIIT if your modified adjusted gross income exceeds $250,000 (married filing jointly). California does not have a separate NIIT.
For investment property owners, the interaction between California source income, depreciation recapture, and withholding makes CPA guidance essential. The tax impact can differ by tens of thousands of dollars depending on the strategy chosen.
How California Taxes Apply to Your Full Relocation Year
The year you move is typically the most complex tax year you will face. Here is what to expect:
- California resident return (Form 540) for the portion of the year you were a California resident. If you moved on June 30, you are considered a California resident for the first six months and a nonresident for the second six months.
- California nonresident return (Form 540NR) for the portion of the year you were a nonresident, reporting only California-source income during that period.
- California may require both forms in some cases, or they may accept a single Form 540NR that covers the full year with apportionment. Your CPA will determine the correct filing approach.
- Federal return (Form 1040) covers the full year. Your federal return is not affected by your state residency change — the IRS taxes you on worldwide income regardless of which state you live in.
Most relocators find that their California tax liability in the move year is concentrated in the gain on the property sale, which is California-source income regardless of when in the year the sale occurs.
Key Takeaways for Capital Gains Planning
- The IRC Section 121 exclusion ($250K single / $500K married) applies to both federal and California tax. Make sure you meet the 2-of-5-year ownership and use test.
- California taxes capital gains as ordinary income — there is no preferential rate. Any gain above the Section 121 exclusion is taxed at California's standard rates of 1% to 13.3%.
- Timing your sale relative to your residency change can affect how much of your income California can tax. Consult your CPA before setting a closing date.
- Investment properties do not qualify for the Section 121 exclusion and face additional complexities including depreciation recapture and mandatory withholding.
- The year of your move requires careful tax planning. Consider filing an extension if you need more time to organize your documentation.