Home Blog 1031 Exchange Rules: How to Defer Capital Gain on Real Estate
Apartment building exterior representing rental real estate eligible for a 1031 exchange
Real Estate Tax

1031 Exchange Rules: How to Defer Capital Gain on Real Estate

The short answer

Bay Area CPA guide to Section 1031 exchanges: defer real estate gain and depreciation recapture. 45-day, 180-day, QI, and boot rules for San Jose landlords.

A Bay Area landlord selling a Mountain View 4-plex with a $2.6M gain (including $400K of depreciation recapture) faces roughly an $820,000 federal-plus-California tax bill in the year of sale. A properly executed Section 1031 like-kind exchange lets that same San Jose, Sunnyvale, or Palo Alto investor defer every dollar of that gain by rolling the proceeds into another piece of investment real estate.

The catch: the rules are unforgiving on timing, the qualified intermediary requirement trips up first-timers, and a single misstep with the proceeds can blow the whole exchange. This guide walks through what §1031 still covers after the 2017 Tax Cuts and Jobs Act killed personal-property exchanges, the two clocks you have to beat, what "like-kind" really means for real estate, how boot can sneak into an otherwise clean swap, and the "1031 until you die" strategy that turns deferral into permanent exclusion.

We work through these exchanges constantly with Bay Area landlords through our tax planning team at Silicon Valley Tax. SVT handles the tax reporting and planning around the exchange; the QI role itself is performed by independent firms (more on that below).

What Section 1031 Actually Does

Under IRC Section 1031, when you exchange real property held for investment or productive use in a trade or business for other like-kind real property, you do not recognize gain or loss at the time of the exchange. Two things get deferred:

  • Capital gain on the appreciation of the relinquished property.
  • Depreciation recapture under IRC §1245 and §1250. Unrecaptured §1250 gain on real-property depreciation is capped at a 25% federal rate. §1245 recapture on personal-property components (typical in cost-segregated buildings) is taxed at ordinary income rates with no 25% cap.

Deferral is not exclusion. Your basis in the new property carries over from the old property, adjusted for any boot received or additional cash invested. When you eventually sell the replacement property in a taxable transaction, all the deferred gain comes back, plus any new appreciation on top.

One huge change to remember: the 2017 Tax Cuts and Jobs Act eliminated §1031 for personal property. As of January 1, 2018, vehicles, equipment, aircraft, machinery, artwork, collectibles, and intangibles no longer qualify. Only real property qualifies today. If your CPA is still telling you that you can 1031 a fleet of trucks, find a new CPA.

The 45-Day Identification Rule

The first clock starts the moment you close on the sale of the relinquished property. Within 45 calendar days, you must identify the replacement property (or properties) in writing, sign the identification, and deliver it to the qualified intermediary. No weekends, no holidays, no extensions, no exceptions.

You can identify replacement properties using one of three rules:

  1. Three-property rule. You may identify up to three replacement properties, regardless of their total value. This is the rule most exchanges use.
  2. 200% rule. You may identify any number of replacement properties as long as their combined fair market value does not exceed 200% of the relinquished property's value.
  3. 95% rule. If you blow past both of the above, you can still qualify if you actually acquire 95% of the total value of all identified properties.

The identification must be unambiguous: street address or legal description, not "a duplex in Sunnyvale." If you list four properties without invoking the 200% or 95% rule, the entire identification is treated as if no properties were identified at all. The penalty for missing the 45-day deadline or fumbling the identification is the same: the exchange fails and the full gain is taxable in the year of sale.

The 180-Day Exchange Rule

The second clock also starts at the closing of the relinquished property. You have 180 calendar days from that date to actually close on the replacement property and complete the exchange. Or your tax return due date for that year, including extensions, whichever is earlier.

This last clause catches late-year exchangers. If you sell on November 15, 2026, your 180 days runs to May 14, 2027. But your 2026 tax return is due April 15, 2027. Without an extension, your real deadline is April 15, not May 14. Bay Area investors closing in Q4 should plan to extend their personal return to preserve the full 180 days.

The 180-day window runs concurrently with the 45-day window, not after it. You do not get 45 plus 180. You get 180 total, with the first 45 spent on identification.

The Qualified Intermediary Requirement

You cannot touch the sale proceeds. Actual or constructive receipt of the cash blows the exchange. The taxpayer must use an independent qualified intermediary (QI), sometimes called an accommodator or exchange facilitator, to hold the proceeds between the sale of the relinquished property and the purchase of the replacement.

The QI is named in the purchase and sale agreements, takes assignment of the contracts, receives the closing proceeds directly from the title company, holds them in a segregated escrow or qualified trust account, and then wires them to the closing for the replacement property. You never see the money.

