Balance due as a result of an underpayment penalty. How does this happen when I have reported income of a military retirement and social security monthly benefits.

Where does a taxpayer determine how to prevent a underpayment penalty.