Investors & landlords

If I identify that I sold a rental single family home in the depreciation section; I cannot get the correct cost basis as it does not include land value from original purchase price.  How do you add that correctly to ensure your capital gain is correct.