Common QIs Bay Area investors use include Asset Preservation Inc, IPX1031 (a Fidelity subsidiary), and First American Exchange Company. Fees typically run $500 to $1,500 per exchange depending on complexity, plus a small interest credit on funds held. You will engage a QI directly for this role; SVT is a CPA and EA firm and does not act as a qualified intermediary. What we do is the tax planning, basis tracking, and Form 8824 reporting that surrounds the exchange.

One non-obvious rule: your CPA, your real estate broker, your attorney, and any other party who has acted as your agent within two years before the exchange are disqualified from serving as QI. You need a true third party.

What "Like-Kind" Means for Real Estate

The like-kind requirement for real estate is far broader than people assume. The IRS interprets it as any real property held for investment or productive use in a trade or business, exchanged for any other real property held for the same purpose. Type, grade, and quality do not matter. Improvement level does not matter.

Things that qualify:

  • Apartment building exchanged for office building
  • Bare land exchanged for an improved property
  • Strip mall exchanged for a self-storage facility
  • Single-family rental exchanged for a 30-unit apartment complex
  • Industrial warehouse exchanged for a vineyard
  • Leasehold interest with 30+ years remaining (including renewal options) per Treas. Reg. §1.1031(a)-1(c)(2) exchanged for fee-simple real estate
  • Tenant-in-common interests exchanged for fee-simple property

Things that do not qualify:

  • US property exchanged for foreign property. Domestic real estate must swap for domestic real estate. A Sunnyvale rental cannot be 1031'd into a villa in Portugal.
  • Personal residences. Your home is a §121 question, not a §1031 question. Investment property only.
  • Property held primarily for sale. Flippers and dealers in real estate do not qualify. The property must be held for investment or use in a trade or business.
  • Partnership interests. An LLC interest is personal property, not real property. You cannot exchange an interest in a partnership that owns real estate; the partnership itself has to do the exchange, or you have to take a drop-and-swap distribution first.

See the IRS Like-Kind Exchanges FAQ for the official guidance.

Boot: How Cash and Debt Relief Get Taxed

Even when the swap qualifies, you can owe tax on any "boot" received. Boot is the catch-all term for value received in the exchange that is not like-kind property. Two flavors show up most often:

  1. Cash boot. Money received from the QI at the end of the exchange because you bought down (replaced with a cheaper property) or pulled cash out.
  2. Mortgage boot. A net reduction in your liabilities. If your old property had a $1.5 million mortgage and your new property carries $1 million in debt, the $500,000 difference is treated as boot.

Boot is taxable up to the amount of gain you would have recognized in a fully taxable sale. The character (capital gain versus ordinary recapture) follows the underlying gain. The remaining gain stays deferred. To avoid boot entirely, the standard rule of thumb is: trade up in value and trade up (or equal) in debt.

Worked Example: Bay Area Landlord Exchange

Take a real-world Bay Area scenario. You bought a Mountain View 4-plex in 2010 for $800,000. Over fifteen years you have taken $400,000 in straight-line depreciation, so your adjusted basis is now $400,000. You list the property and sell for $3 million.

  • Realized gain: $3,000,000 sale price minus $400,000 adjusted basis = $2,600,000.
  • Composition: $400,000 of that is depreciation recapture (taxed at up to 25% federal as unrecaptured §1250 gain) and $2,200,000 is long-term capital gain (up to 20% federal plus 3.8% NIIT).
  • Tax in a straight sale: roughly $580,000 federal and another $240,000 to California (which taxes the entire gain at ordinary income rates up to 13.3%, computed as 12.3% top bracket plus 1% Mental Health Services Act surcharge on taxable income above $1M single / $2M MFJ). Call it $820,000 out the door.

Now run it through a 1031. You identify a Sunnyvale 8-plex listed at $3.2 million within 45 days, close on it within 180 days, and let the QI move the funds. You also wire in $200,000 of additional cash to cover the price difference, and your new mortgage exceeds the old one by enough to avoid mortgage boot.

  • Recognized gain: $0.
  • Deferred gain: $2,600,000.
  • Basis in Sunnyvale property: $400,000 (old basis) + $200,000 (new cash) = $600,000. Future depreciation on the new property is calculated off the carryover basis, not the $3.2 million purchase price.
  • Federal and California tax saved in year of exchange: roughly $820,000.

The deferred gain rides with the new property. If you sell the Sunnyvale 8-plex in a taxable transaction five years later for $4 million, your gain is calculated from the $600,000 carryover basis, not from $3.2 million. Which is exactly why most serious real estate investors never sell in a taxable transaction.

The "1031 Until You Die" Strategy

Deferral plus the step-up at death equals permanent exclusion. Under IRC §1014, when an asset passes to heirs at death, its basis is reset to fair market value on the date of death. All the deferred gain accumulated over a lifetime of 1031 exchanges disappears. Forever.

The strategy is simple in concept: every time you want to upgrade or reposition your real estate portfolio, do it as a 1031 exchange instead of a taxable sale. Keep deferring. Keep rolling. When you die, your heirs inherit the property at stepped-up basis. They can then sell with little or no gain, or hold and keep depreciating from the higher basis.

