Selling property that was my primary residence for 2 years, but I rented out part of the house during that time

Hello,

I have a property that I plan to sell in summer 2018. In summer 2015 I converted this property from primary residence to rental property. From summer 2012 to summer 2015 I had this property as primary residence. Although, during that time I rented out portion of my house.

Will I have to pay income taxes after I sell the house? As I mentioned I had this property as primary residence for 2 years, but it was partially rented out during that time.

Thank you,
Dmitriy