It would carry over to your 2018 Schedule D. Short term losses carry to Line 6. Long term carry to Line14. They are then applied to any gains in 2018. If you have any losses over and above your gains, you can deduct up to $3000 for 2018 on your 1040, Schedule 1, Line 13.