Capital Gains When Selling a House

What Santa Barbara homeowners owe in capital gains tax when selling a house, how the Section 121 exclusion works, and when it doesn't apply.

Most homeowners selling a house in Santa Barbara never see a capital gains tax bill, and it isn't because the market hasn't appreciated. It's because the Section 121 exclusion shelters a large amount of gain on a primary residence, and after years of price growth along the South Coast, that exclusion is doing more work than it used to for sellers who bought decades ago.

The Ownership and Use Test

To qualify for the exclusion, a seller needs to have owned the home and used it as their main residence for at least two of the five years immediately before the sale. The two years don't need to be consecutive, and short absences, like an extended trip or a temporary work assignment, generally don't break the residency requirement as long as the home remained the seller's main home during that period.

How Much Gain Is Actually Excluded

A single filer can exclude up to $250,000 of gain, and a married couple filing jointly can exclude up to $500,000, provided both spouses meet the ownership and use test. Gain above those thresholds is taxed as a normal long-term capital gain, at federal rates depending on income plus California's income tax, which applies to the gain the same way it applies to ordinary income.

In a market where a house purchased in the 1990s in Montecito or Hope Ranch might have appreciated by well over $500,000, the excess above the exclusion is not a small number, and sellers in that position benefit from running the math before listing rather than after an offer is accepted.

When the Exclusion Doesn't Apply

A second home, a vacation property used only occasionally, or a rental that was never the owner's primary residence doesn't qualify for Section 121, regardless of how long it was owned. A house that was a rental for part of its ownership and a primary residence for another part may qualify for a partial exclusion, with the calculation depending on how the years of ownership and use break down, and depreciation claimed during any rental period is generally not eligible for exclusion even if the rest of the gain is.

What Happens if the House Was Also a Rental

A property that spent time as a rental before becoming a primary residence, or the reverse, requires separating the gain into the portion that qualifies for the Section 121 exclusion and the portion tied to nonqualified use as a rental. Any depreciation claimed during the rental period is recaptured and taxed regardless of how the rest of the sale is treated. This situation comes up often enough with converted properties in Santa Barbara that it's worth a CPA's review before the sale rather than an assumption that the whole gain is excluded.

Basis and Selling Costs Reduce the Taxable Gain

The gain that gets measured against the exclusion isn't the difference between the original purchase price and the sale price alone. Capital improvements made over the years of ownership, a new roof, an addition, a remodeled kitchen, add to the basis and reduce the taxable gain, while routine repairs and maintenance generally don't. Selling costs, including agent commissions and certain closing fees, also reduce the amount of gain subject to tax, so a seller estimating their exposure should gather improvement records and closing cost estimates before assuming the full appreciation is what's actually taxable.

Capital Gains Tax Questions

Do I owe capital gains tax if I sell my house for a profit?

Only on the amount above the Section 121 exclusion, which is $250,000 for a single filer or $500,000 for a married couple filing jointly, assuming the ownership and use test is met. Gain above those thresholds is taxed as a regular capital gain.

How long do I need to have lived in the house to qualify for the exclusion?

You need to have owned and used the home as your main residence for at least two of the five years before the sale. The two years can be non-consecutive, and short temporary absences generally don't disqualify the period.

Can I use the Section 121 exclusion on a second home?

No. The exclusion only applies to a primary residence. A vacation home or second property that wasn't your main home doesn't qualify, no matter how long you've owned it.

What if my house was a rental before I moved into it?

The gain has to be split between the period of qualified use as a primary residence and any period of nonqualified use as a rental, and depreciation claimed during the rental period is recaptured separately. A partial exclusion may still apply to the primary-residence portion.

Is there a way to defer tax on the portion of gain above the exclusion?

The Section 121 exclusion applies only to a primary residence and has no deferral mechanism for the excess. A Section 1031 exchange isn't available for a personal residence, so gain above the exclusion on a primary home is generally taxed in the year of sale.

Ready to see what a 1031 exchange could save you?

Share your property and timeline and we will walk through the numbers.

Start Exchange Review
(805) 870-9016