Deductions & credits

Are you building the house yourself, so investment spending would be the machinery and equipment? If this is a business of yours where you build houses and sell them, then the machinery, equipment, etc would be depreciated on the schedule C this year. It would not wait until the sale.

If you are still referring to the land and house as the investment, then you would write it off in the year of sale.