Investors & landlords

If the rental property was no longer being used as a rental for those prior tax years, you should have been deducting any Mortgage Interest, Mortgage Insurance and Real Estate Property taxes on Schedule A of your personal tax return Form 1040.  Insurance and utilities can never be deducted on a personal residence, not used as a rental or in a business.  None of those expenses can be used as a Selling Expense for the the sale of the property.