A desk with tax documents, a calculator, and warm lamp light — representing the financial planning California sellers need before relocating to Texas
Blog / Wealth & Asset Transition

The Capital Gains Trap Californians Don't See Coming

How to time your sale and purchase so California does not take a bigger share than you planned.

By Bill Ross, Hill Country Homesteads Group

Last updated: July 2026 — reflects current federal and California tax rates.

Most California homeowners planning a move to Texas focus on the purchase side of the equation — what they will pay for a home in Boerne versus what they are leaving behind in San Jose or Los Angeles. That is the wrong place to start. The real question is how much of your California equity you actually keep after the sale, and the answer depends on a tax event that catches nearly every relocating seller off guard.

California taxes capital gains on real property at ordinary income rates — up to 13.3% — even for sellers who have already moved to another state. Combined with the federal long-term capital gains rate and the Net Investment Income Tax, the combined marginal rate can exceed 28%. For a Bay Area couple sitting on $800,000 in gains, that is not a rounding error. It is the difference between funding a Texas purchase outright and needing a mortgage.

This article walks through exactly how the math works, where the timing traps are, and what you can do to minimize or eliminate the tax hit [1][3].

The Section 121 Exclusion: Your First Line of Defense

The federal Section 121 exclusion lets you exclude up to $250,000 of capital gain (single) or $500,000 (married filing jointly) from the sale of a primary residence, provided you owned and lived in the home for at least two of the five years before the sale [1]. California conforms to this exclusion, which means the same amount is shielded at the state level [2][3].

For most California sellers relocating to Texas, this exclusion is the single most important variable in determining whether the move costs them tens of thousands or nothing at all in capital gains tax. The problem is that the exclusion has strict eligibility requirements, and missing the window — even by a few months — can convert a tax-free sale into a six-figure tax bill.

Section 121 Eligibility Requirements

Ownership test

You must have owned the home for at least 2 of the 5 years before the sale date

Use test

You must have lived in the home as your principal residence for at least 2 of the 5 years

Exclusion amount

$250,000 (single) or $500,000 (married filing jointly)

Frequency limit

Can only use the exclusion once every two years

The Most Common Timing Mistake

Homeowners who move out and rent the property — or leave it vacant — before selling often assume the clock keeps running. It does not. If you move out and do not sell within five years, you lose the exclusion entirely. Even within the five-year window, the use test requires two years of actual occupancy. If you move to Texas in January and sell in December, you have only one year of use — not enough.


California's Hidden Tax: What Happens to Gains Above the Exclusion

Here is the part that surprises most people: California does not have a separate capital gains tax rate. The state treats capital gains as ordinary income, taxed at the same rates as your salary — from 1% up to 13.3% [7]. This means the portion of your gain that exceeds the Section 121 exclusion is taxed at your marginal California rate, which for most relocating homeowners falls between 9.3% and 13.3%.

On top of the California rate, you also owe federal long-term capital gains tax (typically 15% for married couples in the relevant income range) and the 3.8% Net Investment Income Tax (NIIT) if your modified adjusted gross income exceeds $250,000 [5][6]. When you stack all three — federal, NIIT, and California — the combined rate on gains above the exclusion can reach 28.1%.

Combined Tax Rate on Gains Above the Exclusion

15%

Federal long-term capital gains (married, taxable income $98,901–$613,700) [6]

3.8%

Net Investment Income Tax — applies when MAGI exceeds $250,000 (married) [5]

9.3%

California marginal rate (typical, $70,612–$360,659 bracket) — up to 13.3% for highest earners [7]

28.1%
Combined

Total marginal tax on gains above the Section 121 exclusion (typical scenario)

California's top rate of 13.3% includes a 1% Mental Health Services Act surcharge on income exceeding $1 million. For gains in the $360,000–$432,000 range, the California rate is 10.3%. Even at the "lower" end, 9.3% is significant when applied to a six-figure gain [7].


Three Real Scenarios: Where the Trap Shows Up

