Per IRS Instructions for Schedule D Capital Gains and Losses, page D-2:
Sale of Your Home
You may not need to report the sale or exchange of your main home. If you must report it, complete Form 8949 before Schedule D.
Report the sale or exchange of your main home on Form 8949 if:
Any gain you can't exclude is taxable. Generally, if you meet the following two tests, you can exclude up to $250,000 of gain. If both you and your spouse meet these tests and you file a joint return, you can exclude up to $500,000 of gain (but only one spouse needs to meet the ownership requirement in Test 1).
Test 1. During the 5-year period ending on the date you sold or exchanged your home, you owned it for 2 years or more (the ownership requirement) and lived in it as your main home for 2 years or more (the use requirement).
On page D-3:
Test 2. You haven't excluded gain on the sale or exchange of another main home during the 2-year period ending on the date of the sale or exchange of your home.
Reduced exclusion. Even if you don't meet one or both of the above two tests, you still can claim an exclusion if you sold or exchanged the home because of a change in place of employment, health, or certain unforeseen circumstances. In this case, the maximum amount of gain you can exclude is reduced. For more information, see Pub. 523.
Sale of home by surviving spouse. If your spouse died before the sale or exchange, you can still exclude up to $500,000 of gain if:
Exceptions to Test 1. You can choose to have the 5-year test period for ownership and use in Test 1 suspended during any period you or your spouse serve outside the United States as a Peace Corps volunteer or serve on qualified official extended duty as a member of the uniformed services or Foreign Service of the United States, as an employee of the intelligence community, or outside the United States as an employee of the Peace Corps. This means you may be able to meet Test 1 even if, because of your service, you didn't actually use the home as your main home for at least the required 2 years during the 5-year period ending on the date of sale. The 5-year period can't be extended for more than 10 years.
Sale of home acquired in a like-kind exchange. You can't exclude any gain if:
How to report the sale of your main home. If you have to report the sale or exchange, report it on Form 8949. If the gain or loss is short term, report it in Part I of Form 8949 with box C checked. If the gain or loss is long term, report it in Part II of Form 8949 with box F checked.
If you had a gain and can exclude part or all of it, enter “H” in column (f) of Form 8949. Enter the exclusion as a negative number (in parentheses) in column (g) of Form 8949. See the instructions for Form 8949, columns (f), (g), and (h). Complete all columns.
If you had a loss but have to report the sale or exchange because you got a Form 1099-S, see Nondeductible Losses, later, for instructions about how to report it.
More information. See Pub. 523 for additional details, including how to figure and report any taxable gain if:
To enter the Sale of Home information in the TaxAct® program, go to our Sale of Home - Sale of Main Home FAQ.
Note that any link in the information above is updated each year automatically and will take you to the most recent version of the webpage or document at the time it is accessed.