Build IRS Form 941 E-File (94x MeF XML)
Skill: Convert quarterly payroll figures into a Form 941 MeF XML return
Region: United States Category: Employment Tax Does: Takes a quarter's payroll totals and maps them onto the IRS 94x Modernized e-File (MeF) XML schema for Form 941, Employer's Quarterly Federal Tax Return — the return employers use to report withheld income tax and both halves of Social Security and Medicare tax. System: IRS 94x MeF (Modernized e-File)
The 94x MeF XML schemas are tax-year/quarter-specific and distributed through the IRS e-Services / MeF package (Pub. 4164 + the 94x schema set). Element names below are representative of the line structure on Form 941, not the verbatim XSD element names — always map onto the current TY schema. Transmission requires an IRS EFIN/ETIN and (for self-transmitting) MeF A2A credentials; most filers go through an approved 94x MeF provider.
When e-filing applies
- Form 941 is filed quarterly (periods ending Mar 31, Jun 30, Sep 30, Dec 31); due the last day of the month following the quarter (e.g. Q1 → April 30), rolling to the next business day on a weekend/holiday.
- Small employers approved for the annual Form 944 file that instead; agricultural employers file Form 943; backup/withholding-only filers use Form 945 (same 94x MeF family).
- A valid MeF return is the XML payload plus the 94x PIN / Form 8453-EMP signature mechanism and (if a paid preparer/reporting agent) the appropriate authorization.
Input data required
| Group | Fields |
|---|---|
| Filer | EIN, business name, address, quarter, tax year |
| Wages & withholding | total wages/tips/comp (Line 2), federal income tax withheld (Line 3) |
| Social Security | taxable SS wages (5a) and tips (5b), SS tax = base × 12.4% |
| Medicare | taxable Medicare wages & tips (5c) × 2.9%; Additional Medicare (5d) wages × 0.9% |
| Adjustments | fractions of cents, sick pay, tips & group-term life (Lines 7–9) |
| Credits | qualified small-business payroll R&D credit (Line 11), Form 8974 |
| Deposits | total deposits for the quarter (Line 13) |
| Schedule B | per-day liability for semiweekly depositors (or Line 16 monthly breakdown) |
Line structure (Form 941 → XML)
Line 1 Number of employees
Line 2 Wages, tips, and other compensation
Line 3 Federal income tax withheld
Line 5a Taxable Social Security wages × 0.124 → 5a col 2
Line 5b Taxable Social Security tips × 0.124
Line 5c Taxable Medicare wages & tips × 0.029
Line 5d Wages subject to Additional Medicare × 0.009
Line 5e Total Social Security + Medicare taxes (sum of 5a–5d col 2)
Line 6 Total taxes before adjustments (3 + 5e + 5f)
Line 7–9 Adjustments (fractions of cents, sick pay, tips/GTL)
Line 10 Total taxes after adjustments
Line 11 Nonrefundable credits (Form 8974)
Line 12 Total taxes after credits
Line 13 Total deposits
Line 14 Balance due (12 > 13)
Line 15 Overpayment (13 > 12) → apply to next return / refund
Line 16 Monthly depositor liability OR Schedule B (semiweekly)
Calculation rules
- Social Security applies up to the annual wage base (per employee, calendar year — verify the current-year base). Combined employee+employer rate is 12.4%.
- Medicare is 2.9% combined on all Medicare wages; Additional Medicare 0.9% applies to employee wages over $200,000 (employee-only — no employer match).
- Line 12 must reconcile to your deposits: Total tax after credits (12) vs. total deposits (13) yields balance due or overpayment.
- Schedule B (liability) total must equal Line 12 for semiweekly depositors; monthly depositors fill Line 16 month-1/2/3 totalling Line 12.
- Money is dollars-and-cents; the schema carries decimal amounts (no
$/commas).
Worked example (Q1, one employer)
Total wages $300,000; federal income tax withheld $45,000; all wages under the SS base and under $200k/employee:
Line 2 300000.00
Line 3 45000.00
Line 5a 300000.00 × 0.124 = 37200.00
Line 5c 300000.00 × 0.029 = 8700.00
Line 5e 45900.00
Line 6 90900.00 (= 45000 + 45900)
Line 10 90900.00
Line 12 90900.00
Line 13 90900.00 (deposited timely)
Line 15 0.00 (balanced)
Line 16 Monthly: M1 30300 + M2 30300 + M3 30300 = 90900.00
The figures are then emitted as the Form 941 element set inside the 94x MeF return (ReturnHeader with filer EIN/quarter + ReturnData with the IRS941 schema), wrapped for MeF transmission.
Validation checklist
- Correct quarter and tax year set; current-year 94x MeF schema used
- Filer EIN and name match IRS records (name-control)
- SS tax = taxable SS wages × 12.4%; Medicare = wages × 2.9%; Add'l Medicare 0.9% over $200k
- Line 6 = Line 3 + Line 5e (+ 5f); Line 12 = 10 − 11
- Deposits (Line 13) reconcile to balance due / overpayment (14/15)
- Schedule B total = Line 12 (semiweekly) or Line 16 month totals = Line 12 (monthly)
- Signature: 94x Online PIN or Form 8453-EMP attached
- Transmitted via approved 94x MeF channel before the quarter's due date
Last updated: 2026-05-31 — 94x MeF schemas and the Social Security wage base change yearly; confirm element names, the current-year SS wage base, deposit schedule, signature options, and deadlines against current IRS 94x MeF / Pub. 4164 guidance before use.