You can avoid capital gains on inherited property if the property you are selling has been your primary residence for two of the past five years (it doesn’t have to be consecutive). Learn more about selling inherited property.