If the home ceased to be a rental for the entire year, the interest and taxes (no HOA fees) would be deductible as an itemized deduction on Schedule A as a second home.
You could add the HOA fees and any other expenses you had while maintaining the property before the sale to the basis. These would be not be selling expenses.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"