Retirement tax questions

I'm still confused.  I know I need to pay taxes on the amount that was reported on the 1099-R ($40,000), even though it's termed a rollover and not a distribution.  How is that reported in TurboTax? I think I did that through the questions about the 1099-R when I entered it, but the preview of the 1040 form shows the word "rollover" on line 5b and the amount listed to the right of that is nearly the same amount as was reported on line 5a - a lot more than what rolled over.  What am I missing as to how this is handled in TurboTax and on my return?