Payroll tax calculation involves multiple components. Employers must withhold federal income tax, state and local income taxes (where applicable), and FICA taxes (which include Social Security and Medicare). The Federal Insurance Contributions Act (FICA) mandates that both employers and employees contribute to Social Security and Medicare. Additionally, employers are responsible for paying their portion of these taxes, which often matches the amount withheld from employees.