Business & farm

See https://www.irs.gov/publications/p527#en_US_2022_publink1000219001

 

Vacant while listed for sale.

If you sell property you held for rental purposes, you can deduct the ordinary and necessary expenses for managing, conserving, or maintaining the property until it is sold. If the property isn’t held out and available for rent while listed for sale, the expenses aren’t deductible rental expenses.