We modeled three common selling situations using 2025–2026 market data and current tax rates [1][6][7]. Each scenario assumes the seller qualifies for the maximum Section 121 exclusion, itemizes deductions, and faces a combined federal + state + NIIT rate on gains above the exclusion.

Scenario 1: Bay Area Couple (Married)

12 years owned

Capital Gains Calculation

Sale price $1,500,000
Adjusted basis (purchase + improvements) -$785,000
Seller-side costs (commission, tax, closing) -$106,800
Net gain $608,200
Section 121 exclusion ($500K married) -$500,000
Taxable gain $108,200

Tax on Excess Gain

Federal capital gains (15%) $16,230
California state tax (9.3%) $10,063
Net Investment Income Tax (3.8%) $4,112
Total capital gains tax $30,405
Effective rate on excess gain 5.0%
Net proceeds after all costs and taxes $1,362,795

Scenario 2: LA Single Professional

7 years owned

Capital Gains Calculation

Sale price $1,100,000
Adjusted basis (purchase + improvements) -$565,000
Seller-side costs (commission, tax, closing) -$70,950
Net gain $464,050
Section 121 exclusion ($250K single) -$250,000
Taxable gain $214,050

Tax on Excess Gain

Federal capital gains (15%) $32,108
California state tax (9.3%) $19,907
Net Investment Income Tax (3.8%) $8,134
Total capital gains tax $60,149
Effective rate on excess gain 13.0%
Net proceeds after all costs and taxes $968,901

Scenario 3: Sacramento Downsizer (Married)

15 years owned

Capital Gains Calculation

Sale price $650,000
Adjusted basis (purchase + improvements) -$410,000
Seller-side costs (commission, tax, closing) -$39,715
Net gain $200,285
Section 121 exclusion ($500K married) -$200,285
Taxable gain $0

Tax on Excess Gain

No capital gains tax owed

The Section 121 exclusion covers the entire gain.

Net proceeds after all costs and taxes $610,285

The Pattern

The Sacramento couple — with modest gains — pays zero in capital gains tax because the $500,000 exclusion covers everything. The Bay Area couple, with nearly $800,000 in gains, owes roughly $84,000 in combined federal, state, and NIIT taxes. The LA single professional, with a $535,000 gain and a $250,000 exclusion, faces the steepest effective rate: over $82,000 in taxes on a $285,000 taxable gain. That is money that could have funded a Texas down payment.


The Domicile Timing Trap: When You Sell Matters as Much as What You Sell

The capital gains exclusion is straightforward. What complicates a cross-state relocation is California's treatment of the gain as California-source income — and the timing rules that determine whether California considers you a resident or nonresident at the time of sale [3][4].

A

Sell While Still a California Resident

You sell your California home in the same tax year you move to Texas — or before you move at all. You are a California resident for the full year (or most of it). California taxes the full gain as ordinary income on your state return. The Section 121 exclusion still applies, but the gain above the exclusion is taxed at your full California marginal rate. You file a full-year California return.

Risk level: Moderate. You owe California tax on the excess gain, but you have clear filing status and no residency ambiguity.

B

Establish Texas Domicile, Then Sell Within 18 Months

You move to Texas, establish your driver's license, voter registration, and bank accounts, then sell the California home within 12–18 months. California considers you a nonresident, but the gain from California real property is still California-source income [3]. You report the gain on a California nonresident return (Form 540NR). The Section 121 exclusion applies, and any excess gain is taxed at California nonresident rates — which are the same ordinary income rates as residents.

Risk level: Moderate to High. The FTB may challenge your nonresident status if you have not fully severed California ties. Document every step of your domicile change [4].

C

Establish Texas Domicile, Then Sell After 2+ Years

You move to Texas, fully establish domicile, and rent or hold the California property for two or more years before selling. The gain is still California-source income, but your nonresident status is well-established. The Section 121 exclusion still applies if you meet the ownership and use tests — but the use test requires two years of occupancy within the five years before sale. If you have been renting it out, you may have already lost eligibility for the exclusion.

