How to Figure the Gain on Your Home Sale
Your gain is what you take away from the sale price minus what you have invested in the home. IRS Publication 523 breaks it into two steps:
- Selling price minus selling expenses equals your amount realized.
- Amount realized minus the adjusted basis equals your gain or loss.
Your amount realized is what the sale brings in after selling costs. Your adjusted basis is what you paid for the home, plus certain additions and minus certain reductions.
Selling Expenses That Lower Your Amount Realized
Costs you pay to sell the home reduce your amount realized. These include:
- Sales commissions, such as your real estate agent’s fee
- Advertising fees
- Legal fees
- Loan charges you paid that are normally the buyer’s responsibility, such as mortgage points
What Goes Into Your Adjusted Basis
Start with what you paid for the home. Then add:
- Certain settlement or closing costs from your purchase
- Improvements still part of the home when you sell
- Special assessments for local improvements
- Amounts spent repairing major damage to the home (not general maintenance or repairs)
Your purchase closing documents help you find those settlement costs.
Next, subtract items like insurance reimbursements for casualty losses. Energy credits or subsidies you received for improvements in your basis also come off.
Home Improvements vs. Repairs
Only improvements raise your basis, so the difference matters. An improvement adds to your home’s value or extends its useful life. Work that adapts your home to a new use also counts.
| Counts as an improvement | Doesn’t count (repair or maintenance) |
|---|---|
| Adding a bedroom, bathroom, deck or garage | Painting a room |
| New furnace or central air | Fixing a leak |
| New fence or driveway | Filling holes or cracks |
| New wiring or a security system | Replacing broken hardware |
| Replacing all windows as one project | Replacing one broken windowpane |
The last row shows an exception: repair-type work done as part of an extensive remodel counts as an improvement. You can’t include improvements no longer part of the home, such as carpeting you later replaced. Improvements with a life expectancy under one year don’t count either.
Example: How Selling Costs and Improvements Reduce Gain
Here’s a hypothetical sale that puts both steps together.
| Step | Amount |
|---|---|
| Selling price | $500,000 |
| Minus selling expenses (commission and legal fees) | –$30,000 |
| Amount realized | $470,000 |
| Purchase price | $300,000 |
| Plus closing costs from the purchase | +$5,000 |
| Plus improvements (a bathroom addition and central air) | +$45,000 |
| Adjusted basis | $350,000 |
| Gain ($470,000 minus $350,000) | $120,000 |
Ignoring selling costs and improvements, the gain would look like $200,000. Tracking them cuts it down by $80,000.
When Your Gain Is Taxable or Must Be Reported
The home sale exclusion may cover your gain so you owe no tax. Under Topic No. 701, you may exclude up to $250,000 of gain, or $500,000 on a joint return with your spouse. The $120,000 gain above fits under a single filer’s limit.
To qualify, you generally must have owned and used the home as your main home at least two of the five years before selling. You generally can’t use the exclusion if you excluded gain on another home in the two years before this sale.
Even with the exclusion, some situations mean you report the sale or owe tax:
- Gain above your exclusion is taxed at your capital gains tax rate.
- Depreciation you claimed after May 6, 1997, for business or rental use can’t be excluded.
- If you receive Form 1099-S, you must report the sale even if your gain is excludable.
- If you can’t exclude all of your gain, report the sale on Form 8949 and Schedule D (Form 1040).