How does Form 8606 Link to Form 1040

How does data input on Form 8606 get transferred to form 1040? Does TT do that automatically by adding my and my husband's non taxable dividends and deducting them from our distributions or do we have to do that ourselves?  Do any lines on 8606 line up directly with 1040.  We just can't figure out how data on the forms are integrated.  We would certainly appreciate your guidance!!  Thank you.