White entry way with a black door and creeping ivy on the walls.

Understanding the Capital Gains Exclusion

Homeowners can usually avoid paying capital gains taxes when they sell their primary residence for a profit.

Individuals can exclude up to $250,000 of gains, and married couples can exclude up to $500,000 — but only if they meet certain IRS requirements.

Most people in real estate and mortgage lending are aware of this in general, but many don’t understand the specifics. And those details matter.


Determining Your Tax Basis

To calculate your gain, you first need to know your tax basis.

Your tax basis is the total cost of buying, building, and improving your property.

For example:

  • You buy a home for $200,000

  • You pay $5,000 in closing costs

  • You spend $45,000 on upgrades

Your total tax basis is $250,000.


Calculating Capital Gains

Once you know your tax basis, you can calculate your capital gain by subtracting that basis from the net sale price of your home — the sales price minus sales expenses (like commissions, transfer taxes, and other closing costs).

Example:

  • Sale price: $500,000

  • Sales expenses: $50,000

  • Tax basis: $250,000

Capital Gain = $500,000 – $50,000 – $250,000 = $200,000.


Qualifying for the Primary Residence Exclusion

You can avoid capital gains taxes entirely if the property was your primary residence and you’ve lived there for at least two of the last five years.

This is formally called the Principal Residence Exclusion.

As mentioned earlier, married couples can exclude up to $500,000, and individuals can exclude up to $250,000 of gains.

In our example above, the $200,000 gain would be fully excluded for both individuals and married couples who meet the residency requirement.


Final Notes and Important Considerations

  1. High earners (over $200,000 for individuals and $250,000 for couples) may be subject to an additional 3.8% Federal Net Investment Income Tax.

  2. Homeowners can use the Principal Residence Exclusion every two years.

  3. Consult your CPA. The above is a simplified explanation. Always seek professional tax advice before relying on these rules.

Sign up to receive our blog daily

About the Author

Jay Voorhees
Jay Voorhees is the Founder of JVM Lending. He specializes in mortgage rate movements, housing market trends, Fed policy, and refinancing strategy. Jay has 25+ years in mortgage banking and has personally originated over $1 billion in residential loans.
Get your instant rate quote.
  • No commitment
  • No impact on your credit score
  • No documents required
You are less than 60 seconds away from your quote.
You are less than 60 seconds away from your quote.

Resume from where you left off. No obligations.