Form 2119 at a glance
What it is: Attach this form to Form 1040 for year of sale.
Who signs: Sign here only if you are filing this form by itself and not with your tax return. By signing you declare that you have examined this form, including attachments, and that to the best of your knowledge and belief it is true, correct, and complete. If a joint return, both must sign.
The blank Form 2119: print it and complete it by hand

How to fill out Form 2119, box by box
Part I Gain on Sale
Enter the date your former main home was sold (month, day, year) on line 1. On line 2, have you bought or built a new main home? Mark No or Yes.
On line 4, enter the selling price of home; do not include personal property items you sold with your home.
Enter the adjusted basis of home sold on line 7; for the gain on sale on line 8, subtract line 7 from line 6.
Is line 8 more than zero? If not, stop; see Loss on the Sale of Your Home on page 1.
If line 2 is "Yes," you must go to Part II or Part III, whichever applies. If line 2 is "No," go to line 9.
On line 9, if you haven't replaced your home, do you plan to do so within the replacement period (see page 1)? Mark No or Yes. If line 9 is "Yes," stop here, attach this form to your return, and see Additional Filing Requirements on page 1.
Part II One-Time Exclusion of Gain for People Age 55 or Older
If line 9 is "No," you must go to Part II or Part III, whichever applies. By completing Part II, the One-Time Exclusion of Gain for People Age 55 or Older, you are electing to take the one-time exclusion (see page 2). If you are not electing to take the exclusion, go to Part III now.
Say who was age 55 or older on the date of sale: You, Your spouse, or Both of you.
Part III Adjusted Sales Price
On line 15, if line 14 is blank, enter the amount from line 8. Otherwise, subtract line 14 from line 8. If line 15 is zero, stop and attach this form to your return. If line 15 is more than zero and line 2 is "Yes," go to line 16 now. If you are reporting this sale on the installment method, stop and see page 4. All others, stop and enter the amount from line 15 on Schedule D, col. (g), line 4 or line 12.
Adjusted sales price. Subtract line 17 from line 6.
Adjusted basis of new home. Subtract line 22 from line 19b.
More rules for Form 2119
Enter your last name, your first name and initial, your present address, and your social security number; if a joint return, also give your spouse's name and initial and your spouse's social security number. Fill in your address only if you are filing this form by itself and not with your tax return.
Sources
[1] Form 2119, Sale of Your Home, Department of the Treasury Internal Revenue Service.
