Is Selling a House Considered Income or Capital Gain?

Profit from selling a house is treated as a capital gain, not as ordinary income like wages. That classification matters because long-term capital gains are taxed at lower federal rates than a paycheck, and a separate rule lets most homeowners exclude a large chunk of the profit from tax entirely. Whether selling a house counts as income or capital gain has a clear answer under federal law, but what you actually owe depends on how long you owned the home, whether you lived in it, and how much you made.

Capital Gain, Not Ordinary Income

A personal residence is a capital asset, so any profit from its sale is a capital gain.1Internal Revenue Service. Capital Gains, Losses, and Sale of Home It does not get added to your wages and taxed at ordinary rates unless you owned the property for a year or less.

If you owned the home for more than one year, the profit qualifies as a long-term capital gain. Federal rates on long-term gains are 0%, 15%, or 20%, depending on your taxable income and filing status.2Office of the Law Revision Counsel. 26 U.S. Code 1 – Tax Imposed For 2026, single filers pay 0% on taxable income up to $49,450, 15% up to $545,500, and 20% above that. Married couples filing jointly pay 0% up to $98,900, 15% up to $613,700, and 20% above.

Owned it a year or less? The profit is a short-term capital gain and gets taxed at ordinary income rates of 10% to 37%. That situation is uncommon for a typical homeowner and mostly hits people flipping property.

The Exclusion That Wipes Out Most Sellers’ Tax

The Section 121 exclusion lets you keep up to $250,000 of gain tax-free, or up to $500,000 on a joint return.3Office of the Law Revision Counsel. 26 USC 121 Exclusion of Gain From Sale of Principal Residence For most sellers, that erases the taxable gain entirely.

To qualify, you have to pass two tests during the five-year window ending on the sale date:

  • Ownership test: you owned the home for at least two of those five years.
  • Use test: you lived in it as your main home for at least two of those five years.

The two years don’t need to be consecutive. Twelve months in, two years away, twelve months back in still works, as long as it all falls inside the five-year window.3Office of the Law Revision Counsel. 26 USC 121 Exclusion of Gain From Sale of Principal Residence

For the $500,000 joint amount, either spouse can meet the ownership test, but both must independently pass the use test. If only one spouse lived there long enough, the couple is capped at $250,000.3Office of the Law Revision Counsel. 26 USC 121 Exclusion of Gain From Sale of Principal Residence

One rule catches repeat sellers: the exclusion is only available once every two years. If you used it on another home sale within the prior two years, you can’t use it again on this one.3Office of the Law Revision Counsel. 26 USC 121 Exclusion of Gain From Sale of Principal Residence

Partial Exclusion for Job, Health, or Unforeseen Moves

If you fall short of the two-year requirement because of a job change, a health condition, or certain unforeseen circumstances, you can still claim a prorated exclusion. The partial amount equals the fraction of two years you satisfied, applied to the $250,000 or $500,000 cap.3Office of the Law Revision Counsel. 26 USC 121 Exclusion of Gain From Sale of Principal Residence One year of residency and a qualifying job move gets a single filer up to $125,000.

For a job change to count, the new workplace has to be at least 50 miles farther from the home than the old workplace was. Without a previous job, the new one just has to be 50 miles or more from the home.4Internal Revenue Service. Publication 523, Selling Your Home

Members of the military, Foreign Service, and intelligence community on qualified official extended duty can suspend the five-year look-back for up to 10 years, which allows a long deployment without losing the exclusion.5eCFR. 26 CFR 1.121-5 Suspension of 5-Year Period for Certain Members of the Uniformed Services and Foreign Service

Working Out the Actual Gain

The IRS doesn’t tax the sale price. It taxes the profit, and getting to that number takes three figures: what you paid, what you spent improving the home, and what you netted at closing.

Start with your cost basis, usually the original purchase price. Add the cost of capital improvements to get your adjusted basis. Improvements add value or extend the home’s life: a new roof, a kitchen remodel, central air, a deck, a finished basement. Routine maintenance doesn’t count, so painting, drywall patches, and faucet repairs stay off the list.4Internal Revenue Service. Publication 523, Selling Your Home

Then figure your amount realized by subtracting selling costs from the sale price. Real estate commissions, legal fees, advertising, and transfer taxes you paid as the seller all reduce the amount realized, as do mortgage points you covered for the buyer.4Internal Revenue Service. Publication 523, Selling Your Home

Amount realized minus adjusted basis is your gain. If that number is below your Section 121 exclusion, there’s no federal tax. If it’s above, only the excess is taxable.6Internal Revenue Service. Property (Basis, Sale of Home, Etc.) 3

