8 Strategic Ways to Avoid Capital Gains Tax When Selling Rental Property in California

Table of Contents

Every year, California rental property owners walk into a sale they spent years preparing for and walk out with far less than they expected. Not because the deal fell apart. Because the tax bill arrived.

Most investors underestimate what selling a rental property in California actually costs at exit. 

Between federal taxes, state taxes, and a separate charge on the depreciation deductions claimed over the years, the combined tax exposure is consistently one of the largest financial surprises an investor faces. 

By the time the numbers land, options are limited.

Knowing how to avoid capital gains tax when selling rental property in California before a sale closes is what determines how much equity an investor actually keeps.

This article is written from Stepp Commercial’s experience working through more than 1,400 multifamily transactions across Southern California, representing over $3.5 billion in closed sales volume. 

1. Use a 1031 Exchange to Defer Every Dollar of Tax

There is a common belief that a 1031 exchange makes the tax go away. But actually, it does not. 

What it does is move the tax forward in time by reinvesting the full proceeds into a new property rather than triggering a taxable sale.

For a disciplined investor who continues reinvesting across multiple properties over the years, that deferral can function effectively as permanent tax protection. 

The liability travels with the portfolio. It never disappears until the investor either sells without reinvesting or passes the property to heirs.

For a Southern California apartment building owner rolling equity from one property into the next, the 1031 exchange remains the most powerful exit tool available. 

The DST market, one of the most widely used 1031 replacement structures, raised $8.41 billion in equity in 2025, a 49% increase from the year before. That volume reflects how broadly California investors are already using this strategy to protect their exits.

For the exchange to work, four requirements must be met without exception:

RequirementWhat It Means
Qualified IntermediaryMust be appointed before the sale closes, not after
Property IdentificationReplacement property must be identified within 45 days
Replacement Property ClosePurchase must close within 180 days of the original sale
Like-Kind RequirementAny investment property qualifies, including apartment buildings

Missing either the 45-day or 180-day deadline cancels the exchange entirely. There are no extensions and no exceptions. The full tax bill becomes due that year.

One rule that catches California investors off guard: the state’s clawback provision under Revenue and Taxation Code Section 18032. If the replacement property is located outside California, the state still tracks the original deferred gain. 

When that out-of-state property eventually sells, California collects its portion, even if the investor has relocated to Texas or Nevada years earlier.

For a full breakdown of how these rules apply to apartment building transactions specifically, the 1031 exchange rules for apartment buildings California covers the exchange structure in detail.

2. Increase Your Adjusted Basis with Capital Improvements

Every improvement made to a property during the years of ownership can reduce the taxable gain at the time of sale. The gain is calculated by subtracting what the property originally cost (plus qualifying improvements) from what it sells for. 

Every dollar added to that cost figure through documented improvements is a dollar removed from the taxable gain.

This is one of the simplest ways to reduce capital gains tax on real estate in California, and one of the most consistently ignored. 

Investors who track improvement costs throughout ownership arrive at sale with a much stronger position than those who relied only on the original purchase price.

The distinction between what qualifies and what does not matters:

Qualifies as a Capital ImprovementDoes Not Qualify
Roof replacementExterior painting
New HVAC systemRoutine landscaping
Kitchen or bathroom remodelMinor plumbing repairs
Structural additionsGeneral cleaning
New plumbing or electrical systemsCarpet cleaning

Documentation is essential. Receipts, contractor invoices, and permits filed during the holding period are what support the adjusted cost calculation if the IRS or California Franchise Tax Board raises questions.

This strategy works best as part of a broader plan. On a highly appreciated Southern California property, basis adjustments alone rarely close the gap completely. Paired with another strategy on this list, they deliver meaningful results.

3. Time Your Sale to a Lower-Income Year

California taxes all capital gains as ordinary income, the same way it taxes wages. A property held for two years and a property held for twenty pay the same state rate, reaching up to 13.3% for the highest earners. 

Federal taxes are different. The rate an investor pays at the federal level depends on their total income in the year of the sale, not the property’s value or how long it was held.

Filing Status0% Rate15% Rate20% Rate
SingleUp to $49,450$49,451 to $545,500Above $545,500
Married Filing JointlyUp to $98,900$98,901 to $613,700Above $613,700

An investor approaching retirement, taking a lower-income year, or separating the sale of a business from the sale of a property can shift between federal brackets. 

On a large gain, that shift can mean tens of thousands of dollars in federal savings, without changing anything about the property itself.

This strategy requires CPA coordination well before a property is listed. Aligning exit timing with the right income year also means understanding the current market. 

The best time to sell a multifamily property in Los Angeles provides a market-timing framework that helps investors align pricing conditions with their tax planning calendar.

