Connect with WealthQuant
Real estate

1031 exchange vs. just selling — the California math

Selling a long-held rental in California stacks several layers of tax on one gain. Here’s when a 1031 exchange comes out ahead, when selling does, and the dates that decide it.

Updated September 2026 · 6 min read
Reviewed by Ginger Chien, WealthQuant Advisors

Key takeaways

  • Selling a long-held California rental stacks federal gain, recapture, the 3.8% surtax and California’s ordinary rates.
  • A 1031 exchange defers that tax rather than erasing it — unless you hold until the step-up.
  • The exchange must be set up before closing; 45 and 180 days are hard deadlines.
  • Exchange out of state and California still follows the gain.

The short answer

If you want to keep owning investment real estate, a 1031 exchange often comes out ahead of selling in California: it can defer federal capital-gains tax, depreciation recapture and California’s ordinary-income tax on the whole gain. Need the cash or want out of property? Selling may still win. Either way, decide before you list — the exchange must be set up before closing, and the deadlines start that day.

When to act

Before you list

Model selling, exchanging and holding side by side, and line up a qualified intermediary — the exchange must be in place before the sale closes.

Day 45

Deadline to identify replacement property in writing — generally up to three properties.

Day 180

Deadline to close on the replacement — or your tax-return due date, if earlier. After a late-year sale, that can mean filing an extension.

Every year after

If the replacement is outside California, file Form 3840 so California can track the deferred gain.

What “just selling” really costs in California

Selling a long-held rental in the Bay Area triggers more than one tax, and they stack. The gain is measured from your adjusted basis — what you paid, plus improvements, minus the depreciation you’ve taken — so years of write-offs make the taxable gain larger than the price change alone.

California also generally requires withholding at closing on the sale of California real property — often 3⅓% of the gross sales price — unless an exemption applies. It is a prepayment, not the final bill, but it comes out of your proceeds on the day you close.

  • Federal capital-gains tax, generally up to 20% on long-term gain.
  • Depreciation recapture: the part of the gain that comes from depreciation is generally taxed federally at up to 25%, and accelerated depreciation from a cost-segregation study can come back as ordinary income.
  • The 3.8% net investment income tax, which generally applies to rental gains for higher earners.
  • California tax on the entire gain as ordinary income — up to 13.3% — with no lower capital-gains rate.

What a 1031 exchange actually buys you

A 1031 exchange lets you sell investment or business real estate and roll the proceeds into other investment or business real estate without recognizing the gain now. It is a deferral, not a forgiveness. Your old basis carries into the new property, so the deferred gain — and the smaller depreciation deductions that come with a low basis — travel with you.

To defer all of it, you generally need to buy property of equal or greater value, reinvest all of the net proceeds and replace any debt you paid off. Cash you take out, or debt you don’t replace, is “boot” and is generally taxable. The proceeds must sit with a qualified intermediary; if the money reaches your account, the exchange generally fails.

The long game is the step-up. Under current law, property held until death generally receives a new basis equal to its value at that time, which can erase the deferred gain for your heirs. With the federal estate and gift exemption at $15 million per person from 2026 (indexed for inflation), exchanging and then holding can be a deliberate estate plan, not just a way to postpone a bill.

The clock: day 0, day 45, day 180

Timing is where exchanges succeed or fail. The clock starts the day the sale of your old property closes, and the deadlines generally aren’t extended for weekends, holidays or a slow market.

The last rule catches late-year sellers. Close in November and day 180 lands after April 15; without an extension on your return, the exchange window can end early. It is a one-form fix — but only if someone spots it in time.

  • Before closing: sign the exchange agreement with a qualified intermediary. You can’t set up the exchange after the sale.
  • By day 45: identify replacement property in writing — generally up to three properties, or more under stricter value tests.
  • By day 180: close on the replacement — or by your tax-return due date, if that comes first.
Hypothetical scenario

