Investors & landlords

Thank you for your reply.  We purchased and lived in it 10/15/15 until converting it to a rental 7/27/18.  Sold 2/22/21.  I understand I'll have to pay tax on the depreciation.  I'm having trouble figuring out how to make TT not create a gain in the Rental section based on selling price over purchase price.