The program does this automatically for you ... it will take the prior year loss and net it against any current year gain or add the current year loss to it ... then takes up to $3000 of the loss against ordinary income ... review the Sch D, Sch 1 and the form 1040 to see this happen.