Selling an Investment Property

I want to know how to figure the tax impact of selling an investment property.  We own a property that we've rented out for many years.  If we sell it, are there items we can deduct from the sales price, in order to compute the taxable amount?  What IRS publications would provide this information?