Investors & landlords

As long as you make the property "available for rent", you can deduct expenses, even while listed for sale.