Is the Sale of a House Considered Income for Taxes?

The money you receive when you sell a house is not treated as ordinary income like wages. The profit is a capital gain, and if the property was your main home, federal law lets you exclude up to $250,000 of that gain if you file singly or up to $500,000 if you are married filing jointly. Anything above those limits, or profit from a home that wasn’t your primary residence, is taxed at capital gains rates rather than the higher rates that apply to earned income. So the question of whether the sale of a house is considered income for taxes has a two-part answer: legally yes, practically no for most sellers of a main home.

How the Main-Home Exclusion Works

Section 121 of the Internal Revenue Code is where the exclusion lives. To claim it, you have to pass two tests tied to the five years ending on the sale date.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence

  • You owned the home for at least two of those five years.
  • You lived in it as your primary residence for at least two of those five years.

The two years don’t have to be consecutive. Twelve months, a move, then another twelve months back in the home within the five-year window will satisfy the use test. For a married couple claiming the full $500,000, both spouses must meet the use test and at least one must meet the ownership test, and neither can have used the exclusion on another sale during the prior two years.

Once Every Two Years

The exclusion is limited to one sale per two-year period. If you used it on a previous home within the two years ending on your current sale date, the current sale doesn’t qualify at all, and the full gain becomes taxable at capital gains rates.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence

Selling Before You Hit Two Years

Selling before you meet the two-year threshold doesn’t automatically kill the exclusion. A reduced exclusion is available if the sale was driven by a change in employment, a health condition, or certain unforeseen circumstances.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence The amount is prorated. Lived in the home one year before a qualifying job move? You can exclude up to half the normal cap: $125,000 single, $250,000 joint.

If Your Spouse Died

A surviving spouse can still claim the full $500,000 exclusion if the sale happens within two years of the death and the ownership and use requirements were met immediately before the death.2Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence After that window closes, the single-filer cap of $250,000 applies. Members of the uniformed services, Foreign Service, and intelligence community can also elect to suspend the five-year lookback during qualified extended duty away from home.

Figuring Out How Much Gain There Actually Is

Gain isn’t just sale price minus what you originally paid. The IRS calculation subtracts your adjusted basis and your selling expenses from the sale price.3Internal Revenue Service. Publication 523 – Selling Your Home Whatever remains after applying the Section 121 exclusion is the amount that gets taxed.

What Goes Into Adjusted Basis

Basis starts with the purchase price and grows with certain acquisition costs and capital improvements. When you bought the home, items like legal fees, recording fees, survey fees, transfer taxes, and owner’s title insurance were added to the price to form your initial basis.3Internal Revenue Service. Publication 523 – Selling Your Home

Capital improvements go on top of that. These are projects that add lasting value, extend the home’s useful life, or adapt it to a new use: a new garage, a roof replacement, a central air installation. Routine maintenance doesn’t count. Painting the interior, patching leaks, or replacing broken hardware keeps the house running but doesn’t increase basis.

One quiet trap: if you claimed federal energy efficiency tax credits for improvements in earlier years, those credits reduced the basis of the improvement by the amount of the credit. Your recorded improvement cost is effectively lowered, which can nudge your taxable gain up at sale.

Selling Expenses

Selling expenses come off the sale price before the gain is calculated. Real estate commissions, advertising fees, legal fees tied to the sale, and any mortgage points or loan charges you paid for the buyer all qualify. Transfer and stamp taxes paid by the seller count as well, even though you can’t separately deduct them elsewhere.3Internal Revenue Service. Publication 523 – Selling Your Home Solid records of improvements and closing costs are the most reliable way to shrink a taxable gain.

What Rate Applies to Gain Above the Exclusion

If your gain exceeds the exclusion, or the home didn’t qualify in the first place, the taxable portion is taxed at long-term capital gains rates when you held the property more than a year. Those rates are 0%, 15%, or 20%, depending on taxable income. For the 2026 tax year, the thresholds are:4Internal Revenue Service. Revenue Procedure 2025-32

  • 0% up to $49,450 (single), $98,900 (married filing jointly), or $66,200 (head of household).
  • 15% above those figures up to $545,500 (single), $613,700 (joint), or $579,600 (head of household).
  • 20% above the 15% ceiling.