This is one of the most powerful estate-and-income tax strategies in the entire Code, and it is the reason high-net-worth real estate families build portfolios that span generations. The trade-off is that the assets stay illiquid and the basis stays low until death. For families with diversification needs or other liquidity goals, the math gets more nuanced and is best modeled alongside a broader plan with our tax planning team.

California Conformity (One of the Few Wins)

California is famous for breaking with federal tax treatment, but §1031 is one of the few areas where the state plays along. California conforms to the federal like-kind exchange rules, so deferred gain at the federal level is also deferred for California purposes.

One catch worth knowing: California enforces a clawback. If you exchange California property for out-of-state property and later sell the replacement property in a taxable transaction, California taxes the original deferred California-source gain whenever it is recognized, even if you have moved away. California Franchise Tax Board Form 3840 tracks this every year you hold the out-of-state replacement. Skipping the 3840 filing creates a perpetual lien on the deferred gain.

Planning a property exchange in the next 12 months? We model boot exposure, basis carryover, and California Form 3840 implications before you go under contract on the relinquished property. Schedule a complimentary consultation.

What Goes Wrong Without a CPA

The most common 1031 mistake we see at intake: a Bay Area landlord identifies "the duplex on Castro Street" within the 45 days but never gets a legal description or full street address signed and dated. The IRS treats the identification as void and the entire exchange fails. On a $2.6M deferred gain, that mistake costs roughly $820,000 of federal and California tax in the year of sale, due on April 15 with no installment relief.

The second pattern: investors who let sale proceeds land in their checking account "just for a few hours" before transferring to the QI. Actual or constructive receipt blows the exchange even if the money never gets spent. DIY filing software handles Form 8824 mechanically; it does not flag the QI requirement, the §1245-vs-§1250 recapture rate distinction, or the California Form 3840 clawback that follows out-of-state replacement properties forever. Those are the items where engagement pays for itself many times over.

Common Pitfalls to Avoid

  1. Touching the proceeds. Letting funds land in your account, even for a day, blows the exchange. Set up the QI before you go to closing.
  2. Vague identification. "A property in Cupertino" is not an identification. Use the legal description or full street address, signed and dated within the 45 days.
  3. Buying down without planning for boot. If you replace a $3M property with a $2.5M one, expect $500,000 of boot to be taxable.
  4. Forgetting depreciation recapture in your tax projection. A failed exchange exposes both capital gain and recapture. The recapture portion is often a surprise because investors think in price minus basis, not in net of accumulated depreciation.
  5. Ignoring the holding-period intent rule. Property has to be held for investment. The IRS has won cases against taxpayers who exchanged into a property and then converted it to a personal residence too soon. Safe-harbor practice is to rent the replacement property at fair market value for at least two years before any conversion.
  6. Missing Form 8824. Every 1031 exchange has to be reported on Form 8824, attached to the return for the year the relinquished property was sold. The form computes the recognized gain on boot, the deferred gain, and the basis in the new property. Skipping it is an audit invitation.

Action Items for Bay Area Landlords

  • Engage your QI before you go under contract on the sale. Adding QI language to a contract that has already been signed is a scramble and sometimes impossible.
  • Build the 45-day identification list before listing the relinquished property. Forty-five days flies when you are simultaneously trying to close on a sale.
  • Coordinate with your CPA on a tax projection that compares straight sale, partial exchange with boot, and full exchange. The right answer is fact-specific.
  • Watch your debt structure. The replacement property's mortgage should equal or exceed the relinquished property's mortgage to avoid mortgage boot.
  • Track basis in the new property carefully. Carryover basis affects future depreciation, future gain calculations, and any reverse or improvement exchange that comes after.
  • File Form 3840 every year if you exchanged California property into out-of-state property. The clawback follows the property forever.

When to Talk to Us

A clean 1031 exchange saves Bay Area landlords hundreds of thousands of dollars per transaction. A botched one leaves you holding a tax bill plus the costs of the failed exchange. The decisions that matter (timing the sale, picking the QI, modeling the boot, structuring the debt, planning the basis carryover) get made before the relinquished property closes, not after.

At Silicon Valley Tax, we help investors run the tax math on like-kind exchanges, coordinate with the QI, model boot exposure, prepare Form 8824, and integrate the exchange into the broader picture (cost segregation on the new property, estate planning, the eventual 1014 step-up). For related strategies that pair well with a 1031, see our notes on cost segregation for Bay Area rentals and our overview of tax planning for high-income Bay Area earners.

Schedule a complimentary consultation and we will walk through your specific exchange scenario, the 45-day and 180-day calendar, and the deferred-gain math for your property.

Planning a property exchange?

1031 exchanges live or die on timing. Talk to us before you list the relinquished property, not after.