Retirement tax questions

So is my cost basis for 2020 the total amount of my contribution still unrecovered? Or is it the amount that I recovered that year?