Man calculating figures on tax documents at a desk, illustrating how depreciation recapture surprises sellers with tax rates reaching 25% federally at sale.

4. Convert the Rental Property to a Primary Residence (With Caveats)

Section 121 of the Internal Revenue Code allows homeowners to exclude a portion of their gain when selling a primary residence. 

Single filers can exclude up to $250,000, and married couples filing jointly can exclude up to $500,000, as long as the property served as the primary residence for at least two of the last five years before the sale.

This is one of the most frequently cited capital gains tax exemptions in California real estate. It is also one of the most consistently misapplied.

The Nonqualified Use Rule:

Any period the property operated as a rental is classified by the IRS as nonqualified use. 

The gain from those years cannot be excluded, regardless of how long the owner lives in the property afterward.

A straightforward example makes this clear:

  • Total ownership period: 10 years
  • Years rented out: 8
  • Years used as primary residence: 2

Only 20% of the total gain qualifies for the exclusion. The other 80% is fully taxable. Beyond that, depreciation recapture is owed in full, on top of everything else, regardless of whether the exclusion applies.

Here is what the depreciation recapture exposure looks like in plain terms:

Depreciation ClaimedFederal Recapture Tax (25%)California State Tax AddedTotal Recapture Cost
$50,000$12,500$4,650 to $6,650$17,150 to $19,150
$100,000$25,000$9,300 to $13,300$34,300 to $38,300

As Hayden Adams, Director of Tax and Wealth Management at the Schwab Center for Financial Research, explains: 

“First, the depreciation is subtracted from your cost basis, potentially generating larger capital gains on a sale. Second, assuming your sale price is higher than your cost basis, the IRS taxes the depreciation portion as ordinary income, up to a maximum of 25%, depending on your income level.”

For a long-term landlord who held a property for a decade or more and rented throughout, this strategy rarely produces the outcome most articles suggest. Running the actual numbers with a CPA before making any residency move is essential.

5. Spread the Tax Burden with an Installment Sale

An installment sale structures the transaction so the buyer pays the seller over time in scheduled installments. The tax on the gain is then recognized proportionally as each payment arrives, rather than all at once in the year of the sale.

This matters for California sellers because the state’s income tax is progressive. A large gain recognized entirely in one year can push an investor into the highest bracket. 

Spreading that same gain across two or more tax years, and staying within a lower bracket for each, can reduce the state tax bill meaningfully without changing the total sale price.

To put it in concrete terms: on a $300,000 gain, paying California’s top rate in a single year creates a much larger state tax obligation than spreading that gain across two years at a lower rate. The savings from that difference can be significant.

Two practical limitations apply:

  • The seller carries risk. If the buyer misses payments, recovering that income requires legal action.
  • The buyer must agree to seller financing. This type of structure is more common in off-market and negotiated transactions than in competitively bid deals.

For investors who want to exit but cannot absorb a large single-year tax event, and who do not want another property, the installment sale is a practical option that often gets overlooked.

Couple sorting through receipts and financial documents at a table, showing how missing records can trigger higher taxes and increased taxable gains at sale.

6. Use Capital Losses to Offset the Gain

Tax-loss harvesting means selling underperforming investments in the same tax year as the rental property sale. Stocks, bonds, or other real estate held at a loss can offset the capital gain on a dollar-for-dollar basis.

The IRS rules work as follows:

  • Capital losses offset capital gains first, before reducing ordinary income
  • If losses exceed the total gain, up to $3,000 of the remaining excess can reduce ordinary income per year
  • Any unused losses carry forward indefinitely into future tax years

One restriction to watch: the wash-sale rule. If an investor sells a security at a loss and repurchases the same or a substantially identical security within 30 days, the IRS disqualifies that loss entirely.

As a standalone strategy for investors dealing with significant appreciation on a California rental property, tax-loss harvesting will not solve the full tax exposure. Combined with another strategy from this list, it adds a meaningful reduction to the final bill.

Knowing how to avoid capital gains tax when selling rental property in California often comes down to layering strategies rather than relying on any single one.

7. Hold the Property Until Inheritance to Eliminate the Gain

This is the only strategy on this list that eliminates the accumulated capital gains rather than deferring them.

According to Tom Wheelwright, CPA and author of Tax-Free Wealth, the relationship between these two strategies is straightforward: 

“The 1031 exchange is powerful, and then with proper estate planning, it’s huge.”

Under IRC Section 1014, the step up in basis on rental property in California resets the cost basis for the heirs to the property’s fair market value on the date of the original owner’s death. Every gain built up during that owner’s lifetime is erased at that moment.