Keep records. The IRS can ask for closing statements from both the purchase and the sale, plus documentation for every improvement. No paperwork, no deduction.

When You Owe Tax Even With the Exclusion

Depreciation Recapture

If you ever claimed a home office deduction or rented part of the property, the depreciation you took (or could have taken) doesn’t get the Section 121 shield. Gain attributable to depreciation after May 6, 1997 is excluded from the exclusion and taxed at a maximum rate of 25%.7Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence2Office of the Law Revision Counsel. 26 U.S. Code 1 – Tax Imposed

What surprises people: the tax applies even if you never actually claimed the depreciation. The IRS reduces your basis by the greater of what you took or what you were entitled to take. The exception is the simplified home office method (the flat $5-per-square-foot rate), which treats depreciation as zero and leaves your basis alone.8Internal Revenue Service. Depreciation and Recapture 3

Nonqualified Use

Time the home was a rental or sat vacant after 2008 before you converted it back to a primary residence can trim your exclusion. The IRS divides nonqualified days by total days of ownership and applies that fraction to your gain; that portion can’t be excluded, even if you otherwise pass both tests.7Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence

Not every absence counts. Military duty, temporary absences of up to two years for health or job reasons, and any period after the last date you used the home as your main residence are exempt. Practically, if you lived in the home last rather than renting it out last, the final stretch doesn’t hurt you.

Net Investment Income Tax

Higher-income sellers can owe an extra 3.8% on the taxable portion of the gain. The surtax applies when modified adjusted gross income exceeds $200,000 for single filers, $250,000 for married couples filing jointly, or $125,000 for married filing separately.9Internal Revenue Service. Topic No. 559, Net Investment Income Tax It hits the smaller of your net investment income or the amount your income runs over the threshold. Gain excluded under Section 121 doesn’t count as investment income, so only the taxable slice is exposed.10Internal Revenue Service. Questions and Answers on the Net Investment Income Tax

If You Inherited or Were Given the Home

How you got the property changes the basis calculation, and that changes the gain.

Inherited homes get a stepped-up basis: your starting point is the property’s fair market value on the date the previous owner died, not what they paid.11Office of the Law Revision Counsel. 26 U.S. Code 1014 – Basis of Property Acquired From a Decedent A home bought in 1985 for $80,000 and worth $400,000 at death gives you a $400,000 basis. Sell it for $420,000 and the gain is $20,000. You can still use the Section 121 exclusion, but you need to meet the ownership and use tests yourself; the decedent’s years don’t carry over.

Gifted homes work the opposite way. You generally take the donor’s original basis. Same home, gifted at $400,000 value, keeps its $80,000 basis in your hands. A $420,000 sale produces a $340,000 gain instead of $20,000. If the home’s fair market value at the gift date was below the donor’s basis, you use that lower value for calculating a loss. Any gift tax paid on the transfer can add to your basis, but not above the home’s fair market value at the time of the gift.12Office of the Law Revision Counsel. 26 U.S. Code 1015 – Basis of Property Acquired by Gifts and Transfers in Trust

State Tax

Most states also tax capital gains from home sales, and rates vary widely. About 10 states impose no state income tax on capital gains at all. Others tax them at rates as high as roughly 13% to 14%. Some offer credits or reduced rates for long-term gains; a few tax capital gains only above certain dollar thresholds. Check your state’s rules before estimating a total bill.

Reporting the Sale

Every real estate transaction is reported to the IRS on Form 1099-S, which shows the gross sale price. The closing agent files it and collects your taxpayer identification number at closing.13Internal Revenue Service. Instructions for Form 1099-S

You can avoid receiving a 1099-S by giving the closing agent a written certification that the home was your principal residence, the full gain qualifies for the Section 121 exclusion, and there were no periods of nonqualified use after 2008. The sale price also has to be $250,000 or less for the certification to apply.13Internal Revenue Service. Instructions for Form 1099-S

If any portion of your gain exceeds the exclusion, or if you receive a Form 1099-S, report the sale on Form 8949. The totals flow onto Schedule D of Form 1040, where the tax is calculated.14Internal Revenue Service. 2025 Instructions for Schedule D (Form 1040) If the entire gain is excludable and you didn’t get a 1099-S, no reporting is required.

Failing to report a taxable gain, or reporting too little, can trigger an accuracy-related penalty of 20% of the underpayment, plus interest.15Internal Revenue Service. Accuracy-Related Penalty The 1099-S means the IRS already knows the sale happened.