Schema Tax

How to Check W2 Math Box by Box

By Schema TaxPublished Updated

To check W2 math, multiply Box 3 by 6.2% and compare the result with Box 4, then multiply Box 5 by 1.45% and compare it with Box 6. Allow a few cents for rounding, cap the Social Security check at the year's wage base, and expect Box 6 to run higher on wages over $200,000.

Checking W-2 Box 4 against 6.2 percent of Box 3

Checking W-2 Box 4 against 6.2 percent of Box 3 means multiplying the Social Security wages in Box 3 by 0.062 and comparing the product with the Social Security tax withheld in Box 4. On a correct form the two agree to within a few cents. A larger gap usually means one of the two numbers was misread or mistyped.

The IRS General Instructions for Forms W-2 and W-3 (2026) show the relationship in their own example: Box 3 of 13000.00 and Box 4 of 806.00, described as 6.2% of the amount in Box 3. The same instructions say Box 4 shows the employee's share of Social Security tax withheld, including tax on tips, and not the employer's share. That is why the rate is 6.2% and not double.

The steps are short:

  1. Read Box 3, Social Security wages.
  2. Multiply by 0.062.
  3. Round to the cent.
  4. Subtract the result from Box 4.
  5. If the difference is within your tolerance, the check passes.

What rounding to allow

Employers withhold Social Security tax from each paycheck, and each paycheck's tax is rounded to the cent. Twenty-six rounded amounts do not always add up to one rounded annual figure, so a correct W-2 can differ from the annual recompute by a few cents. A tolerance of a few cents absorbs that. A gap of dollars or more is not rounding.

Tips change the base

Box 7 holds Social Security tips. The W-2 instructions say Box 4 includes Social Security tax on tips, so for a tipped employee the check becomes Box 4 compared with 6.2% of Box 3 plus Box 7. Leaving Box 7 out makes a correct form look like it over-withheld.

Several of these checks belong to a bigger routine that covers every form type. The tax form data validation checklist lists the W-2 rules alongside the 1099 and 1040 ones.

What happens to the W-2 Social Security check above the wage base?

Above the wage base, the W-2 Social Security check changes because Box 3 stops growing. Social Security tax applies only up to an annual maximum of wages, so a high earner's Box 3 sits at that cap, and Box 4 stops at 6.2% of it. Box 1 and Box 5 keep going, so Box 3 is lower than both.

For 2026, the IRS General Instructions for Forms W-2 and W-3 (2026) say the total of Boxes 3 and 7 should not be more than $184,500, the 2026 maximum Social Security wage base. They also say Box 4 should not exceed $11,439, which is $184,500 times 6.2%.

That gives two checks for a high earner:

  • Box 3 plus Box 7 is at most $184,500 on a 2026 form.
  • Box 4 is at most $11,439.00 on a 2026 form, and equals 6.2% of Box 3 plus Box 7.

The cap changes every year, so the check must use the cap for the form's own tax year. Use the instructions for that year rather than a number remembered from another season.

More than one employer

The wage base applies per employer on the W-2. Someone with two jobs can receive two W-2s that each show Box 3 near the cap, and each one is correct on its own. The same instructions note that an employee who worked for more than one employer and had more than $11,439 in Social Security tax withheld in total should claim the excess on Form 1040. That is a return question, not a W-2 error, so do not flag it as a math failure.

Checking W-2 Box 6 against 1.45 percent of Box 5

Checking W-2 Box 6 against 1.45 percent of Box 5 means multiplying the Medicare wages in Box 5 by 0.0145 and comparing the product with the Medicare tax withheld in Box 6. For employees with wages up to $200,000 the two should agree within a few cents. Unlike Social Security, Medicare wages have no cap.

The IRS General Instructions for Forms W-2 and W-3 (2026) give the example of Box 5 at 13000.00 and Box 6 at 188.50, described as 1.45% of the amount in Box 5. They say there is no wage base limit for Medicare tax, so Box 5 reports all Medicare wages and tips however large.

The steps mirror the Social Security check:

  1. Read Box 5, Medicare wages and tips.
  2. Multiply by 0.0145.
  3. Round to the cent.
  4. Compare with Box 6.
  5. Allow the same few cents for paycheck rounding.

The instructions also say Box 6 shows only the employee's share of Medicare tax, not the employer's. Box 5 already includes tips, so no separate tips adjustment is needed here.

Why is W-2 Box 6 higher than 1.45 percent?

W-2 Box 6 is higher than 1.45 percent of Box 5 when the employee earned more than $200,000 from one employer in the year. Above that amount the employer must also withhold a 0.9% Additional Medicare Tax, and Box 6 includes it. The simple rate check fails on a correct form unless the extra tax is built in.

The IRS General Instructions for Forms W-2 and W-3 (2026) say that, in addition to withholding Medicare tax at 1.45%, an employer is required to withhold a 0.9% Additional Medicare Tax on wages paid in excess of $200,000 in a calendar year. They say there is no employer share of the Additional Medicare Tax, and that Box 6 reports total employee Medicare tax including any Additional Medicare Tax.

