If you work for the government, you pay taxes on your wages the same way private-sector workers do: federal income tax, Social Security tax, and Medicare tax all come out of your paycheck. Your employer, whether that’s a federal agency, a state, a city, or the military, withholds these amounts and issues a W-2 each January.1U.S. General Services Administration. Explanation of 2025 IRS Form W-2, Wage and Tax Statement A few categories of government workers get narrow exemptions tied to their retirement system or their duty status, but the baseline is the same across the board.
Federal tax law expressly defines “employee” to include officers and employees of the United States, every state, and any local government body.2Office of the Law Revision Counsel. 26 U.S. Code 3401 – Definitions Being on a government payroll doesn’t change your status under the Internal Revenue Code.
The Payroll Taxes Every Government Worker Pays
Social Security tax is 6.2% of gross wages, up to an annual wage cap. In 2026 that cap is $184,500, and once your year-to-date earnings pass it, no more Social Security tax comes out.3Social Security Administration. Contribution and Benefit Base Medicare tax is 1.45% of all wages with no cap.4Social Security Administration. What is FICA? Your employer matches both, so twice what you see on your stub actually flows into the system on your behalf.
Higher earners owe more. Once your wages pass $200,000 in a calendar year, your employer withholds an additional 0.9% Medicare tax on everything above that threshold, with no employer match. Married couples filing jointly owe this surtax on combined wages above $250,000, but the withholding trigger stays at $200,000 per worker regardless of how you file.5Internal Revenue Service. Questions and Answers for the Additional Medicare Tax
Federal income tax withholding works like any other job, driven by what you put on your Form W-4. State income tax, if your state has one, is withheld on top of that.
Federal Civilian Employees
FERS Workers Pay Social Security, Most CSRS Workers Don’t
Nearly all federal civilian employees hired on or after January 1, 1984, fall under the Federal Employees Retirement System. FERS has three parts: a basic annuity, Social Security, and the Thrift Savings Plan.6U.S. Office of Personnel Management. FERS Information Because Social Security is built in, FERS employees pay the full 6.2% Social Security tax and 1.45% Medicare tax.7Social Security Administration. Social Security Benefits for Federal Workers
A smaller and shrinking group of federal workers hired before 1984 stayed under the older Civil Service Retirement System. CSRS employees don’t pay Social Security tax on their federal wages, and those wages don’t generate Social Security credits. They still pay Medicare tax.7Social Security Administration. Social Security Benefits for Federal Workers In place of Social Security, CSRS employees contribute between 7% and 8% of pay toward their pension.8U.S. Office of Personnel Management. CSRS Information
Health Premiums Come Out Pre-Tax
If you’re enrolled in the Federal Employees Health Benefits program, your premiums are deducted before taxes through premium conversion. That lowers your taxable wages for federal income tax, Social Security, Medicare, and usually state and local income tax too.9eCFR. Part 892 Federal Flexible Benefits Plan: Pre-Tax Payment of Health Benefits Premiums It applies automatically unless you opt out, so most federal employees get the break without doing anything.
State and Local Government Employees
State and local workers always owe federal income tax and almost always owe Medicare tax, but Social Security coverage is a patchwork. Roughly a quarter of state and local government workers are outside the Social Security system because their position is covered by a qualifying public retirement system and the employer opted out.10Internal Revenue Service. State and Local Government Employees Social Security and Medicare Coverage Their retirement income comes from the public pension instead of Social Security.
Many state and local positions are brought into Social Security through a Section 218 agreement between the state and the Social Security Administration. These agreements cover positions, not people, so if your job title is covered, you pay the tax.11Social Security Administration. Section 218 Agreements Federal law also made Social Security mandatory starting July 2, 1991, for state and local employees who aren’t in a qualifying public retirement system and aren’t covered by a Section 218 agreement.10Internal Revenue Service. State and Local Government Employees Social Security and Medicare Coverage
Medicare is a tighter net. Coverage became mandatory for state and local employees hired after March 31, 1986. The only workers who can still be exempt are those hired on or before that date, continuously employed by the same government employer since then, and members of a qualifying retirement system.10Internal Revenue Service. State and Local Government Employees Social Security and Medicare Coverage Anyone else working for a state or local government pays the 1.45%.
State income tax is a separate matter. Nine states don’t tax wages at all; the rest have top marginal rates ranging roughly from 2.5% to over 13%. If you live in one state and work for a government agency in another, you may owe tax in the work state and claim a credit at home, or a reciprocity agreement may let you pay only where you live.
Military Members
Basic military pay is subject to federal income tax, Social Security tax, and Medicare tax like any other wages. But a large share of military compensation arrives through allowances that aren’t taxed at all. Basic Allowance for Housing and Basic Allowance for Subsistence are the two biggest, and together they average over 30% of a typical service member’s regular cash pay.12Military Compensation and Financial Readiness. Tax Exempt Allowances These allowances are also exempt from Social Security and Medicare tax, so a service member’s actual tax burden runs lower than the total compensation suggests.
Service in a designated combat zone adds a bigger break. Enlisted members, warrant officers, and commissioned warrant officers can exclude all military pay earned during any month they serve in a combat zone.13Office of the Law Revision Counsel. 26 USC 112 – Certain Combat Zone Compensation of Members of the Armed Forces Commissioned officers face a cap, limited to the highest enlisted basic pay rate plus hostile fire or imminent danger pay for the qualifying month. The exclusion covers basic pay, reenlistment bonuses, leave sold back, and student loan repayments earned during combat zone service, though Social Security and Medicare taxes still apply.14Internal Revenue Service. Tax Exclusion for Combat Service
State income tax follows your state of legal residence, not where you’re stationed. If your legal residence is a no-income-tax state, you keep that treatment through every move. A military spouse can also elect to use the service member’s state of legal residence for state income tax purposes, even if the spouse has never lived there.15Military OneSource. Military Spouses Residency Relief Act
If Your Retirement Was Reduced by WEP or GPO, That Changed in 2025
For decades, two provisions cut Social Security benefits for people who earned a pension from a government job that didn’t pay into Social Security. The Windfall Elimination Provision reduced your own Social Security benefit if you’d also worked covered jobs. The Government Pension Offset reduced spousal or survivor Social Security benefits by two-thirds of your government pension. Teachers, police officers, firefighters, and federal CSRS retirees were hit hardest.
The Social Security Fairness Act, signed on January 5, 2025, repealed both provisions, retroactive to benefits payable after December 2023.16Social Security Administration. Social Security Fairness Act: Windfall Elimination Provision (WEP) and Government Pension Offset (GPO) Update The Social Security Administration is recalculating affected benefits and issuing back payments, with some retirees seeing increases of over $1,000 per month.
A Note on Contractors
Working for a government agency doesn’t automatically make you a government employee. If you’re classified as an independent contractor, the agency doesn’t withhold federal income tax, Social Security, or Medicare from your pay.17Internal Revenue Service. Independent Contractor (Self-Employed) or Employee? You pay self-employment tax instead, which covers both the employee and employer shares of Social Security and Medicare, roughly 15.3% of net earnings rather than the 7.65% an employee pays. You also owe quarterly estimated tax payments.
The giveaway is the form you receive in January. A W-2 means you’re an employee. A 1099-NEC means you’re being treated as a contractor, and the rules in this article don’t apply to you the same way. Classification depends on how much control the agency has over your work, not what your contract calls you, and the IRS has a process for challenging a misclassification.