Deductions & credits

To reinforce what DeniseF1 said: since you got a 1099-S it's important that you report the sale (for the gross amount on the form) even though it doesn't result in a taxable profit or a tax deductible loss.  Until you report it, the IRS will consider it ALL profit.