It qualifies for the exclusion, and you need to mark it as such if you lived in it at least 2 of the last 5 years. However, if you rented the home in the past, you are still subject to tax on depreciation recapture (Section 1250), even though the gain itself is not taxed for capital gains tax.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"