After you file

wait to see if you get a notice from the IRS. the thing is the IRS gets a copy of the 1099-S and has no way of knowing if there's a taxable gain or nondeductible personal loss.