It’s time to look at a calendar to see whether you meet the time test for the home sale exclusion. You must have owned and used the home as your principal residence for at least two of the five years preceding the date of sale. This is not based on a calendar year; you can count up days.
Obviously, you owned the home for the requisite period, but you have to see whether you also used it as your primary home for at least two years. If another residence is your primary home and you spent time in the one you sold, those days don’t count; only the days it was used as a principal residence are taken into account.
The difference between amount realized and adjusted basis on the sale or exchange of capital assets. Long-term capital gains are taxed favorably. Capital losses are deducted first against capital gains, and then again up to $3,000 of other income.