Deductions & credits

The answer's the same.  It gets added to the adjusted basis of the property you sold.