If I sold a stock in 2018 within my IRA at a loss, when can I take the deduction?

I also closed my account in Jan. 2019 with the brokerage firm and took my IRA distribution at that time.  Will I have to wait until next year to claim the loss or is it figured in to my distribution?