SF.
1031

Capital Gains Tax on a Home Sale

1031 Exchange Services in San Francisco, CA

Selling a primary residence in San Francisco, CA is treated very differently from selling an investment property under federal tax law. Homeowners who meet the ownership and use tests can exclude a significant portion of gain from capital gains tax entirely under Section 121, without needing a 1031 exchange or a qualified intermediary. Given how much home values in San Francisco, CA neighborhoods have appreciated over long ownership periods, understanding exactly how the exclusion works, and where it stops applying, is important before a homeowner assumes the entire gain is tax free.

The Section 121 Ownership and Use Tests

To qualify for the exclusion, a homeowner generally must have owned and used the property as a principal residence for at least two of the five years preceding the sale. A single filer can generally exclude up to two hundred fifty thousand dollars of gain, and a married couple filing jointly can generally exclude up to five hundred thousand dollars, provided both spouses meet the use test even if only one meets the ownership test. Gain above the applicable exclusion amount is generally taxed as a capital gain federally, and as ordinary income at the California state level, since California does not offer its own reduced rate for capital gains.

When the Exclusion Does Not Cover the Full Gain

San Francisco, CA homeowners who purchased decades ago, or who have made significant improvements without keeping full records, sometimes find that their gain substantially exceeds the two hundred fifty thousand or five hundred thousand dollar exclusion amount. In that situation, the excess gain is taxable, and there is generally no 1031 exchange available for it, because Section 1031 applies only to property held for investment or business use, not to a primary residence. A homeowner cannot exchange a personal residence into replacement investment property and defer tax on the excess gain the way an investor selling rental property could.

There are exceptions worth understanding. A property that was a primary residence for part of the ownership period and a rental for another part, such as a home converted to a long term rental before sale, may be eligible for a combination of the Section 121 exclusion on the qualifying portion and a 1031 exchange on the investment portion, under specific rules that require careful allocation between personal and investment use. We help San Francisco, CA homeowners in this situation determine whether their property's use history supports combining these two provisions, since the calculation depends on the specific years of personal versus rental use and requires coordination with a CPA.

Homeowners considering a sale should gather closing documents from the original purchase, records of any capital improvements such as kitchen or bathroom renovations, seismic retrofitting, or major system replacements, and documentation of any period the home was rented, well before listing. This documentation lets a CPA calculate the actual taxable gain and lets the homeowner understand, before signing a listing agreement, whether the sale will be fully excluded, partially taxable, or eligible for a combined exclusion and exchange strategy.

What's Included

  • Section 121 ownership and use test review
  • Exclusion amount calculation coordination with the homeowner's CPA
  • Basis and capital improvement record organization
  • Mixed personal and rental use history review
  • Explanation of when a combined exclusion and exchange strategy may apply
  • Referral to qualified intermediaries for any investment property portion

Common Situations

  • Homeowner is selling a long held San Francisco, CA residence and wants to confirm how much gain the Section 121 exclusion will cover
  • Homeowner converted a former residence to a rental before selling and needs help allocating personal versus investment use
  • Homeowner's expected gain exceeds the exclusion amount and needs to understand the resulting tax exposure

Frequently Asked Questions

How much capital gains can I exclude on a San Francisco, CA home sale?

A single filer can generally exclude up to two hundred fifty thousand dollars of gain, and a married couple filing jointly can generally exclude up to five hundred thousand dollars, provided the ownership and use tests under Section 121 are met for the San Francisco, CA residence.

Can I use a 1031 exchange on the sale of my primary residence?

Generally no. Section 1031 applies to property held for investment or business use, not a personal residence. A San Francisco, CA homeowner selling a primary residence generally relies on the Section 121 exclusion rather than a 1031 exchange.

What happens to gain above the exclusion amount in San Francisco, CA?

Gain above the two hundred fifty thousand or five hundred thousand dollar exclusion is generally taxed as a federal capital gain and as California ordinary income, since California does not offer a preferential rate for capital gains.

Can I combine the home sale exclusion with a 1031 exchange?

In limited situations, a property used partly as a primary residence and partly as a rental may allow a combination of the Section 121 exclusion and a 1031 exchange on the investment portion. This requires careful allocation and CPA coordination for a San Francisco, CA property.

Do home improvements reduce my taxable gain in San Francisco, CA?

Yes. Qualifying capital improvements, such as major renovations or system replacements, generally increase the property's basis and reduce the taxable gain on a San Francisco, CA home sale. Keeping receipts and permits supports this calculation.

Example Capability

Example of the type of engagement we can handle

Location

San Francisco, CA

Scope

Review ownership and use history, coordinate exclusion calculation with the homeowner's CPA, explain any investment property allocation

Client Situation

Homeowner had converted part of a San Francisco, CA residence to rental use for several years before deciding to sell and was unsure how the exclusion would apply

Our Approach

We reviewed the property's use history, coordinated with the homeowner's CPA to allocate gain between personal and rental use, and explained how the Section 121 exclusion applied to the qualifying portion

Expected Outcome

Homeowner understood the taxable and excluded portions of the gain before listing and proceeded with an informed sale timeline

Contact us to discuss your situation in San Francisco, CA. We can share references upon request.

Educational content only. Not tax, legal, or investment advice. 1031 defers income tax on qualifying real property and does not remove transfer or documentary taxes.

Ready to Get Started?

Contact us to discuss your 1031 exchange needs in San Francisco, CA.