Retirement tax questions

It is shown on your form(s) 1099-R. The amounts there suppose to have different distribution codes and based on the codes tax software does the calculation what part of the rollover was taxable in 2020. You need to keep your statement from your retirement account to keep truck of you basis, what was pre-tax and what was after-tax money.