ClickCease

September 12, 2025

Capital Gains on Selling a House in 2025: What California Homeowners Should Know

Capital Gains on Selling a House

If you are a California homeowner planning to sell, one of the biggest concerns is whether you will owe capital gains tax when you sell your home. The idea of capital gains on selling a house can sound scary, especially if your home has appreciated substantially over time. But the rules under the tax code are surprisingly favorable in many cases. This post will break down how capital gains tax works, when you might owe capital gains tax, how to calculate capital gains tax, what capital gains tax exclusion you might qualify for, and strategies to reduce capital gains tax or even avoid capital gains tax entirely.

When you understand this clearly, you can make confident decisions when you sell your house, avoid unexpected tax liability, and maximize what you take home.

What Is Capital Gains on Selling a House?

When you sell your primary residence or any real property, the gain from the sale is the difference between your selling price minus your adjusted basis and selling costs or selling expenses such as real estate agent commissions and settlement fees. That gain is effectively your net profit on the transaction. If that gain is positive, it is a capital gain subject to gains tax on real property.

But not every capital gain is taxed. In fact, under Internal Revenue Service rules, much of it may be excluded or taxed at favorable rates depending on your circumstances.

Capital Asset, Cost Basis, and Adjusted Basis

Your home is considered a capital asset for tax purposes. The starting point to understanding your gain is to know your cost basis (often the original purchase price) and then compute adjustments. Your adjusted basis generally equals your original purchase price plus the cost of home improvements and other qualified additions, minus certain deductions (such as any depreciation deductions if used as rental property generating rental income). Properly accounting for improvements can help reduce the taxable gain when you sell.

When Is the Gain Taxable?

If your gain is entirely excluded (more on that soon), you won’t pay capital gains tax or pay taxes on that portion. But if the gain exceeds your exclusion amount or you don’t qualify for full exclusion, the excess gain is taxable. How much tax you owe depends on whether the gain is short term or long term, your taxable income, and whether you have depreciation recapture (especially if the property was used as rental property).

The Capital Gains Tax Exclusion for Homeowners

One of the most powerful provisions available to homeowners is the capital gains tax exclusion under IRS rules (Section 121 rules). This means many homeowners will not pay capital gains tax at all.

How the Exclusion Works

If you meet certain requirements, you can exclude up to $250,000 of gain if you are single or married filing separately, or up to $500,000 if married filing jointly (or married couple filing jointly). This is often called the capital gains exclusion or home sale exclusion. The idea is, you can shelter that amount of gain from being taxed.

To qualify, you must satisfy two tests, commonly called the ownership and use tests:

  1. Ownership test: You must have owned the home for at least 2 out of the last 5 years before the sale of your home.
  2. Use test: You must have used the home as your principal residence for at least 2 out of the last 5 years.

These 2 years do not need to be continuous, and they don’t have to be the same 2 years for both tests.

If you satisfy both, and haven’t used the exclusion on another home sale in the prior 2 years, you can exclude up to that limit. For married couples, only one spouse needs to meet the ownership test, but both spouses must meet the use test to claim the full exclusion amount.

Limits and Restrictions

You can only use the exclusion once every two years. Also, the exclusion does not apply to the portion of gain attributable to depreciation claimed (for periods you used the property as a rental), since depreciation recapture must be recognized even if you qualify for the exclusion.

If either of the tests is not met, you might still qualify for a partial exclusion under certain circumstances (such as health, job change, unforeseen events).

When and How Much You Might Owe Capital Gains Tax

If your gain is not fully excluded, you will need to pay tax on the remaining amount. Here’s how that works.

Long Term vs. Short Term Capital Gains

If you have owned the home less than one year (less than a year), then the gain is considered short term capital gains and is taxed at your ordinary income rate (your standard tax bracket). That means it is taxed like ordinary income.

If owned for more than one year, it is long term capital gains, which enjoys more favorable tax rates. These are often 0%, 15%, or 20% depending on your taxable income.

Capital Gains Tax Rates in 2025

For 2025, here are general thresholds (these apply to net capital gains after exclusion):

But note, these brackets are for the gain portion. Your other ordinary income is taxed separately at ordinary rates.

Net Investment Income Tax and Additional Taxes

If your adjusted gross income is high, you may also be subject to the 3.8% Net Investment Income Tax (NIIT) on top of capital gains tax. This can apply to capital gains on selling a house when it is not fully excluded.

In California, there is no separate capital gains rate, gains are taxed as ordinary income under state income tax. That means state tax could add significantly to your tax liability.

Depreciation Recapture on Rental Use

If part of the property was used as rental property or business use, and you claimed depreciation deductions, you must recapture depreciation. That means you pay tax on the amount of depreciation taken, taxed as ordinary income or at a special rate (often up to 25%).

Even if part of your property qualifies for exclusion (because it was your primary residence), the portion attributable to depreciation cannot be excluded.

Expatriate Tax Considerations

Certain taxpayers subject to expatriate tax or those in the foreign service, government housing, or intelligence community may have special rules suspending the 5-year test period for ownership and use, allowing for an extended timeframe to qualify for the exclusion.

How to Calculate Capital Gains Tax Step by Step

