Straight answer
Do I pay tax when I sell my house?
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.
- IRS — Topic no. 701, Sale of your home
Money Mechanics explains how things work in plain language. It is not personalized financial advice.
Get the next guide by email
New plain-language guides and tools as they land. Free, always — unsubscribe anytime.
Free to read.No jargon, no judgment, no spam.
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.
