Sale of property with 2 houses where one house is a rental
We bought a property in 1997 with 2 houses, 2 barns, and several other buildings. We used one house and reluctantly rented out the other house in 2002. The property was sold in August 2024. We have been reporting rental income, expenses, and depreciation of the rental house. For the 2024 tax return, I calculated the rental house adjusted cost basis minus depreciation recapture and determined the cap gain.
How do I report the cap gain on the sale of the rest of the property when the rental is part of the overall property? Does it need to be entered as 2 line items on Schedule D, where the total of the 2 line items is the property sale price, adjusted cost basis, minus closing costs?