So the full Medicare check is:

  • If Box 5 is $200,000 or less: Box 6 equals 1.45% of Box 5.
  • If Box 5 is more than $200,000: Box 6 equals 1.45% of Box 5 plus 0.9% of the amount over $200,000.

An example with fictional values: Box 5 is $250,000.00. The base Medicare tax is $3,625.00. The amount over $200,000 is $50,000.00, and 0.9% of it is $450.00. Box 6 should be $4,075.00.

The employer withholds on the wages it paid. Whether the employee owes more or less on the return is a separate question that the W-2 does not answer.

Comparing W-2 Boxes 1, 3 and 5 without false alarms

Comparing W-2 Boxes 1, 3 and 5 without false alarms starts from the fact that the three wage boxes measure different things. Box 1 is wages for federal income tax, Box 3 is wages for Social Security tax, and Box 5 is wages for Medicare tax. Pre-tax deductions, benefits and the wage base make them differ on many correct forms.

The W-2 instructions name some of the normal differences:

  • Elective deferrals. The instructions say not to include elective deferrals, such as employee contributions to a section 401(k) or 403(b) plan, in Box 1, while those deferrals are reported in Box 3. So a worker who defers to a 401(k) has Box 3 higher than Box 1, and Box 12 shows code D for the deferral.
  • Adoption benefits. The instructions say employer adoption benefits are not reported in Box 1 but are subject to Social Security and Medicare tax and go in Boxes 3 and 5.
  • The wage base. Above $184,500 in 2026, Box 3 stops while Box 1 and Box 5 continue.
  • Medicare has no cap. The instructions say wages subject to Medicare tax are the same as those subject to Social Security tax, but with no wage base limit. Below the cap, Box 3 and Box 5 often match.

That leaves a few rules that rarely misfire. Box 3 plus Box 7 should not exceed the year's wage base. Box 5 is usually at least as large as Box 3. When Box 1 is lower than Box 3, look for a Box 12 code that explains the gap before flagging anything. The post on Box 1 versus Box 3 versus Box 5 walks through more of the reasons, and the W-2 box codes category covers the Box 12 codes that change Box 1. For what each box means in general, see the W-2 forms category.

W-2 math mistakes that point to a misread digit

W-2 math mistakes that point to a misread digit have a telltale shape: the gap between the extracted value and the recomputed value is one digit times a power of ten, such as $60.00 or $5,000.00. A rounding gap is a few cents. A real withholding error rarely lands on a clean single-digit difference.

The worked example

All values here are fictional. The employee is Riley Example, SSN shown as XXX-XX-1234. The employer EIN is shown in the XX-XXXXXXX pattern. Riley deferred $3,600.00 to a 401(k), shown in Box 12 with code D.

BoxLabelValue on the formRecomputedResult
1Wages, tips, other compensation$62,837.18Box 3 minus $3,600.00 deferral = $62,837.18Consistent
3Social security wages$66,437.18Under the $184,500 capPass
4Social security tax withheld$4,119.11$66,437.18 × 0.062 = $4,119.105, rounds to $4,119.11Pass
5Medicare wages and tips$66,437.18Same as Box 3, no cap reachedPass
6Medicare tax withheld$963.34$66,437.18 × 0.0145 = $963.339, rounds to $963.34Pass
12aCode D$3,600.00Explains Box 1 below Box 3Consistent

The failing case

Now suppose the extraction returned Box 4 as $4,179.11. The recompute still gives $4,119.11. The gap is exactly $60.00.

A $60.00 gap is one digit in the tens place off by six. Comparing the two values digit by digit shows where: $4,119.11 against $4,179.11, with the second 1 replaced by a 7. A 1 read as a 7 is one of the common OCR errors on numbers, and the fix is to look at Box 4 on the image.

Working backward confirms it. If $4,179.11 were right, Box 3 would have to be about $67,405.00, which matches neither Box 3 nor Box 5 on the form. Box 3 and Box 5 agree with each other, so the odd value out is Box 4.

Reading the gap

A few patterns cover most failures:

  • Gap of a few cents. Rounding. Pass.
  • Gap of one digit times a power of ten. A misread or mistyped digit in Box 4, Box 6 or the wage box. Check the image.
  • Box 4 about ten or a hundred times too large or small. A lost or extra decimal point.
  • Box 4 fails but Box 6 passes with the same wages. The error is in Box 4, not in the wages.
  • Both fail by the same ratio. The error is in the wages that both depend on.

Schema Tax runs both rate checks on every W-2 it reads and shows next to each value whether it passed, so a failing Box 4 is visible before export. The demo on the homepage shows those checks on a sample form.

IDs on the same form

The math checks cover amounts. The same review should test the identifiers. The EIN should match the XX-XXXXXXX pattern, which the EIN format validation post shows how to test, and any SSN or other TIN should pass the checks in the tax ID validation guide.

All posts in Accuracy and Security