Deductions & credits

If you took a 1099R withdrawal from a retirement account like a IRA or 401K it is all taxable.  For a regular brokerage acct 1099B then only the gain is taxable.