The Capital Gains Tax Rule: IRS Section 121

by Alfredo Guzman

Real Estate Blog

The Capital Gains Tax Rule: IRS Section 121

The most important rule every homeowner needs to know is IRS Section 121.

Under federal tax law—which California conformed to—you can exclude a huge portion of your home’s profit from both federal and state capital gains taxes.

  • Single Filers: Exclude up to $250,000 in profit tax-free.

  • Married Couples Filing Jointly: Exclude up to $500,000 in profit tax-free.

To qualify for the Section 121 Exclusion, you must meet two simple conditions:

  1. Ownership Test: You owned the home for at least two years out of the last five years before the sale.

  2. Use Test: You lived in the home as your primary residence for at least two years (24 non-consecutive months) out of those five years.

If you hit those requirements, the first $250k or $500k of capital gain is 100% tax-free.

2. Tax Is Paid on Your Gain, Not Your Sale Price

A common mistake sellers make is calculating tax based on the total sale price. Capital gains tax only applies to your net profit (your gain) above your adjusted cost basis.

 {Taxable Gain} = {Selling Price} - {Selling Expenses} - {Adjusted Basis} - {Section 121 Exclusion}

What is your "Adjusted Basis"?

Your basis isn't just what you paid for the house. It increases with every major improvement you've made over the years.

  • Initial Purchase Price: What you originally bought the home for.

  • + Capital Improvements: Add major upgrades like a new roof, HVAC system, kitchen remodel, room addition, or solar panels. (Note: Routine repairs or painting don't count, but permanent upgrades do!)

  • + Qualified Closing Costs: Add certain costs from when you bought and when you sell (e.g., real estate commissions, escrow fees, title insurance).

Example:

  • You bought your home for $500,000.

  • You spent $75,000 on a kitchen remodel and new roof.

  • Selling costs (commissions, closing fees) equal $45,000.

  • Your Adjusted Basis is $620,000.

If you sell that home for $1,100,000, your total profit is $480,000 ($1.1M − $620k). If you are married filing jointly, your $500,000 exclusion covers the entire gain—meaning you pay $0 in capital gains tax.

3. What Happens If Your Profit Exceeds $250k / $500k?

In high-value markets, long-term homeowners sometimes exceed the $250k/$500k exclusion limit.

If your gain goes over the exclusion, you only pay capital gains tax on the remaining amount above the threshold.

  • Federal Capital Gains Tax: Taxed at 0%, 15%, or 20% depending on your total income bracket (plus an optional 3.8% Net Investment Income Tax for high earners).

  • California State Income Tax: Unlike the federal government, California taxes capital gains as regular income at your standard state bracket rate.

Proactive Steps to Minimize Your Tax Exposure

If you suspect your profit might cross the Section 121 threshold, take these steps before listing:

  1. Gather Receipts for Capital Improvements: Dig through old records for permits, receipts, and invoices for every major project you've done since buying. Raising your adjusted basis is the fastest way to shrink taxable profit.

  2. Verify Your 24-Month Timeline: If you are close to hitting the 2-year mark of living in the home, timing your close date by a few weeks could save you tens of thousands of dollars.

  3. Consult a CPA Early: Every financial situation is unique. While real estate agents guide your market pricing and transaction strategy, a licensed CPA or tax professional will verify your exact numbers.

The Bottom Line

Selling your primary residence in California doesn't mean giving up all your hard-earned equity to taxes. With the $250,000 to $500,000 Section 121 exclusion, proper record-keeping for home improvements, and strategic closing timing, most homeowners walk away with the vast majority of their profit intact.

Disclaimer: I am a real estate professional, not a CPA or tax attorney. Tax laws are subject to change and depend on individual financial circumstances. Always consult a licensed tax advisor to calculate your specific tax liability before selling.

Curious about what your home is worth in today’s market and how much equity you stand to net? Let’s connect for a personalized home valuation report!

Alfredo Guzman
Alfredo Guzman

License ID: 01407137

+1(562) 786-5418 | alfredoguzmanre@gmail.com

GET MORE INFORMATION

Name
Phone*
Message