How-to
How to Handle the Tax Implications of Selling a Home
Quick Summary
Selling a home can create taxable income, but often it does not. If you owned and lived in the home as your main residence for at least two of the last five years, you may exclude a large part of your capital gain from tax. Gains above the exclusion are generally taxable.
- Your gain is the amount realized minus your adjusted basis.
- Selling costs reduce the amount realized; qualifying improvements increase your basis.
- Passing the two-year ownership and use tests qualifies you for the exclusion.
- Keep closing statements, improvement receipts and any Form 1099-S for your records.
- Depreciation claimed for rental or home office use is generally taxable on sale.
Table of Contents
- Does Selling a Home Create Taxable Income?
- Eligibility for the Home Sale Capital Gains Tax Exclusion
- How to Calculate Capital Gains on a Home Sale
- Step 1: Find Your Amount Realized
- Step 2: Find Your Adjusted Basis
- Step 3: Subtract Adjusted Basis from Amount Realized
- Step 4: Apply the Exclusion and Identify Taxable Gain
- Worked Example: Gain Below the Exclusion
- Worked Example: Gain Above the Exclusion
- Selling Costs vs. Basis Adjustments: Keep Them Separate
- What About a Loss?
- Tax Rules When You Sell an Inherited House
- Rental Use, Depreciation, and Home Office Complications
- How to Report the Sale of a Home on Your Tax Return
- Your Pre-Filing Checklist for Next Year's Return
- Frequently Asked Questions
How to Handle the Tax Implications of Selling a Home
Last Updated: November 12, 2026
Does Selling a Home Create Taxable Income?
Selling a home can create taxable income, but often it does not. The answer depends on how much profit you make and whether the home was your main residence.
Here's the short version: if you owned and lived in your home for at least two of the last five years, you may be able to exclude a large part of the gain from tax (Topic no. 701, Sale of your home).
Gains that exceed the exclusion, or gains on homes that do not qualify, are generally taxable. The IRS explains these rules in IRS Publication 523, Selling Your Home.
Eligibility for the Home Sale Capital Gains Tax Exclusion
Most homeowners can use the home sale exclusion, but you have to meet a few tests first. The rules are simple once you break them down.
The Two-Out-of-Five-Year Ownership and Use Tests
To qualify, you must pass two tests during the five years before the sale:
- Ownership test: You owned the home for at least two years.
- Use test: You lived in the home as your main residence for at least two years.
These two years do not have to be consecutive. They also do not have to be the same two years. Short absences, such as vacations, count as time you lived there.
Partial Exclusions and Unforeseen Circumstances
Some sellers do not meet the full two-year rule but still qualify for a partial exclusion. This can happen because of:
- A job change that moves you more than 50 miles away
- Health problems that require a move
- Unforeseen events, such as a divorce, a death in the family, or a natural disaster
In these cases, the exclusion may be prorated based on how long you owned and lived in the home. If you are unsure whether your situation qualifies, a tax professional should confirm the exclusion math.
How to Calculate Capital Gains on a Home Sale
Your gain is the difference between what you realized from the sale and your adjusted basis. The IRS frames this in three pieces: amount realized, adjusted basis, and realized gain. Getting each piece right is what keeps you from overpaying tax or triggering an audit flag.
Step 1: Find Your Amount Realized
Amount realized is the sale price minus selling expenses you paid as the seller. The IRS treats these as reductions to the amount you realized, not as basis adjustments, so keep them separate from improvement records.
Selling expenses that generally reduce your amount realized include:
- Real estate agent commissions and broker fees
- Title insurance and escrow or settlement fees charged to you
- Transfer taxes and recording fees paid by the seller
Watch out: Repairs made to prepare the home for sale, such as painting or replacing a broken window, are generally not selling expenses and do not reduce your amount realized.
Step 2: Find Your Adjusted Basis
Start with what you originally paid for the home, including certain closing costs from the purchase.
Qualifying improvements generally add value, prolong the home's life, or adapt it to a new use.
- Room additions and structural changes
- New roof, siding, or windows
- Major kitchen or bathroom remodels
Routine maintenance and repairs, such as fixing a leaky faucet, repainting a room, or replacing a broken appliance, generally do not raise basis.
Step 3: Subtract Adjusted Basis from Amount Realized
The result is your realized gain (or loss). If you have owned and lived in the home as your main residence for at least two of the last five years, you can then apply the exclusion.
Step 4: Apply the Exclusion and Identify Taxable Gain
Subtract the exclusion you qualify for from your realized gain. Anything left over is taxable gain, generally taxed at long-term capital gains rates if you owned the home more than one year.
Worked Example: Gain Below the Exclusion
You sell your home for $650,000. Selling costs total $40,000 (agent commission, title, escrow, transfer tax), so your amount realized is $610,000. You bought the home for $350,000 and spent $50,000 on a qualifying kitchen remodel, so your adjusted basis is $400,000. Your realized gain is $210,000.
Worked Example: Gain Above the Exclusion
You sell for $1,200,000. Selling costs are $72,000, so your amount realized is $1,128,000. You bought for $400,000 and added $100,000 in qualifying improvements, so your adjusted basis is $500,000. Your realized gain is $628,000. As a married couple filing jointly, you exclude $500,000, leaving $128,000 of taxable gain.
Selling Costs vs. Basis Adjustments: Keep Them Separate
The most common calculation error is mixing up selling costs and improvements. Selling costs reduce the amount realized at the time of sale. Improvements increase basis over the life of ownership. If you lump them together, you can double-count a cost or miss a deduction. Save your closing statement from the sale and your receipts for improvements in separate folders.
What About a Loss?
If your amount realized is less than your adjusted basis, you have a loss. A loss on the sale of a personal residence is generally not deductible (Capital gains, losses, and sale of home). The exception is the portion of the home used for business or rental purposes, which is analyzed separately.
Tax Rules When You Sell an Inherited House
Inherited homes follow different rules. In most cases, your basis is "stepped up" to the home's fair market value on the date the owner died.
You also do not need to meet the two-year use test for an inherited home. However, the exclusion rules differ if you lived in the home as your residence.
Rental Use, Depreciation, and Home Office Complications
These situations need extra care:
- Rental periods: Years when you rented the home may not count toward the use test.
- Depreciation: If you claimed depreciation for a rental or home office, you generally must recapture it as taxable income, even when the rest of the gain is excluded.
- Home office: Business-use space may limit the exclusion for that part of the home.
If any of these apply, keep detailed records of rental income, expenses, and depreciation.
How to Report the Sale of a Home on Your Tax Return
Reporting a home sale is less about paying tax and more about matching what the IRS already knows. The closing agent may issue Form 1099-S, Proceeds From Real Estate Transactions, which reports the gross sale price to the IRS. Even when you owe no tax, the IRS may still expect the sale to appear on your return if a 1099-S was issued or if you have taxable gain.

