please refer to below link for more details on how federal deductions and exemptions are calculated
https://ttlc.intuit.com/questions/3542731-what-is-federal-deduction-and-exemption