Risk level: Low for residency — but watch the use test. Your nonresident status is solid, but holding the property too long without living in it can disqualify the Section 121 exclusion entirely.


California Tax Brackets: What Rate Applies to Your Gain

Because California taxes capital gains as ordinary income, the rate on your gain depends on your total taxable income for the year. Here are the 2026 California brackets. For most sellers with a job or retirement income, the marginal rate on a five- or six-figure gain falls in the 9.3%–13.3% range [7].

Taxable Income (Single) Marginal Rate
$0 – $10,756 1.0%
$10,756 – $25,499 2.0%
$25,499 – $40,245 4.0%
$40,245 – $55,866 6.0%
$55,866 – $70,612 8.0%
$70,612 – $360,659 9.3%
$360,659 – $432,787 10.3%
$432,787 – $721,314 11.3%
$721,314 – $1,000,000 12.3%
Over $1,000,000 13.3%

California taxes capital gains at ordinary income rates. There is no separate long-term or short-term capital gains rate at the state level. The 1% Mental Health Services surcharge applies to taxable income over $1 million. Source: California FTB [7].


Five Strategies to Minimize the Capital Gains Hit

The goal is not to avoid paying taxes you legally owe. The goal is to structure your timing, documentation, and transaction so you pay the minimum — and to make sure you do not accidentally lose the Section 121 exclusion or trigger a residency challenge [1][4].

1

Time Your Sale to Stay Within the 2-Out-of-5-Year Window

If you plan to move to Texas and sell the California home later, calendar the two-year use requirement backward from your target sale date. You need to have lived in the home for at least 24 of the last 60 months. If you move out in March 2026, you have until March 2031 to sell while still qualifying — assuming you owned the home for two years before moving out. Do not let the clock run out unknowingly [1].

2

Establish Texas Domicile Before Closing

File for your Texas driver's license, register to vote, open a local bank account, update your address with the IRS and all financial institutions, and file your homestead exemption. The stronger your Texas paper trail before the sale, the less leverage the FTB has to challenge your nonresident status. Do all of this before the closing date, not after [4].

3

Document Capital Improvements to Increase Your Basis

Every dollar of capital improvement — a new roof, kitchen remodel, HVAC replacement, added square footage — increases your cost basis, which reduces the taxable gain. Many long-term California homeowners have tens of thousands in improvements they never documented. Gather receipts, permits, and contractor invoices before listing. This is one of the simplest ways to reduce your gain with no tax planning tricks involved [1].

4

Consider Selling in a Low-Income Year

If you are retiring or transitioning between jobs, the year you sell may have lower total income. Because California taxes gains at ordinary income rates, a lower total income can push the marginal rate down. A $300,000 gain on a year with $50,000 in salary lands in a different bracket than the same gain on a year with $200,000 in salary. Talk to your CPA about which tax year produces the lowest combined rate [7].

5

Do Not Sell an Investment Property as a Primary Residence

If you converted a California rental to your primary residence to use the Section 121 exclusion, the IRS requires you to have lived in it for at least two of the five years before the sale. But California also requires prorating the exclusion based on the ratio of nonqualified use years. If you rented the property for six years and lived in it for two, only the two years of personal use qualify. The remaining gain attributable to the rental period is fully taxable. A 1031 exchange is generally the better path for investment properties [9].


The FTB "Closest Connections" Test: Why Documentation Matters

If you sell your California home as a nonresident and the gain exceeds the Section 121 exclusion, you will file a California nonresident return (Form 540NR). But if the Franchise Tax Board believes you never truly left California, they can audit your residency status and tax your worldwide income for that year [4].

The FTB uses a "closest connections" test that evaluates the totality of your ties. No single factor is dispositive, but the more California ties you retain, the weaker your nonresident position.

Strengthens Texas Residency

