Selling Investment Property in an Estate

I have an investment property that was sold in an Estate which had a private mortgage payoff.  I have included the sales expenses but it says not to put mortgage payoffs in this category.  How do I include the payoff to reduce the capital gain?  Any help would be appreciated.