Only those who own their properties for at least a year and who earn no more than $44,625 in taxable income can completely avoid capital gains. You can defer your capital gains tax, however, if the property was your primary residence for at least 2 of the previous 5 years.