Deductions & credits

You must have owned and lived in the home as your primary residence for at least 2 of the last 5 years on the date of the sale. So, if for example, you lived in it for 2 years (1 year as a renter) but only owned it for one, then you do not qualify.