Generally speaking, this is the difference between the sales price of the relinquished property less selling expenses and the adjusted basis of the property.