Skip to main content
Money Mechanicsfrom The Payments Corner
Subscribe

Straight answer

Do I pay tax when I sell my house?

Plain language · No sign-in · Verified 2026-11

Short answer

Maybe not. If you make a profit (a capital gain) selling your main home, you may be able to exclude up to $250,000 of that gain from your income, or up to $500,000 if you file a joint return with your spouse. To qualify, you generally must have owned the home and lived in it as your main home for at least 2 of the 5 years before the sale, and not have used the exclusion on another home sale in the 2 years before.

How do the ownership and use tests work?

You meet the ownership test if you owned the home for at least 24 months of the 5 years before the sale, and the use test if you lived in it as your residence for at least 24 months of those 5 years. The two periods don't have to be the same 2 years, but both must fall within the 5 years ending on the date of the sale. On a joint return, either spouse can meet the ownership test, but both must meet the use test.

Do I have to report the sale?

Yes, if you get a Form 1099-S for the sale, even if your whole gain is excluded. You also have to report it if you can't exclude all of your gain. The sale goes on Schedule D and Form 8949 of your tax return when required.

I'm in the military or Foreign Service. Is there a special rule?

If you or your spouse are on qualified official extended duty in the Uniformed Services, the Foreign Service or the intelligence community, you can choose to suspend the 5-year test period for up to 10 years. That generally means being stationed at least 50 miles from your main home, or living in government housing under orders, for more than 90 days or indefinitely.

What if the buyer pays me over several years?

That's an installment sale, reported under the installment method unless you choose otherwise. You can still use the home sale exclusion even if you defer part of the gain that way.

The figures
Exclusion singleUp to $250,000 of gain
Exclusion jointUp to $500,000 of gain
Ownership and use2 of the 5 years before the sale
Report ifYou get a Form 1099-S, or can't exclude all of the gain
Verified 2026-11
Sources
  • IRS — Topic no. 701, Sale of your home

Money Mechanics explains how things work in plain language. It is not personalized financial advice.

Didn’t find what you need? Ask a question

We read every question and turn the common ones into free, plain-language answers. We can’t give personal advice, so please leave out account numbers and other personal details.

Only used to tell you when the answer is up.