Deductions & credits

First the sale MUST be reported ... then on the sale ... the gain is taxable but the loss is deductible.