Payroll tax is a tax imposed on employers or employees, typically calculated as a percentage of the salaries that employers pay their staff. It is used primarily to fund social insurance programs like Social Security and Medicare in the United States, ensuring a safety net for retirees, the disabled, and other eligible beneficiaries.