How do you avoid paying capital gains in California? What is a simple trick for avoiding capital gains tax? Is there a capital gains exemption in California? How long do you have to buy another house to avoid capital gains in California?
Selling real estate can be one of the largest financial transactions people make, and selling real estate in California can trigger a shockingly large tax bill. So many sellers obsess over price and market timing but ignore the one factor that can quietly cost them thousands, or even hundreds of thousands, of dollars: taxes.
If you’ve asked yourself, “How do I avoid capital gains tax in California?” before the deal is underway, you’ve made the right move. Some of the best planning options are only available in the early stages of selling.
It’s difficult to completely avoid capital gains tax in California, but you may be able to reduce or defer it through the Section 121 home-sale exclusion, a Section 1031 exchange for investment property, basis planning, and careful timing.
This article explains the major tax concepts that can affect real estate sales in California. The goal is not to provide a step-by-step tax strategy, but to outline the key issues property owners should understand before selling. Many tax outcomes are shaped before a transaction closes, which is why planning conversations with qualified legal and tax professionals often begin early in the process. If you’re thinking about selling real estate, it’s worth having that conversation early—whether it’s with CunninghamLegal or your CPA—so you can move forward with a clear plan rather than reacting after the fact.
Are you trying to avoid capital gains taxes on assets other than real estate? Here’s a broader article on how to avoid capital gains taxes.
Understanding Capital Gains Tax in California When Selling Real Estate
Selling real estate can trigger several different taxes at the same time, and this is where people often get surprised. You may be dealing with federal capital gains tax, California state income tax, and sometimes depreciation recapture if the property was used as a rental.
If you’re trying to figure out how to avoid or reduce capital gains tax, the first step is simply understanding how these taxes work and how they stack together.
How Does California Calculate Capital Gains on Real Estate?
Capital gain is simply the difference between what you paid for a property and what you sell it for. You begin with your original purchase price, and then that number moves over time. If you put money into the property, that can increase your basis. If you’ve taken depreciation, that can reduce it. Even selling expenses can factor into the calculation.
At the federal level, the IRS splits gains into short-term and long-term. Hold the property for a year or less and you’re usually taxed at your ordinary income rate. Hold it longer than a year and it typically falls into the long-term category, which often comes with lower tax rates. Most real estate falls into that long-term bucket, but don’t let that fool you—the gain can still be large enough to create a meaningful tax bill.
So when we’re planning, we’re really looking at three numbers: what you paid for your property, what it’s worth today, and how that basis has changed over time. That’s where the conversation starts, because those numbers tell us how big the tax exposure is and what, if anything, we can do about it.
Does California Tax Capital Gains?
Yes. California does tax capital gains.
Unlike some states, California does not provide a separate state capital gains tax rate. Instead, capital gains are treated as ordinary income and taxed according to the state’s income tax brackets.
This treatment can increase the overall tax burden. When property is sold, the gain may be subject to federal capital gains tax, the federal net investment income tax of 3.8%, and California income taxes. Because California tax rates can reach the highest brackets in the country, the combined tax liability can represent a significant portion of the gain.
This is why many property owners ask early in the process whether it’s possible to reduce capital gains taxes through planning.
Depreciation and Depreciation Recapture
Investment property and rental property come with a tax benefit called depreciation. Each year, the IRS permits a deduction that reflects the gradual wear and tear of the building, which reduces your taxable income while you own the property. That’s one of the reasons rental real estate can be attractive from a tax standpoint.
But there’s a catch. When you sell the property, the IRS looks back at the depreciation you claimed and may require something called depreciation recapture. In simple terms, some of those deductions get pulled back into the tax calculation and taxed—often at higher federal tax rates.
That’s why depreciation can increase the tax bill when an investment property is sold. It helped you reduce income taxes during the years you owned the property, but part of that benefit may come back into play at the sale.
The strategies available can be very different depending on whether the property is your primary residence, a rental property, or another type of investment asset. Before selling, it’s usually wise to sit down with a qualified advisor and run the numbers so there are no surprises when the transaction closes.
What Is the Primary Residence Capital Gains Exclusion?
The Primary Residence Capital Gains Exclusion is a tax rule that lets you exclude up to $250,000 of profit ($500,000 if married filing jointly) from the sale of your primary home, if you meet the ownership and use requirements.
For many people selling their home, the primary residence capital gains exclusion is the first place to look when trying to reduce capital gains tax on a home sale in California.
Under federal law, homeowners may exclude a portion of the gain from taxes. The current limits are:
- Up to $250,000 of gain for single taxpayers
- Up to $500,000 for married couples filing jointly
So if you bought a home years ago, the property appreciated, and you sell it for a gain, that first chunk of gain may be excluded entirely if you qualify.
Now here’s where many people get tripped up. The IRS has ownership and use rules. In general, you must have owned and lived in the property as your primary residence for at least two of the last five years before the sale. It does not have to be the most recent two years, but it does matter.
Another common misconception is that you can avoid capital gains tax simply by buying another home. Buying another property does not automatically eliminate the tax!
What actually matters is whether you meet the two-out-of-five-year rule and qualify for the exclusion. When you do, it can remove a significant portion of the taxable gain from the sale. You claim this Primary Residence Capital Gains Exclusion by reporting the sale on your tax return and applying the exclusion on IRS Form 8949 and Schedule D, assuming you meet the eligibility rules.
Credits, Deductions, and Deferrals — How Are They Different?
A lot of confusion around taxes comes from mixing up three completely different concepts: tax credits, tax deductions, and tax deferrals. Here are the key distinctions.
- Tax credits directly reduce the amount of taxes owed. If you receive a $10,000 tax credit, your tax bill drops by $10,000. It is a dollar-for-dollar reduction in your tax liability. From a planning perspective, credits are usually the most powerful tax benefit because they reduce the final amount you pay to the federal government or the state.
- Tax deductions reduce taxable income rather than the tax bill itself. For example, if you receive a $10,000 deduction and you are in a 37 percent federal income tax bracket, that deduction may reduce your taxes by roughly $3,700. Deductions still matter, especially for people with high adjusted gross income, but they are less efficient than credits because the benefit depends on your tax bracket.
- Tax deferral means the taxes are not eliminated—they are simply postponed. Instead of paying taxes today, you may pay them years later. Deferral strategies are common in real estate planning because they allow investors to defer capital gains taxes while continuing to reinvest their proceeds into other assets.
Deferral can still be powerful. When taxes are postponed, investors can keep more capital invested and potentially grow those funds over time. In some cases, future events such as changes in tax law, lower taxable income, or estate planning outcomes may reduce the eventual tax burden.
Most legitimate strategies do not eliminate capital gains tax entirely. They usually reduce it, defer it, or prevent unnecessary gain recognition through exclusions and timing.
Step-Up in Basis at Death — Why Timing Matters
Timing matters because when someone dies, the capital gains tax bill can reset—and that’s called a step-up in basis. It is simple in theory but can dramatically change the tax outcome when appreciated assets such as real estate are sold.
When someone dies owning a capital asset like real estate, the property’s cost basis is adjusted to its fair market value on the date of death. This means the historical purchase price often becomes irrelevant for tax purposes. If heirs later sell the property, the taxable gain is calculated using the new stepped-up basis rather than the original purchase price.
The impact can be significant. Imagine a property purchased decades ago for $200,000 that is now worth $1.5 million. Without a step-up in basis, selling the property could trigger a large capital gains tax liability based on the $1.3 million gain. With a step-up in basis, the cost basis resets to the current fair market value. If the heirs sell the property shortly after inheriting it, the taxable gains may be minimal or even zero.
This concept plays an important role in California capital gains tax planning. Because California taxes capital gains as ordinary income, eliminating or reducing the gain through a step-up can significantly reduce the overall tax burden.
California is also a community property state, which creates an additional benefit for many married couples. When spouses own property as community property and one spouse dies, the surviving spouse receives a full step-up in basis for the entire property, not just the deceased spouse’s half. That means the entire asset receives a new basis equal to the fair market value.
As a result, the timing of a sale can dramatically affect the tax outcome. Selling a property shortly before death versus after death may produce very different results. However, estate planning decisions must also consider broader factors, including federal estate taxes, long-term financial goals, and overall tax strategy.
Can I Use a 1031 Exchange to Defer Capital Gains?
One of the most frequently discussed strategies when exploring how to avoid capital gains tax when selling a house (or more accurately, how to defer capital gains taxes) is the 1031 exchange. For real estate investors, this provision of the tax code can be a powerful planning tool when used correctly.
A 1031 exchange, named after Section 1031 of the Internal Revenue Code, allows property owners to sell one investment property and reinvest the proceeds into another qualifying property while deferring the capital gains taxes that would normally be due at the time of sale. Instead of immediately paying taxes on the gain, the gain is carried forward into the replacement property.
For investors looking to grow or reposition their real estate holdings, this can make a substantial difference in how much capital remains available to reinvest.
What Does 1031 Exchange Do?
A 1031 exchange allows an owner of investment or business property to swap it for another like-kind property. The term “like-kind” is broader than many people expect. In most cases, it simply means exchanging one investment property for another investment property.
For example, a rental home could potentially be exchanged for a small apartment building, commercial property, or other investment real estate. The key requirement is that both the relinquished property and the replacement property are held for investment or business purposes, not personal use.
The primary benefit is tax deferral. Instead of paying taxes on the investment gains when the property is sold, those gains are rolled into the next property. Investors can continue reinvesting their capital while postponing the tax liability.
However, it is important to understand that a 1031 exchange does not permanently eliminate taxes. The deferred gain remains embedded in the replacement property. If that property is eventually sold without another exchange, the accumulated gains may become taxable.
Why Strict Rules Apply
Because 1031 exchanges offer a valuable tax benefit, the IRS imposes strict requirements on how they must be structured.
A key rule is that the transaction must involve a qualified intermediary. This intermediary holds the proceeds from the sale of the original property and facilitates the exchange. If the seller receives the money directly—even briefly—the exchange may fail and the transaction becomes taxable.
In addition, both properties must be held for investment or business purposes. Personal residences generally do not qualify for 1031 exchange treatment.
Even small technical errors in documentation, timing, or property identification can invalidate the exchange and create an immediate capital gains tax liability.
Why Do 1031 Exchange Deadlines Require Early Planning?
Timing is critical for a successful 1031 exchange.
Many of the decisions that determine whether an exchange qualifies must occur before the sale of the property closes. Once the transaction is complete, it is usually too late to restructure the deal as a valid exchange.
Because of these requirements, real estate investors often involve their tax professional, financial advisors, and legal counsel early in the process. Careful planning ensures that the exchange is structured properly and that the investor maintains eligibility for tax deferral.
1031 Exchange Timing and Identification Rules
Now let’s talk about the part of a 1031 exchange that trips people up all the time: the timing rules. These are not flexible. The IRS does not care if the market is tight, if escrow falls apart, or if you simply cannot find the right property. The deadlines are what they are, and if you miss one, the exchange fails.
Here are the key timing and identification rules real estate investors need to understand about 1031 exchanges:
- 45-Day Identification Window: Once the original property (called the relinquished property) is sold, the clock starts. You have 45 days to identify potential replacement properties. This identification must be done in writing and submitted to the qualified intermediary handling the exchange.
- 180-Day Acquisition Deadline: The replacement property must be purchased within 180 days of selling the relinquished property. The 45-day identification period sits inside this 180-day window, so the entire exchange must be completed within six months.
- Multiple Identification Rules: Investors cannot simply list unlimited replacement properties. The most common rule is the three-property rule, which allows identification of up to three properties regardless of value. Other rules exist that allow more properties, but they involve limits tied to the fair market value of the assets and can become complicated quickly.
- Applies Only to Investment or Business Property: A 1031 exchange applies only to investment property or business property. Rental property, commercial real estate, and other investment assets may qualify. Personal-use property generally does not.
- Different From Primary Residence Rules: The 1031 exchange rules are completely separate from the primary residence capital gains exclusion. Homeowners selling a primary residence usually rely on the Section 121 exclusion, while real estate investors typically rely on 1031 exchanges for tax deferral.
Because of these strict timelines and technical rules, most investors build a team that includes a qualified intermediary, tax professional, and legal advisor. Even small mistakes in timing, identification, or documentation can invalidate the exchange and create immediate tax liability.
Reverse 1031 Exchanges — Buying Before Selling
What is a reverse 1031 exchange? A reverse 1031 exchange is exactly what it sounds like. Instead of selling your property first and then buying the replacement property, you buy the new property first and sell the old one later.
Why would someone do that? Simple. Sometimes the right deal shows up and you don’t want to lose it. Maybe you find a great rental property or a commercial building that fits perfectly into your investment strategy. If you wait until your current property sells, that opportunity might disappear. A reverse exchange lets you lock in the new property first and then sell the old one within the allowed timeframe.
That said, reverse exchanges are not simple transactions. They usually require special legal structures like an LLC, extra financing, and a qualified intermediary to hold title temporarily while the exchange is completed. All of that adds cost and complexity.
Can I Use Charitable Trusts as a Tax Deferral Tool?
Charitable trusts sometimes come up in tax planning conversations, and they are widely misunderstood. When most people hear the words charitable trust, they assume it means giving all the money away to charity. That is not what we are talking about here.
Does a Charitable Trust Mean Giving Your Property Away?
A charitable trust does not mean you donate the entire value of your property and walk away. Instead, the property can be transferred into a special type of trust that benefits both the property owner and a charitable organization.
The charity ultimately receives a portion of the value (minimum 10%), but the original owner can still receive income from the trust. In other words, it is not simply a donation. It is a planning structure that blends charitable intent with financial planning.
How Does a Charitable Trust Defer Capital Gains Taxes?
An appreciated asset—real estate, for example—is transferred into the trust, which then sells it. Because of how the trust is structured, the sale may occur without triggering immediate capital gains taxes.
Instead of receiving the full sale proceeds all at once, the original owner receives income payments over time. Those payments are spread out across multiple years, which can sometimes place the income into lower tax brackets and reduce the overall tax burden.
Who Is a Charitable Trust a Good Fit For?
This type of strategy tends to work best for people who:
- Already have some charitable goals
- Prefer steady income over time rather than one large payout
- Are comfortable using more advanced planning structures
Like most sophisticated tax strategies, charitable trusts require careful modeling and professional guidance before moving forward.
Converting a Primary Residence Into a Rental
Sometimes a property changes jobs. What started out as your home eventually becomes a rental property. This happens all the time. Maybe you move to a different city, maybe the kids are gone and you downsize, or maybe you just decide the property would make a good investment.
When that happens, the tax picture changes.
Once the property becomes a rental, you can begin taking depreciation deductions. Depreciation can reduce your taxable income each year, which is one of the reasons many real estate investors like rental property. You may also generate investment income from rent while the property continues to appreciate in value.
But there is a catch. When the property is eventually sold, the IRS often requires depreciation recapture, which we talked about earlier. Some of those deductions you took over the years may come back into the tax calculation when you sell the property!
Timing is what matters. The sequence of events—when you move out, when the property becomes a rental, and when you sell—can affect whether you qualify for the primary residence capital gains exclusion or other strategies that help reduce the tax burden.
Get the timing wrong and you could lose valuable tax benefits. Get it right and you may reduce the overall tax liability on the sale.
Because these transitions affect both federal taxes and California state income taxes, it is usually wise to talk with a tax professional or legal advisor before making the change.
Managed Real Estate Portfolios and Passive Ownership
At some point, a lot of investment real estate owners reach the same conclusion: they’re tired of being landlords. Fixing leaky faucets, dealing with tenants, and getting calls at inconvenient times gets old.
That’s where passive real estate ownership starts being considered. Instead of managing property yourself, you may be able to move into investments that are professionally managed.
In some cases, investors can:
- Exchange into professionally managed real estate portfolios through structures used in 1031 exchanges
- Receive regular investment income without handling tenants, repairs, or day-to-day management
- Spread risk across multiple properties and markets instead of relying on a single building or location
With a managed real estate portfolio, you keep your money invested in real estate, but someone else handles the operational headaches.
The trade-off here is control and complexity. When you move into a managed portfolio, you usually no longer control individual property decisions. The managers do that. It can also be complex to structure a proper transfer.
For many sellers, though, the trade is worth it. They still receive income from real estate but can spend their time doing something other than managing property.
High-Risk Strategies and IRS Red Flags
Whenever we talk about reducing taxes, there is always someone out there promising a magic solution. And when you hear phrases like “eliminate taxes completely” or “guaranteed tax shelter,” that’s usually the moment to slow down and take a closer look.
The IRS pays very close attention to strategies that push the boundaries of tax law. In fact, every year the IRS publishes what is commonly called the Dirty Dozen list, which highlights tax schemes and structures that are frequently abused.
Some common warning signs include:
- Promises of extremely large tax deductions out of proportion to the investment
- Complicated structures marketed as a way to eliminate taxes entirely
- Investments promoted primarily for tax avoidance rather than economic value
If the entire pitch revolves around how much tax you won’t pay, that’s usually a red flag.
Not every advanced tax strategy is abusive! There are legitimate planning tools that work perfectly well when structured correctly. But when something sounds too good to be true, it usually deserves a second opinion.
Before moving forward with any aggressive tax strategy, it is always a good idea to review the plan with a qualified tax professional or lawyer who understands both the rules and the risks.
Preserving Your California Property Tax Base
Capital gains tax is only part of the cost of selling in California. For most homeowners, Prop 13 has also been quietly building another kind of exposure over time.
At the same time, because of Prop 13, many homeowners are sitting on very low property tax bases. You might be paying $4,000 a year, while a new buyer would pay $16,000 a year for the same property.
Here’s the tradeoff. Let’s say you plan well and save $100,000 in capital gains taxes. That sounds great! But if your new property taxes increase by $12,000 a year, over ten years that’s $120,000. You just gave back everything you saved.
That’s why this matters. It’s not just about reducing capital gains taxes. It’s about the total cost of moving over time. If you don’t plan properly, you can solve one problem and quietly create another.
Who May Qualify
Under current California law, certain homeowners may be able to transfer their Prop 13 property tax base to a new residence. Generally speaking, eligibility falls into a few broad categories:
- Homeowners age 55 or older
- Individuals who are severely disabled
- Homeowners whose residence was destroyed by a natural disaster
When you qualify, you may be able to sell your current home and move that lower property tax base to another home anywhere in California, subject to certain rules. You can learn more about this on our other articles on the ability of people over 55 to move their Prop 13 caps.
Timing and Transaction Considerations
Timing matters a lot here. The sale of the old property and the purchase of the new property must occur within a specific window, and the sequencing of those transactions can affect eligibility.
For example, many homeowners assume they can sell their property, wait a few years, and then transfer the tax base later. In most cases, that does not work. The transactions must be coordinated carefully to stay within the allowed timeframe.
Common Pitfalls
One of the most common mistakes involves transaction sequencing or ownership structure.
For example, imagine someone sells a home they have owned for 30 years with very low property taxes. They assume they can automatically move that tax base to their next home. But if the timing is off or the purchase does not meet the eligibility rules, that transfer may not happen. The result is a much higher property tax bill on the new property than expected.
These rules interact directly with real estate transactions, so the best approach is simple: plan before you sell. With proper sequencing and guidance, homeowners can often preserve their property tax advantages while still moving to a new home.
California Capital Gains Tax — Planning Ahead with CunninghamLegal
The biggest tax bills usually happen when property owners begin planning after the sale is already underway. Taxes rarely surprise people who plan early.
Understanding how to avoid capital gains tax in California often means understanding which strategies are available before selling property. And it’s a very complicated space, where the strategy depends on the property type.
At CunninghamLegal, we help property owners evaluate their options early in the process. That includes reviewing potential gains, identifying planning opportunities, and coordinating with tax professionals and financial advisors.
If you are considering selling real estate and want guidance before moving forward, you can contact CunninghamLegal to schedule a consultation and discuss your situation. And remember: this is for educational purposes only, it’s not legal or tax advice, and before you go out and do anything, you should sit down with a qualified attorney or tax professional and walk through your specific situation.
What Do We Do?
At CunninghamLegal, we guide savvy, caring families in the protection and transfer of multi-generational wealth, including the problems of navigating property tax reassessment after death.
We have dynamic, creative lawyers based in offices throughout Northern and Southern California, and offer in-person, phone, and Zoom appointments. Please also consider joining one of our free online Estate Planning Webinars.
You can book an appointment for Estate Planning, Trust Administration, Asset Protection, Business Law, or Advanced Tax Planning using the form on this page, by calling us at 866.988.3956, or by scheduling a consultation online.
We look forward to working with you!
Best, Jim
James L. Cunningham Jr., Esq.
Founder, CunninghamLegal