Retirement tax questions

Amount in box 1 of a W-2 will be treated as wages.

What makes you think a portion is not-taxable, and how is the fraction determined?