An illustrative example

Suppose a hypothetical Bay Area couple bought a rental years ago for $1 million. It is now worth $3 million, and they have taken $400,000 of depreciation, so their adjusted basis is $600,000 and their gain is $2.4 million. Sell outright, and all $2.4 million is taxable: the $400,000 depreciation portion at up to 25% federally, the rest at up to 20%, the 3.8% net investment income tax on top, and California’s ordinary rates on all of it — a combined bill of roughly $900,000 at top marginal rates. Exchange through a qualified intermediary into $3 million or more of replacement property, reinvesting all the proceeds, and that tax is deferred. If the replacement is in another state, California still tracks the $2.4 million gain. Round numbers only; this ignores selling costs, debt and other income, and is not a prediction or guarantee of any result.

Hypothetical and simplified, for illustration only — not a prediction or a guarantee. Real outcomes depend on your facts and on current law, which can change.

The California catch: the gain remembers where it came from

Many owners exchange out of California into lower-tax states — a rental in Texas, say, or a DST interest in property elsewhere. The federal deferral works the same way. California’s claim does not disappear.

When you exchange California property for property in another state, California generally keeps track of the deferred California gain. You file an annual information return, Form 3840, for as long as the gain stays deferred, and when you eventually sell the replacement in a taxable sale, California generally taxes the original California-source gain — even if you’ve since moved away.

Withholding matters here too. A qualifying exchange can be exempt from California’s withholding at closing, but the exemption has to be documented with escrow before the sale closes, and any boot can still be subject to withholding.

When just selling is the better answer

An exchange is a tool, not a default. Selling outright can make more sense when:

For owners who want to stay invested but are done managing tenants, a Delaware Statutory Trust (DST) can serve as the replacement property. DST interests are securities offerings, typically limited to accredited investors, and they trade control and liquidity for a hands-off income stream. We model them alongside a direct purchase, not instead of one.

  • You need the cash, or want out of real estate entirely.
  • The gain is modest, or you have losses that can offset it.
  • You can’t find a replacement you’d actually want to own within 45 days — a forced purchase can cost more than the tax it defers.
  • You’d rather spread the gain with an installment sale, or direct part of it through a charitable trust.
Questions

Common questions

Generally no. A 1031 exchange is for real estate held for investment or business use, not your primary residence. Your home may qualify for a separate exclusion instead — currently up to $250,000 of gain if single, $500,000 if married filing jointly, under long-standing rules. A former home that became a rental is more complex and worth modeling before you list.

Generally yes, eventually. California tracks gain deferred from California property through an annual filing (Form 3840) and generally taxes that gain when you sell the replacement property in a taxable sale — even if you no longer live in California.

Yes. A partial exchange is allowed, but the cash you receive — and any debt that isn’t replaced — is “boot” and is generally taxable. We model how much cash you can take before the tax cost outweighs the benefit of staying invested.

Run the numbers before you list.

A free Tax X-Ray models selling, exchanging and holding your property side by side — with California built in — while there’s still time to choose.

~30 minutes, free, no obligation.

Go deeper

The strategy behind this answer.

Property & legacy

Real Estate & Appreciated Assets

1031s, DSTs, cost seg — planned before you list.

More insights

Keep reading.

Exit planning · 6 min read

Why the closing table is too late — and what to do now.

Business owners · 6 min read

Defined benefit and cash balance plans, explained without the jargon — and why the set-up date matters. Figures illustrative.

Equity comp · 5 min read

Ordinary income at vesting, capital gains after — and why your withholding is often too low before the vest date.

Educational only. This article is general information based on our understanding of current law as of September 2026, which is subject to change; it is not tax, legal or investment advice. The example is hypothetical and illustrative, not a guarantee or prediction of any result. DST interests are securities with risks, including illiquidity and possible loss of principal. Consult your CPA/attorney — and, for an exchange, a qualified intermediary — before acting.