Held the home one year or less? The gain is short-term and taxed at ordinary income rates, which are generally higher.5Internal Revenue Service. Topic No. 409 – Capital Gains and Losses

High earners face an extra layer. The 3.8% Net Investment Income Tax can apply when modified adjusted gross income exceeds $200,000 for single filers, $250,000 for joint filers, or $125,000 for married individuals filing separately. It runs on the lesser of net investment income or the amount by which income tops the threshold, and it can hit gain on a primary residence that exceeds the Section 121 exclusion.6Internal Revenue Service. Topic No. 559 – Net Investment Income Tax

Situations Where the Default Answer Changes

You Sold at a Loss

A loss on a primary residence isn’t deductible. The IRS classifies your home as personal-use property, and losses on personal-use property cannot offset other income or feed into the $3,000 annual capital loss deduction that applies to investments.7Internal Revenue Service. What if I Sell My Home for a Loss This is a real break from how investment property works.

You Inherited the House

Inherited property resets to its fair market value on the date the previous owner died. That’s the stepped-up basis rule, and it wipes out decades of appreciation for tax purposes.8Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent If the home was worth $400,000 at death and you sell for $420,000, your taxable gain is $20,000. Inherited property also gets long-term capital gains treatment automatically, even if you sell within weeks.9Office of the Law Revision Counsel. 26 USC 1223 – Holding Period of Property If you move in and later sell, you’d still need to meet the two-year ownership and use tests to claim the Section 121 exclusion on any gain above the stepped-up basis.

The Home Wasn’t a Primary Residence

Rental properties, vacation homes, and other investment real estate don’t qualify for the Section 121 exclusion. The whole profit is subject to capital gains tax at the rates above.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Rentals carry an added wrinkle: depreciation recapture. Any part of the gain tied to depreciation you claimed while renting the property out is taxed at a maximum rate of 25%, and any remaining gain is taxed at the standard long-term rate.10Office of the Law Revision Counsel. 26 USC 1 – Tax Imposed

The Home Was Transferred in a Divorce

Transfers between spouses, or between former spouses as part of a divorce, produce no gain or loss at the time of the transfer. The receiving spouse takes over the other spouse’s adjusted basis.11Office of the Law Revision Counsel. 26 USC 1041 – Transfers of Property Between Spouses or Incident to Divorce The tax bill lands when the receiving spouse eventually sells, calculated off that carried-over basis rather than the home’s value on the date of divorce. If the property appreciated significantly during the marriage, the spouse who keeps it can face a larger taxable gain later.

Do You Have to Report the Sale?

The closing agent or title company usually files Form 1099-S with the IRS, showing the gross proceeds, closing date, and your taxpayer identification number.12Internal Revenue Service. Instructions for Form 1099-S You may not receive one if you certify in writing that the home was your primary residence and the full gain is excludable under Section 121, specifically that the sale price was $250,000 or less, or $500,000 or less if you certify you are married.

If you did receive a Form 1099-S, you have to report the sale on Form 8949 and Schedule D even when the entire gain is excludable.13Internal Revenue Service. Sale of Residence – Real Estate Tax Tips You also have to report if any part of your gain is not excludable. Qualified for the full exclusion and didn’t get a 1099-S? You generally don’t need to report the sale at all.14Internal Revenue Service. 2025 Instructions for Schedule D (Form 1040)

State Taxes Are Separate

Federal rules are only half the picture. Many states follow the federal approach and allow residents to exclude primary-residence gains up to the same thresholds. Others treat all or part of the gain as taxable income or apply different exemption amounts, and a handful of states impose no income tax at all. Some states also require buyers to withhold a percentage of the sale price when the seller lives out of state. Assuming your state mirrors federal law can produce an unwelcome bill, so check your state’s rules before you close.