Most state and local government employees do pay Social Security payroll taxes, but a substantial minority—concentrated in certain states, positions, and pension systems—do not, because their public employer participates in a separate retirement plan instead of Social Security. There is no single national rule for public-sector workers; coverage is determined employer by employer, and sometimes employee by employee within the same government.
The Core Distinction: Social Security Coverage Is Not Automatic for Public Employers
Private-sector employers generally must withhold Social Security and Medicare taxes (FICA) from wages and pay the matching employer share. State and local governments were never automatically folded into that system. When Social Security was created in the 1930s, public employees were excluded from the program, largely because of constitutional questions about taxing states and because many governments already ran their own pension systems. Congress later created a framework—chiefly through Section 218 agreements under the Social Security Act—allowing states to bring public employees into Social Security voluntarily, and later legislation compelled coverage for some groups. The result is a patchwork that persists today.
So the accurate short answer is: many state and local employees pay into Social Security, many do not, and a single government can have both covered and uncovered employees working side by side.
How Coverage Usually Arises
There are three common pathways to Social Security coverage for public employees, and knowing which applies explains most of the variation.
Section 218 voluntary agreements
A state can enter a written agreement with the Social Security Administration to extend coverage to employees of the state and its political subdivisions. These agreements are negotiated, can be modified, and often cover broad categories of workers while excluding others. A state might cover clerical and administrative staff but exclude police officers or firefighters who belong to a separate pension system.
Mandatory coverage for certain positions
Federal law requires Social Security coverage for public employees in specified situations even where a Section 218 agreement would otherwise leave them out. Two examples matter most in practice:
Absent mandatory state or local pension coverage. If a public employer does not provide its employees a qualifying retirement plan, those employees are generally covered by Social Security on a mandatory basis. Medicare-only coverage. Some public employees are covered for Medicare but not Social Security retirement benefits, or vice versa. It is possible to pay the 1.45% Medicare tax without paying the 6.2% Social Security tax.
Repeal of the "opt-out" for new hires
Historically, some state and local governments were permitted to withdraw from Social Security, creating notorious gaps. The 1983 amendments closed that door for governments that had not already exited: no new opt-outs are allowed, and governments that left generally cannot rejoin without special legislation. A handful of governments that exited before the deadline still operate outside Social Security for at least some employees. This is a historical legacy, not an option available to a government deciding today.
Where Non-Coverage Is Common
The employees most likely to be outside Social Security are those enrolled in a dedicated public pension system that the employer and employee fund instead of FICA. Teachers, police officers, firefighters, and some general municipal employees in states with strong independent pension systems are the typical examples. Certain states—including parts of the public workforce in states such as Ohio, Texas, Colorado, Illinois, and Massachusetts, among others—have large populations of public employees who do not pay Social Security because their pension system substitutes for it. These patterns vary by system and by employee class, so a statement like "Ohio teachers don't pay Social Security" is a generalization that reflects a specific pension arrangement, not a uniform state law.
Conversely, many states and localities have long participated fully in Social Security, and their employees pay the same FICA rates as private workers. Still others have "split" workforces: a city police officer in a non-covered pension system, the city's finance clerk covered under a Section 218 agreement, and a newly hired parks employee covered because the position lacks a qualifying pension plan.
The Consequence: The Windfall Elimination Provision and Government Pension Offset
Non-coverage creates a secondary issue that often surprises public employees: benefit calculation. If a worker earns a pension from non-covered public employment and also qualifies for Social Security through other work (a second job, prior private employment, or a covered spouse), two federal provisions can reduce the Social Security benefit:
The Windfall Elimination Provision (WEP) can reduce a retired or disabled worker's own Social Security benefit when they also receive a pension based on non-covered work. The Government Pension Offset (GPO) can reduce spousal, widow(er), or surviving-divorced-spouse benefits for people receiving a non-covered government pension.
These provisions have been the subject of repeated legislative debate and have changed over time; whether and how they apply depends on the worker's earnings record, the pension amount, and the law in effect at the time of claiming. This is exactly the kind of moving-target rule that cannot be answered from memory for a specific person.
Ambiguity in the Question and What Must Be Checked
"State and local employees" is not a single legal category. The answer differs depending on:
Which government (a state agency, a county, a city, a school district, a special district). Which position (general staff, teacher, police, fire, elected official). Which retirement system the employee is enrolled in and whether it qualifies as a substitute for Social Security. The date, because agreements, opt-out legacies, and federal rules evolve.
The question also has no jurisdiction or employer named, and no particular employee. That means the general principle—coverage is employer- and position-specific—is answerable, but the specific yes/no for any given worker is not.
How an Employee Can Determine Their Own Status
The practical check is straightforward and does not require guessing:
1: Look at a pay stub. If Social Security tax is withheld, the stub will show a line for "Social Security" or "OASDI" (Old-Age, Survivors, and Disability Insurance), typically 6.2% of wages, alongside Medicare at 1.45%. 2: Check the W-2. Box 3 (Social Security wages) and Box 4 (Social Security tax withheld) will be populated if covered. Box 5 and Box 6 cover Medicare separately. 3: Ask the payroll or benefits office which retirement system applies and whether the position is covered under a Section 218 agreement. 4: Review the pension system's member handbook, which typically states whether members pay into Social Security. 5: Check a Social Security earnings statement (available through a my Social Security account) to confirm which years of earnings were reported.
A telltale sign of non-coverage is a pay stub showing Medicare withholding but no Social Security withholding, which reflects Medicare-only coverage for some public employees.
Common Misconceptions Worth Correcting
"Government employees don't pay Social Security." False as a blanket statement. Many do, at the same rates as private workers. "All teachers are exempt." False. Teacher coverage varies by state and district; some teachers pay into Social Security and some do not. "If I don't pay in, I get nothing." Not quite. A non-covered worker can still earn Social Security through other jobs or through a spouse, though WEP and GPO may reduce those benefits. "Once a government opts out, it's out forever." The 1983 amendments ended new opt-outs, and exited governments generally cannot rejoin without special legislation. The remaining non-covered populations are legacy arrangements, not a menu of current choices.
Why the Patchwork Persists
The system reflects a compromise between federal uniformity and state autonomy. Public pension systems are governed by state law and often by contractual or constitutional protections for members, so federal policymakers have been cautious about forcing coverage changes that could disrupt existing pension promises. Section 218 agreements let states tailor coverage, and the mandatory-coverage rules for employees without a qualifying pension plan prevent the most obvious gaps. The result is administratively complex but deliberately so: it preserves state retirement systems while pulling most public workers into Social Security's broad risk-sharing.
Bottom Line
State and local employees pay Social Security only if their particular employer and position are covered—through a Section 218 agreement, mandatory coverage because no qualifying pension applies, or another pathway—and they do not pay it if they are enrolled in a non-covered public pension system. Most public employees are covered, but the exceptions are large, geographically concentrated, and consequential for retirement planning. Anyone needing a definitive answer for a specific job should check the pay stub, W-2, or benefits office rather than rely on a general rule, because for this question the employer-level detail is the answer.