Retirement tax questions

Thank you for your reply. Unfortunately, I am filing for 2022 so I have not had this Roth open for 5 years. 
I did receive a 1099-R but when I entered the information into the TurboTax (and answered the questions)  the result was a tax on the full distribution, not just the earnings.