When You Must Report the Sale
You generally must report the sale on your return if any of the following apply:
- You received a Form 1099-S from the closing agent.
- You have taxable gain after applying the exclusion.
- You cannot exclude the full gain because you did not meet the ownership and use tests.
If none of these apply and you qualify for the full exclusion, you generally do not need to report the sale. Many sellers in that situation still report it to be safe, especially if a 1099-S was issued.
When a 1099-S Is and Is Not Issued
The closing agent is generally required to issue Form 1099-S unless the seller certifies that the sale qualifies for the exclusion and meets certain conditions. The certification is typically part of the closing paperwork. If you sign it, the closing agent may not issue a 1099-S. If you do not sign it, expect a 1099-S and plan to report the sale.
The Forms You Will Use
- Form 1099-S, issued by the closing agent, reports the gross proceeds. You do not file it, but you use it to complete your return.
- Form 8949, Sales and Other Dispositions of Capital Assets, lists the sale details, including proceeds, basis, and gain. You may need to check box F for long-term transactions reported on a 1099-S.
- Schedule D, Capital Gains and Losses, totals the gains and losses from Form 8949 and carries them to your return.
- Form 1040, Schedule 1 or the appropriate line, where the taxable gain flows through to your individual return.
How the Exclusion Shows Up on the Return
If you qualify for the full exclusion, you generally do not report the excluded gain as income. On Form 8949, you report the sale and then enter an adjustment code for the excluded amount, so the taxable gain shown on Schedule D reflects only the amount above the exclusion.
What If You Receive a 1099-S but Owe No Tax?
You still report the sale on Form 8949 and Schedule D, show the exclusion adjustment, and end up with zero taxable gain. This creates a paper trail that matches the 1099-S and prevents a mismatch notice. Keep your closing statement and improvement records with your return copy in case the IRS asks questions later.
Reporting Rental Use and Depreciation
If you claimed depreciation for a rental period or a home office, you generally must report the sale and account for depreciation recapture. Depreciation recapture is generally taxed differently from the long-term capital gain and is reported separately. This is one of the most common reasons a seller who expected no tax ends up owing tax.
Records to Keep With Your Return
- Closing statement (settlement sheet) from the sale
- Form 1099-S, if issued
- Purchase documents showing original price and purchase closing costs
Keep these records for as long as the IRS may ask about the sale, and longer if you claimed depreciation.
Your Pre-Filing Checklist for Next Year's Return
Use this checklist to stay organized:
- Closing statement (settlement sheet)
- Purchase documents and records of the original price
- Receipts for home improvements
Gather these early. Missing paperwork is the most common reason sellers struggle with their home sale taxes.
If you are selling a home and want help understanding the numbers, 805forsale.com is here to guide buyers and sellers through the process in Ventura County, CA. Reach out to talk through your situation before you list.
Frequently Asked Questions
Do I pay taxes to the IRS when I sell my house?
You may. If your gain is more than the home sale exclusion, which is set by federal tax law, the taxable part is reported on your federal return. Gains that fall within the exclusion are generally not taxed. Your gain is the amount realized minus your adjusted cost basis, so keep records of purchase price, improvements and selling costs to determine how much, if anything, is taxable.
How long do I need to own and live in a home to qualify for the home sale exclusion?
You generally must have owned and used the home as your main home for at least two of the five years before the sale. The two years do not have to be consecutive, and they do not have to be the same two years for ownership and use. Exceptions may apply for certain job relocations, health reasons or unforeseen circumstances, which can allow a partial exclusion.
How do I report the sale of my home on my tax return?
If you receive a Form 1099-S, or if your gain is not fully excluded, you report the sale on Form 8949 and carry the totals to Schedule D of your Form 1040. If the entire gain is excluded and you did not receive a Form 1099-S, you may not need to report it. Check the current instructions for Form 8949 and IRS Publication 523 for your tax year.
How are taxes handled when I sell an inherited house?
Inherited property generally receives a stepped-up cost basis equal to its fair market value on the date of the owner's death, so gain is often measured from that value rather than the original purchase price. If you sell soon after inheriting, the gain is often small. Holding the property and increasing its value can create a larger taxable gain, so track the valuation and any later improvements carefully.