Here is a simplified process to calculate capital gains tax when selling your home:

  1. Determine your selling price
  2. Subtract selling expenses or closing costs (agent commissions, title fees, legal fees, inspection, escrow, settlement fees, etc.)
  3. That gives you amount realized
  4. Determine your adjusted basis = original purchase price + cost of home improvements – depreciation (if rental)
  5. Subtract adjusted basis from amount realized → that’s your gain
  6. Subtract the capital gains exclusion (if you qualify) to find taxable gain
  7. For any remaining gain, determine whether it’s short term or long term
  8. Apply the applicable capital gains tax rate + any NIIT or additional tax
  9. Add state tax (if applicable)

If the result is zero or negative after exclusion, you owe capital gains tax = zero.

Special Cases & Complex Scenarios

Mixed Use, Rental, or Business Parts

If you used part of the home as rental property, or converted it, you must separate the portion used as your owner's principal residence from the portion used for business or rental income. The exclusion only applies to the portion used as your primary residence. The rest is taxed. Also depreciation recapture applies for the rental portion.

Vacation Home or Second Home

If you sell a vacation home, second home, or investment property, you cannot use the Section 121 capital gains tax exclusion. The full gain is generally taxable, though you might use a like kind exchange (a 1031 exchange) to defer taxes (for investment real estate).

Installment Sales

If you finance the sale to the buyer (you receive payments over time), you may use an installment method (IRS Form 6252) to spread out the tax liability over multiple years. This can help make tax payments more manageable.

Inherited Property and Stepped-Up Basis

If you inherited the property, you get a stepped-up basis (i.e. the basis becomes the fair market value at date of inheritance or alternate valuation date), reducing capital gains. That often results in lower taxable gain or none. This basis is reported on your estate tax return if applicable.

Divorce and Former Spouse Considerations

If you are divorced, time owned or lived in by a former spouse may count toward your ownership and use tests in some cases. This can affect how much exclusion you qualify for.

Ways to Reduce or Avoid Capital Gains Tax

Here are strategies to reduce capital gains tax or avoid paying capital gains tax if possible:

Common Mistakes That Lead to Higher Tax Bills

Example (Illustrative)

Let’s say you and your spouse (filing jointly) bought a home years ago for $500,000. Over time, you made $100,000 worth of capital improvements (new roof, kitchen remodel, new windows). So your adjusted basis is $600,000.

Now you sell the home for $900,000, with selling costs (agent commissions, title, legal fees) totaling $50,000. The amount realized is $850,000. Your gain = $850,000 – $600,000 = $250,000.

Because you are married filing jointly, you qualify to exclude up to $500,000. In this example, your entire gain ($250,000) is within the exclusion, so your taxable gain is $0, meaning you pay capital gains tax = zero.

If you had a bigger gain, say your amount realized was $1,200,000, and after basis and costs your gain was $600,000, then after excluding $500,000, you’d have $100,000 of taxable gain. You would pay the capital gains tax, long term capital gains tax rate for your bracket, possibly the NIIT, and California state tax on that $100,000.

Frequently Asked Questions

Do I always owe capital gains tax when I sell my home?

No. If you qualify for the full capital gains tax exclusion, you may owe $0 in federal capital gains tax.

How long do I need to live in my house to use the exclusion?

You must satisfy both the ownership test and use test: live in the home as your principal residence for at least 2 of the last 5 years.

What if I inherited a house, do I owe capital gains tax?

In most cases, you get a stepped-up basis, meaning your basis is the fair market value at inheritance or alternate valuation date. That often reduces or eliminates capital gains tax when you later sell.

Is capital gains tax different if I sell a vacation home or second home?

Yes. The capital gains exclusion does not apply to vacation homes or second homes.

What if I sell at a loss?

If it’s your primary residence, a loss is not deductible. Losses on personal property are generally not allowed.

How do I report the sale of my home?

You’ll use Form 8949 and Schedule D (Form 1040). Even if your gain is excluded, you may need to report it depending on whether you received a 1099‑S or have taxable gain.

Can I avoid paying taxes by buying another house?

No. The older “rollover” rule was eliminated. Buying another home won’t reduce capital gains tax.

Why This Matters for California Homeowners

Because California taxes all capital gains as ordinary income, your state tax exposure could be high. That makes it even more important to fully leverage your capital gains tax exclusion and plan carefully.

For many homeowners, the exclusion means they pay 0 federal capital gains tax. But the careful calculations, accounting for selling costs, closing costs, home improvements, depreciation, and state taxes, are crucial.

Selling quickly is still compatible with favorable tax treatment if you meet the rules. That’s one of the advantages of working with a reliable buyer: you don’t have to delay just to reduce your tax burden.

Final Thoughts

The phrase capital gains on selling a house often sounds like a looming threat, but for many homeowners it ends up being a nonissue, thanks to the capital gains exclusion provided by tax law. If you satisfy the ownership and use tests, you may owe capital gains tax = zero.

When you do have taxable gain, understanding how to calculate capital gains tax, recognizing short term vs long term capital gains, managing depreciation recapture, and leveraging closing costs or selling expenses all make a difference.

If you are preparing a home sale or thinking about selling quickly, the right planning now can prevent a surprise tax bill later. Work with a qualified tax advisor who understands real estate and IRS rules, document everything, and structure your sale strategically.

At Property Sales Group, we help homeowners in California sell their homes fast, with no surprises. If you want to explore a quick, no-hassle cash offer and ensure your tax strategy is sound, we’re ready to guide you every step of the way.