A direct example: an investor purchases a Los Angeles apartment building in 1995, executes a series of 1031 exchanges over the years, and holds the final asset at a fair market value of $4 million at the time of death. 

The heirs inherit with a $4 million basis. None of the appreciation accumulated over three decades triggers a tax event.

California honors these federal stepped-up basis rules, making this a legitimate and widely used strategy for investors who treat their portfolio as a multi-generational asset.

A few important notes:

  • This approach works best when paired with a 1031 exchange strategy, as each exchange defers the gain while the portfolio continues growing
  • For very large estates, federal estate tax may apply depending on total asset value, requiring separate estate planning
  • The step-up applies to the property’s value at death, not to any income the property generated while the investor held it

8. Use a Self-Directed IRA to Shield Future Real Estate Income

A self-directed IRA allows investors to hold real estate inside a tax-advantaged retirement account. Within a traditional self-directed IRA, gains accumulate without current taxation. 

Within a Roth self-directed IRA, qualifying gains can be withdrawn tax-free under the right conditions.

This strategy does not apply to properties already held outside the IRA. It is a tool for future acquisitions, not a way to shelter a property an investor already owns in their personal name.

Key constraints to understand before pursuing this path:

  • IRS prohibited transaction rules restrict how the account owner interacts with properties held inside the account
  • Disqualified persons rules limit who can provide services to those properties
  • Unrelated Business Income Tax may apply to leveraged real estate transactions within the account

For investors still in the acquisition phase of their Southern California portfolio strategy, best neighborhoods to buy apartment buildings in Los Angeles covers current submarket performance and pricing through 2026 and can help narrow down where to deploy capital next.

Frequently Asked Questions

How to avoid capital gains tax when selling rental property in California? 

The most effective strategies are the 1031 exchange, timing the sale to a lower-income year, increasing the adjusted basis through documented improvements, and holding the property until death. Most investors combine two or more of these depending on their situation.

Does California give investors a lower tax rate on long-term capital gains? 

No, California taxes all capital gains as ordinary income, regardless of how long the property was held. There is no preferential long-term rate at the state level, which makes federal bracket planning and 1031 exchange strategy especially important for California sellers.

If I complete a 1031 exchange and buy a property in another state, can California still tax me? 

Yes, under California’s clawback provision, the state tracks the deferred gain from out-of-state 1031 exchanges and collects its portion when the replacement property eventually sells, even if the investor has since moved to another state.

What is depreciation recapture and why does it matter? 

Depreciation recapture is the IRS requirement to repay the tax benefit of deductions claimed during ownership. The federal rate is capped at 25%. 

California adds its own income tax rate on top of that. Investors who claimed significant depreciation over a long hold period often find this is the largest single component of their exit tax bill.

What happens if I miss the deadlines in a 1031 exchange? 

The exchange is invalidated entirely. There are no extensions or second chances. The full capital gains tax liability becomes due for that tax year, which is why setting up the qualified intermediary before the sale closes is non-negotiable.

Man marking critical dates on a wall calendar, illustrating how missed 45-day identification and 180-day closing deadlines kill 1031 exchanges with no extensions.

Planning Your Multifamily Exit Before Selling in California

The investors who retain the most equity on a California rental property sale are not the ones who got lucky with timing. They are the ones who started planning the exit well before the listing agreement was signed.

Stepp Commercial works exclusively with multifamily investors across Southern California, advising on the sale, acquisition, and exchange of apartment buildings. 

With over $3.5 billion in completed transaction volume and direct experience structuring 1031 exchanges alongside the exit process, the firm brings transaction-level advisory to every client conversation.

If you are evaluating a sale or exploring your reinvestment options, contact Stepp Commercial today for a complimentary consultation.

Browse properties:

Long Beach

26 Units

Price: $12,200,000

Los

28 Units

Price: $7,400,000

Long Beach

18 Units

Price: $7,000,000

Los Angeles

44 Units

Price: $6,995,000

Long Beach

28 Units

Price: $6,685,000

Long Beach

24 Units

Price: $6,300,000

Long Beach

24 Units

Price: $5,300,000

Torrance

17 Units

Price: $5,225,000

Long Beach

16 Units

Price: $4,995,000

Long Beach

22 Units

Price: $4,850,000

Long Beach

20 Units

Price: $4,800,000

Real Results

Explore Real-World Case Studies

See how we execute complex 1031 exchanges, reposition capital into high-growth markets, and secure passive income for California investors.

What's Your Next Move?

Market conditions are shifting. Whether you’re acquiring, exchanging, or selling, timing matters. Get actionable insights tailored to your goals and the current market landscape.

Get an Estimate for Your Property

Request More Information About This Property