Texas driver's license
Texas voter registration
Texas bank accounts
Texas homestead exemption filed
Texas vehicle registration
IRS address change filed

Weakens Nonresident Claim

California driver's license retained
California voter registration active
California bank accounts as primary
Professional licenses in California
California social clubs and memberships
Children enrolled in California schools

The 546-day safe harbor rule (California Revenue and Taxation Code §18152.5) provides a presumption of nonresident status for individuals who leave California under an employment-related contract for at least 546 consecutive days [8]. However, this safe harbor applies only to employment situations — it does not cover retirees or individuals without a qualifying employment contract. For most relocating homeowners, the closest-connections test is the relevant standard.


Why This Matters for Your Texas Budget

Capital gains tax is not an abstract line item. It is money that directly reduces the cash available for a Texas down payment, closing costs, or an emergency reserve. For the Bay Area couple in Scenario 1, the $84,000 in combined taxes represents a full year of mortgage payments on a $500,000 Texas home — or roughly 17% of the home's value that vanishes into taxes instead of building equity.

When you are planning the financial mechanics of a cross-state move, the sequence matters. Selling your California home, paying the taxes, and then buying in Texas with what remains is the most common path — but it is not the only one. Coordinating the timing of both transactions, potentially with a bridge loan or a simultaneous close, can affect the tax year in which the gain is recognized and, therefore, which tax rates apply [1][3].

A coordinated close — where the California sale and Texas purchase happen within the same tax year — also means you may be able to offset the capital gains against other deductions or time the transaction to a year with lower total income. This is one of the areas where working with a CPA who understands cross-state transactions pays for itself many times over.


Frequently Asked Questions

Do I owe California capital gains tax if I sell my home after moving to Texas?

California generally treats the sale of California real property as California-source income, regardless of where you live at the time of the sale. If the gain exceeds the Section 121 exclusion, California will tax the excess at ordinary income rates (up to 13.3%). However, if the gain falls entirely within the $500,000 married/$250,000 single Section 121 exclusion, there is no California tax owed because California conforms to the federal exclusion [1][3].

How long do I need to live in my California home to qualify for the Section 121 exclusion?

You must have owned and used the home as your principal residence for at least two of the five years preceding the sale. This is the "2-out-of-5-year" test. If you move out and rent the home for three years before selling, you lose the exclusion entirely. Planning your departure date relative to this window is one of the most important tax decisions in a cross-state relocation [1][2].

Can I avoid California taxes by selling my home after I officially become a Texas resident?

Changing your domicile to Texas helps with future income, but it does not eliminate California's claim on gains from the sale of California real property. California treats gains from in-state real property as California-source income even for nonresidents. The key variable is whether the gain falls within the Section 121 exclusion — if it does, you owe nothing to either state. If it exceeds the exclusion, California taxes the excess regardless of your new residency [3][4].

What happens if I sell my California home before completing my move?

Selling before you establish domicile in Texas means you are still a California resident at the time of sale. This has two consequences: (1) the full gain is reportable on your California return (though the Section 121 exclusion still applies), and (2) California will consider you a resident for that tax year, potentially taxing your worldwide income. If you sell in the same year you move, consult a CPA about a part-year resident return [3][4].

What is the FTB "closest connections" test and why does it matter?

If the California Franchise Tax Board (FTB) challenges your nonresident status, they apply a "closest connections" test. They examine factors like where you maintain your driver's license, voter registration, bank accounts, professional memberships, and social ties. If the FTB determines you are still a California resident, you owe state income tax on worldwide income for that year. Establishing all Texas ties before selling the California home strengthens your position [4][5].


Sources

  1. [1]
  2. [2]
  3. [3]
  4. [4]
  5. [5]
  6. [6]
  7. [7]
  8. [8]
  9. [9]

Planning a cross-state sale and purchase?

The timing and tax implications are specific to your situation. Reach out for a no-pressure conversation about your timeline, your numbers, and what questions to ask your CPA before you list.