Understanding Capital Gains in Real Estate

June 17, 2025

Understanding Capital Gains in Real Estate

When you sell a stock, you owe taxes on your gain the difference between what you paid for the stock and what you sold it for. The same is true with selling a home (or a second home), but there are some special considerations.

How to Calculate Gain


In real estate, capital gains are based not on what you paid for the home, but on its adjusted cost basis. To calculate this:
1. Take the purchase price of the home: This is the sale price, not the amount of money you actually contributed at closing.
2. Add adjustments:
  • Cost of the purchase, including transfer fees, attorney fees, inspections, but not points you paid on your mortgage.
  • Cost of sale, including inspections, attorney's fee, real estate commission, and money you spent to fix up your home just prior to sale.
  • Cost of improvements, including room additions, deck, etc. Note here that improvements do not include repairing or replacing something already there, such as putting on a new roof or buying a new furnace.

3. The total of this is the adjusted cost basis of your home.  4. Subtract this adjusted cost basis from the amount you sell your home for. This is your capital gain.

A Special Real Estate Exemption for Capital Gains


Since 1997, up to $250,000 in capital gains ($500,000 for a married couple) on the sale of a home is exempt from taxation if you meet the following criteria:
  • You have lived in the home as your principal residence for two out of the last five years.
  • You have not sold or exchanged another home during the two years preceding the sale.

Also note that as of 2003, you also may qualify for this exemption if you meet what the IRS calls "unforeseen circumstances," such as job loss, divorce, or family medical emergency.

April 8, 2026
For first-time buyers, the spring market can feel exciting and overwhelming, but it's important to find ways to balance your budget and honor your must-haves.
April 6, 2026
How to prepare for applying for financing as a small business owner, including important documents, planning strategies, and more.
March 18, 2026
Spring is one of the busiest times in the housing market, but along with the buzz comes a handful of myths that can hold you back—or cost you more than you expect.
March 18, 2026
How to compete in the spring housing market without overpaying, including Value Assurance, a way to strengthen your offer without taking on additional risk.
March 11, 2026
While owning a home certainly comes with expenses, the IRS offers several deductions and credits that can help reduce your taxable income.
March 3, 2026
Learn how the new mortgage privacy law reduces trigger leads and unwanted mortgage calls starting March 5, 2026, and what it means for homebuyers.
February 24, 2026
Here is a comprehensive guide of everything homeowners need to know before filing their 2026 taxes, including deductions, important forms, rental income, and more.
February 11, 2026
Value Assurance is a mortgage program that helps you make competitive offers by providing an estimated property value before you submit your actual bid.
February 4, 2026
What does it mean when a house is up for auction? Learn why homes go to auction, auction types, how the process works, risks, and what buyers should expect.
January 28, 2026
Designed for medical professionals, physician mortgages can help you get there sooner, with fewer barriers and more flexibility than traditional home financing.
Show More