Profit from selling a house is treated as a capital gain, not ordinary income. The IRS classifies a personal residence as a capital asset, so the money you clear at closing is taxed under capital gains rules rather than at the higher rates that apply to wages. On top of that, a federal exclusion wipes out up to $250,000 of gain for single filers and $500,000 for married couples filing jointly, which is why most sellers owe no federal tax on the sale at all.1Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence
Why the Profit Is a Capital Gain
Wages, freelance pay, and tips are ordinary income, taxed at graduated federal rates that run as high as 37 percent.2Internal Revenue Service. Federal Income Tax Rates and Brackets A home doesn’t sit in that column. The IRS treats a personal residence as a capital asset, and profit from selling a capital asset is a capital gain.3Internal Revenue Service. Publication 523, Selling Your Home The practical difference is the rate: long-term capital gains top out at 20 percent, roughly half the ceiling on ordinary income.
One caveat matters here. Losses on a personal residence are not deductible. Even though gains are handled under capital rules, the IRS doesn’t let you claim a capital loss on your main home the way you could on a stock.4Internal Revenue Service. What If I Sell My Home for a Loss?
The Exclusion That Usually Erases the Tax
Before any rate is applied, Section 121 of the Internal Revenue Code lets you exclude a large slice of the gain from tax entirely. Single filers can exclude up to $250,000. Married couples filing jointly can exclude up to $500,000.1Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence If your gain fits under those limits and you meet the eligibility rules, you owe zero federal tax on the sale.
Ownership and Use
To claim the full exclusion, two tests apply over the five-year window ending on the sale date. You must have owned the home for at least two of those five years, and you must have lived in it as your main residence for at least two of those five years.1Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence The two years don’t need to run consecutively. For the joint $500,000 exclusion, at least one spouse must satisfy the ownership test and both must satisfy the use test.
Once Every Two Years
You can’t stack the exclusion on back-to-back sales. If you already excluded gain from another home sale within the two years before your current sale, you’re not eligible again.5Internal Revenue Service. Topic No. 701, Sale of Your Home
Partial Exclusion for Job, Health, or Unforeseen Moves
Sellers who fall short of the two-year requirements can still claim a reduced exclusion if the sale was triggered by a work relocation, a health issue, or an unforeseen circumstance such as a divorce or natural disaster.1Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence The reduced amount is proportional. Live in the home for one year of the required two, and you get half the maximum: $125,000 single, $250,000 joint.
Military and Related Service
Members of the uniformed services, the Foreign Service, the intelligence community, and the Peace Corps can suspend the five-year look-back while on qualified extended duty. The suspension can run up to 10 years, extending the total window to as long as 15 years. Qualifying duty stations sit at least 50 miles from the home, or the servicemember lives in government quarters under orders.3Internal Revenue Service. Publication 523, Selling Your Home
How the Gain Is Actually Calculated
The gain isn’t just sale price minus purchase price. It’s a three-step figure: your cost basis, adjusted upward for improvements, subtracted from your net proceeds.
Basis starts with the original purchase price. To it you add capital improvements that increased the home’s value or extended its useful life. A new roof, a full kitchen remodel, or an added bathroom counts. Routine upkeep like painting or fixing a faucet does not.3Internal Revenue Service. Publication 523, Selling Your Home Every documented dollar of qualifying work raises your basis and lowers your taxable gain, so receipts pay off years later.
On the selling side, you reduce the gross sale price by certain transaction costs to reach net proceeds. Agent commissions (currently averaging around 5 to 6 percent of the sale price), transfer taxes, legal fees, and title insurance come off the top. The difference between your adjusted basis and your net proceeds is the gain. Only the portion above your Section 121 exclusion is taxable.
The Rate If You Do Owe
Whether any leftover gain is taxed at ordinary rates or the lower capital gains rates depends on how long you owned the home. Held for one year or less, the gain is short-term and taxed at the same graduated rates as your wages. Held longer than one year, it’s long-term and gets the preferential rates. Since most people live in a home for several years, most sales fall on the long-term side.
For 2026, the long-term brackets sit at 0 percent, 15 percent, and 20 percent, with the cutoffs depending on filing status. The 0 percent rate covers taxable income up to $49,450 for single filers, $98,900 for joint filers, and $66,200 for heads of household. The 15 percent rate covers taxable income above those figures up to $545,500 single, $613,700 joint, and $579,600 head of household. Above those ceilings, the rate is 20 percent.6Tax Foundation. 2026 Tax Brackets and Federal Income Tax Rates Most sellers with a taxable gain land in the 15 percent bracket.
Extra Layers That Can Apply
Net Investment Income Tax
Higher-income sellers face an additional 3.8 percent surtax on top of the capital gains rate. The Net Investment Income Tax kicks in when modified adjusted gross income exceeds $200,000 single, $250,000 married filing jointly, or $125,000 married filing separately.7Internal Revenue Service. Topic No. 559, Net Investment Income Tax The portion of gain excluded under Section 121 doesn’t count toward this tax; only the recognized gain above the exclusion is exposed.8Internal Revenue Service. Questions and Answers on the Net Investment Income Tax The tax applies to the lesser of your net investment income or the amount by which your MAGI exceeds the threshold, and the thresholds are not indexed for inflation.
Depreciation Recapture
If you claimed a home office deduction or rented out part of the home, you probably took depreciation. The IRS wants that benefit back at sale. Depreciation claimed after May 6, 1997, is recaptured at a rate of up to 25 percent, no matter how the rest of your gain is taxed.9Internal Revenue Service. Treasury Decision 8836, Unrecaptured Section 1250 Gain
Where the office sat inside the home matters. A spare-bedroom office or converted basement doesn’t force you to split the gain; the whole profit still qualifies for the Section 121 exclusion, minus the recaptured depreciation. An office in a separate structure, such as a detached garage, forces an allocation between residential and business portions, and only the residential piece gets the exclusion.3Internal Revenue Service. Publication 523, Selling Your Home
Periods of Nonqualified Use
If you rented the property out before moving in and treating it as your primary residence, the gain tied to that rental stretch, a “period of nonqualified use,” can’t be sheltered by Section 121.10Legal Information Institute. 26 U.S. Code 121 – Period of Nonqualified Use The split is proportional. Own for 10 years, rent for the first 4, and roughly 40 percent of the gain falls outside the exclusion. Time after you move out for the last time doesn’t count against you.
Inherited Homes
Inheriting a home resets the basis. Your starting figure isn’t what the original owner paid; it’s the fair market value on the date of death.11Office of the Law Revision Counsel. 26 U.S. Code 1014 – Basis of Property Acquired From a Decedent This step-up wipes out the tax on appreciation that built up during the previous owner’s lifetime. A parent who bought for $80,000 in 1985 and leaves you a home worth $400,000 hands you a $400,000 basis. Sell for $420,000, and your gain is $20,000.
You can still claim the Section 121 exclusion on an inherited home, but only if you meet the same two-year ownership and use tests. A surviving spouse who sells within two years of their partner’s death can claim the full $500,000 joint exclusion, provided the ownership and use requirements are met, counting the deceased spouse’s time in the home.
Homes Divided in a Divorce
Property transferred between spouses in a divorce isn’t itself a taxable event. Under 26 U.S.C. ยง 1041, the receiving spouse takes the transferring spouse’s basis, essentially stepping into their shoes.12Office of the Law Revision Counsel. 26 U.S. Code 1041 – Transfers of Property Between Spouses or Incident to Divorce The transfer has to occur within a year of the marriage ending or be directly related to the divorce.
The trap is the carryover basis. If the home was bought for $200,000 and is now worth $600,000, the spouse keeping it inherits the $200,000 basis and a $400,000 potential gain. Filing single, that spouse can only exclude $250,000, leaving $150,000 exposed. Splits that look equal on paper often aren’t once future tax is factored in.
State Taxes
The federal exclusion doesn’t touch state tax. Most states tax capital gains at the same rates as ordinary income, so your state bill depends on where you live and your total income. States without an income tax, such as Texas, Florida, and Nevada, don’t tax the gain. In high-tax states like California, a top-bracket seller can face a combined state rate above 13 percent on the taxable portion. Across all states, the range runs from zero to roughly 14 percent.
Reporting the Sale
Most sellers get Form 1099-S from the closing agent or title company after the sale. It reports the gross proceeds to you and to the IRS.13Internal Revenue Service. Instructions for Form 1099-S (04/2025) If the closing agent gets a written certification that the home was your principal residence and the entire gain is excluded, they can skip the 1099-S, though many file it anyway.
If you receive a 1099-S, you must report the sale even if every dollar of gain is excluded. Reporting happens on Form 8949, with the excluded amount entered as a negative adjustment using code “H”; the totals flow to Schedule D of your Form 1040.14Internal Revenue Service. 2025 Instructions for Form 8949, Sales and Other Dispositions of Capital Assets If you didn’t get a 1099-S and the full gain sits inside the exclusion, the IRS doesn’t require you to report the sale, but hold on to your closing disclosure and improvement receipts in case of a later question.3Internal Revenue Service. Publication 523, Selling Your Home