Retirement tax questions

<<Apologies, I am 38 & single. Again, thank you for your help. Taxes are not my forte, just want to make sure I understand. So, if I took the loss of $3,000 on the stock this year and withdrew $5,000 from the Inherited IRA ... $2,000 of the $5,000 withdrawal would be taxable income and $3,000 would not be taxable because it's offset by the loss on the stock?>>

 

that is correct.