Yes, to report Capital Gain AND Depreciation Recapture.
Capital gain alone will be based on the "Adjusted Basis" which is the original bases less the depreciation.
Whatever your basis (or cost) was, should have been what you used for depreciation.
When sold, Depreciation Recapture is first reported and claimed as Ordinary (personal) income.
Any amount over that is Capital Gain.
If you split cost between land and building, only the building would have been depreciated. You can allocate the sales proceeds between the building and land based on the same percentage you used when it was placed into service.
Remember that you must recapture depreciation regardless of whether it was reported (taken) or not.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"