Can I exclude the sale of a rental home that was my primary residence for 3 out of 5 years?

I purchased this home in 2013 and lived in it until 2016. I rented it from 2016-2019 and sold it in 2019. Do i have to report the sale of this home or can i exclude the gain from the sale of this home?