Skip to content
Solar Account.
Finance & Investing

Understanding Tax on Profit From Home Sale: Capital Gains and Exemptions

When you sell your primary residence for more than you paid for it, the profit is generally treated as a capital gain. However, under current U.S. tax law, most homeowners qualify for a significant exclusion that allows them to shield up to $250,000 of that ga...

Understanding Tax on Profit From Home Sale: Capital Gains and Exemptions

When you sell your primary residence for more than you paid for it, the profit is generally treated as a capital gain. However, under current U.S. tax law, most homeowners qualify for a significant exclusion that allows them to shield up to $250,000 of that gain from federal income taxes if they are single, or $500,000 if they are married filing jointly. Whether you owe taxes depends on your ownership duration, how long you used the property as your main home, and the total amount of your realized profit.

Contents

Distinguishing Between Profit and Taxable Gain

To determine if you owe a tax on profit from a home sale, you must first calculate your "capital gain." This is not simply the difference between your selling price and your original purchase price. Instead, it is the difference between the "adjusted basis" of your home and the "net proceeds" from the sale.

The adjusted basis is essentially what you invested in the home. It starts with the original purchase price, but you must increase this figure by adding the costs of major home improvements—such as adding a deck, installing a new roof, or kitchen renovations. Routine maintenance or repairs, such as fixing a leaky faucet or painting the walls, do not count toward your adjusted basis.

Conversely, the net proceeds are determined by taking the total sale price and subtracting the costs of selling the property. These costs include real estate agent commissions, title insurance, transfer taxes, and legal fees associated with the sale. By subtracting your adjusted basis from your net proceeds, you arrive at your capital gain. If this number is negative, you have a loss, which is generally not tax-deductible for a primary residence.

Meeting the Ownership and Use Requirements

Home-Seller Profits Continue Rising As Home Values Hit New Highs | ATTOM

The Internal Revenue Service (IRS) provides a substantial tax break under Section 121 of the Internal Revenue Code, but eligibility is contingent upon meeting specific "ownership and use" tests. To exclude up to $250,000 (single) or $500,000 (married filing jointly) of the gain from your income, you generally must meet the following criteria:

  • Ownership Test: You must have owned the home for at least two of the five years leading up to the date of the sale.
  • Use Test: You must have used the property as your primary residence for at least two of the five years leading up to the date of the sale.

These two years do not need to be consecutive. You can aggregate different periods of time during the five-year window to satisfy the requirement. For example, if you lived in the house for 12 months, rented it out for two years, and then moved back in for another 12 months, you would meet the two-year use requirement within the five-year timeframe.

Tax Treatment of Gains Exceeding Exclusion Limits

If your profit exceeds the $250,000 or $500,000 threshold, the remaining amount is considered a capital gain. This gain is subject to federal capital gains tax rates, which are typically lower than standard income tax rates. As of 2026, the specific rate you pay—0%, 15%, or 20%—depends on your taxable income and filing status.

It is also important to consider state and local taxes. While the federal government provides the primary residence exclusion, some states do not mirror these rules or have their own specific reporting requirements. You should review the tax code in your specific state to ensure you are not missing potential state-level liabilities that are independent of your federal filing.

Partial Exclusions for Unexpected Life Events

If you fail to meet the two-year ownership and use tests, you might still qualify for a partial exclusion if you sold your home due to a "qualified event." This provision is designed to provide relief for taxpayers who are forced to move unexpectedly. Qualifying reasons include:

  • Change in Place of Employment: If your new place of work is at least 50 miles farther from your home than your old place of work was.
  • Health Reasons: A move required by a doctor to treat a disease, illness, or injury, or to provide care for a family member.
  • Unforeseeable Events: Situations beyond your control, such as a natural disaster, acts of war, or a legal change in employment status that results in the inability to pay basic living expenses.

In these cases, the amount of the exclusion is pro-rated based on the portion of the two-year requirement that you actually fulfilled.

Comparison of Taxable vs. Excluded Gains

The following table provides a high-level overview of how different scenarios impact the taxation of your home sale profit.

Scenario Ownership/Use Test Met? Exclusion Limit Taxable Gain
Single, $150k profit Yes $250k $0
Married, $400k profit Yes $500k $0
Single, $350k profit Yes $250k $100k
Single, $100k profit No (1 year total) $0 $100k

Reporting the Sale to the IRS

Even if you believe your entire gain is excluded from taxation, you may still have a reporting obligation. If you received a Form 1099-S, "Proceeds From Real Estate Transactions," you are generally required to report the sale on your tax return.

Failure to report the sale can lead to automated inquiries from the IRS, as the agency receives a copy of the 1099-S. By filing IRS Form 8949 and Schedule D, you can document the sale, explain why the gain is excluded, and reconcile the information with the 1099-S. Properly documenting your adjusted basis—including receipts for major improvements—is critical in case of an audit. Always store these documents in a secure place for at least three years after the tax year in which the sale occurred.

Frequently Asked Questions

Can I exclude the gain if I have sold another home in the last two years?

Generally, no. The capital gains exclusion for a primary residence can only be used once every two years. If you used the exclusion on a home sale within the two years preceding the date of your current sale, you are typically ineligible to use it again until the two-year period has elapsed.

Does the exclusion apply to second homes or vacation properties?

No. The exclusion under Section 121 applies only to your primary residence. Gains from the sale of a second home, vacation property, or investment property are subject to capital gains tax in their entirety, regardless of how long you owned the property.

What happens if I inherited the home I am selling?

If you inherit a home, your "basis" in the property is usually the fair market value of the home on the date of the previous owner's death, known as a "stepped-up basis." This can significantly reduce the amount of taxable profit when you eventually sell the home, as the gain is measured only from the date of death, not the original purchase date.

Are there any deductions I can take for a loss on my home sale?

No. If you sell your personal residence for less than what you paid for it (including improvements), you have a personal loss. The IRS does not allow you to deduct losses on the sale of a personal residence, nor can you use that loss to offset other capital gains from stocks or other investments.

Do I need to report the sale if I didn't get a 1099-S?

If the sale qualifies for the full exclusion and you did not receive a 1099-S, you are generally not required to report the transaction. However, keeping records of the sale is still recommended for your personal financial history and to ensure you have proof of the transaction should any questions arise regarding the property's title or history.

Professional Guidance and Next Actions

Tax laws regarding real estate are subject to complexity, particularly when dealing with mixed-use properties (such as a home with a home office or a basement apartment rental) or partial ownership interests. Before finalizing your tax return, review the current version of IRS Publication 523, "Selling Your Home," which provides the most granular detail on calculating your basis and determining eligibility for the exclusion.

If your situation involves significant profit exceeding the exclusion, or if you have complex circumstances regarding the timing of your move or inheritance, consult with a licensed Certified Public Accountant (CPA) or a tax attorney. They can assist in ensuring that all eligible home improvements are included in your basis and that you are correctly applying the exclusion to minimize your total tax burden. Always retain copies of your closing statement (HUD-1 or Closing Disclosure) and receipts for significant capital improvements as they are the primary evidentiary documents for your tax filings.

Written by

Jonathan Reed

Cloud & Enterprise IT Correspondent