You may be able to exclude up to $250,000 ($500,000 if MFJ) gain on the sale of your primary residence. To claim the exclusion, you must meet the ownership and use tests. This means that during the 5-year period ending on the date of the sale (closing), you must have:
Owned the home for at least 2 years (24 months) (the ownership test), and
Lived in the home as your main home for at least 2 years (24 months) (the use test).
If you qualify for the capital gain exclusion, you do not have to report the gain on the sale of your personal residence on your federal tax return unless the gain on the sale was greater than the exclusion, you rented the home out, you claimed a home office deduction, or you received a Form 1099-S for the sale of the home.
You cannot exclude from income any of the gain on the sale of your vacation condo. If you owned the condo for more than one year, the gain would be taxed at long term capital gains tax rates.