Payroll taxes are usually calculated based on your gross wages. The main components include federal income tax, Social Security tax, Medicare tax, and sometimes state or local taxes. Employers use tax tables provided by the IRS (and state agencies) along with your W-4 info to figure out how much to withhold. Many use payroll software or online calculators, which automatically apply the correct rates and deductions, making the process much easier.