To validate tax form data after extraction, run a fixed set of checks on every form before you rely on it: recompute any totals and tax rates, compare related boxes, confirm the tax year and form type of each page, and test every TIN against its pattern. A failed check points to the field a person should look at.
Why should tax form data be validated after extraction?
Tax form data should be validated after extraction because reading a box and getting it right are two different things. OCR and extraction models return plausible numbers even when a digit is wrong, a decimal is lost or a value landed in the wrong box. Validation uses the form's own rules to catch those errors before they spread.
Extraction alone cannot guarantee three things. It cannot guarantee that each digit is right, since a misread 8 and a true 3 look the same in the output. It cannot guarantee that each value sits under the right label, since dense layouts invite shifts. And it cannot guarantee that the page belongs in the batch at all, since a prior-year form or a different form type can slip in.
Validation is not the same as review. A check is a rule a computer can apply to every field in seconds. Review is a person comparing a value with the image. Good validation shrinks review to the fields that failed a rule or that the tool was unsure of.
Validation also works the same whether the data came from software, a typist or a client's own spreadsheet. Retyped numbers have their own errors, and the same checks catch many of them.
The post on common OCR errors on numbers lists the specific mistakes these checks are designed to catch.
Recomputing totals on tax forms
Recomputing totals on tax forms means rebuilding every sum, subtotal or rate-based amount from the values it depends on, then comparing the result with the extracted figure. A mismatch shows that at least one of the numbers was read wrong. Totals and rates appear on W-2s, 1040s and brokerage statements, so those forms get the most out of this check.
W-2 tax amounts
A W-2 has no total line, but two of its boxes are computed from others. The IRS General Instructions for Forms W-2 and W-3 (2026) give Box 4 as 6.2% of Box 3 and Box 6 as 1.45% of Box 5 in their examples, and note that Box 6 includes any Additional Medicare Tax withheld. Recomputing both catches most misread digits in those four boxes. The wage base cap and rounding make this check more involved than it looks; checking W-2 Box 4 against 6.2 percent of Box 3 walks through it.
Form 1040 income lines
A 1040 is full of sums. On the IRS Form 1040 (2025), line 1z adds lines 1a through 1h, line 9 adds lines 1z, 2b, 3b, 4b, 5b, 6b, 7a and 8 to give total income, and line 11a subtracts line 10 from line 9 to give adjusted gross income. Rebuilding each of those from the extracted lines tests every input at once. Line 1a, the total from W-2 Box 1, also links the return to the W-2s behind it: if you have all of the filer's W-2s, their Box 1 amounts should add up to it.
Brokerage statements
A consolidated 1099-B lists many sales and usually prints summary totals by category. Add the extracted proceeds and cost basis for each category and compare them with the printed summary. A gap tells you a row was dropped, duplicated or shifted, and the size of the gap often points to the row.
Forms with nothing to add up
A 1098 mortgage interest statement or a single-payment 1099-NEC has no total to rebuild. Those forms rely on the other checks in this post, and on review of any low-confidence value.
Cross-box rules on 1099 forms, including state income versus Box 1
Cross-box rules on 1099 forms compare two boxes that must stand in a known relationship, such as 1099-NEC state income versus Box 1a, or 1099-INT Box 1 versus Box 3. When the relationship breaks, one of the two values is likely wrong. These rules catch shifted values and swapped digits that no total would expose.
1099-NEC state amount versus Box 1a
The IRS Instructions for Forms 1099-MISC and 1099-NEC (12/2026) describe Box 1a as nonemployee compensation and say that in Box 7 the payer may enter the amount of the state payment. The state boxes are optional and allow two states on one form. Because the state figure describes the same payments, a Box 7 amount larger than Box 1a is worth a look; with two state lines, compare their sum with Box 1a. The IRS does not state this as a rule, so treat a failure as a prompt to check the image, not as proof of an error.
1099-INT Box 1 versus Box 3
The IRS Instructions for Forms 1099-INT and 1099-OID tell payers to enter in Box 1 the taxable interest not included in Box 3, the box for U.S. savings bond and Treasury interest. So the Box 3 amount should not also be counted in Box 1. An extraction that adds the two together, or copies Box 3 into Box 1, fails this rule.
1099-B proceeds and losses
The IRS Instructions for Form 1099-B (2026) say a loss in Box 1d is shown as a negative amount in parentheses. A useful rule is that any row the statement marks as a loss should come out negative in the data. A sign that flipped during extraction shows up here.
Year-dependent rules
Some rules change with the tax year. The same 1099-NEC instructions say the Box 1a reporting threshold rose to $2,000 for tax years beginning after 2025. A rule that warns about Box 1a amounts below the threshold has to know which year's form it is reading.
For what each 1099 box means in plain terms, browse the 1099 forms category.
Checking tax year and form type on every extracted page
Checking tax year and form type means confirming, page by page, that each extracted form is the form you think it is and covers the year you are working on. A prior-year W-2, a corrected 1099 or a 1099-MISC mistaken for a 1099-NEC can pass every arithmetic check and still be the wrong data.
Wrong pages slip into batches in a few common ways. Clients send everything they have, including last year's forms. A brokerage PDF bundles several form types into one file. A corrected form arrives alongside the original, and both get processed. A form type with similar layout, such as a 1099-MISC next to a 1099-NEC, gets filed under the wrong one.
Three checks cover most of it:
- Printed year. Compare the year printed on the form with the year of the batch. Flag any mismatch.
- Form type against expected fields. A 1099-NEC has a Box 1a for nonemployee compensation; a 1099-MISC uses Box 1 for rents. If the fields that came back do not fit the form type, the classification is suspect.
- Duplicates and corrections. Look for two forms with the same payer TIN, recipient and form type. If one is marked corrected, keep the corrected one and set the other aside for a person to confirm.
Schema Tax classifies each page by form type and tax year before it reads any box, even when one PDF mixes several forms, as described in the step-by-step overview. A year mismatch is still worth checking yourself, because the right year depends on your task.
Where do ID format checks fit in tax form validation?
ID format checks fit in tax form validation as one step that tests every taxpayer identification number (TIN) on every form against its expected pattern. An EIN should match XX-XXXXXXX and an SSN should match XXX-XX-XXXX. A wrong length or a misplaced hyphen catches dropped digits and spreadsheet damage quickly.
The IRS General Instructions for Forms W-2 and W-3 (2026) give both patterns: employers use an EIN in the XX-XXXXXXX format and employees use an SSN in the XXX-XX-XXXX format. A masked SSN such as XXX-XX-1234 on a recipient copy is normal and should pass as masked, not fail as incomplete.
Run the format test on every TIN field, store IDs as text so leading zeros survive, and treat a failure as a reason to look at the image. Deciding which type of TIN a number is, and the finer pattern rules for each type, belong in their own posts. See which TIN type a tax ID is for that, and the full tax ID validation guide for range checks.
A tax form data validation checklist
A tax form data validation checklist is a fixed list of checks, in order, that you run on every extracted form before using its data. Running the same list every time makes failures comparable across forms and clients. The checklist below groups rules by form, each with an example failure using fictional values.
Every form
| Check | Rule | Example failure |
|---|---|---|
| Tax year | Printed year equals the batch year | A 2025 W-2 in a 2026 batch |
| Form type | Returned fields fit the form type | 1099-MISC rents read as 1099-NEC Box 1a |
| Duplicates | One form per payer, recipient and type, unless corrected | Original and corrected 1099-INT both kept |
| TIN format | EIN is XX-XXXXXXX, SSN is XXX-XX-XXXX | EIN 4NNNNNNN, eight digits after a leading zero was lost |
| Amount format | Two decimal places, no stray characters | $12,4OO.00 with letter O |
W-2
| Check | Rule | Example failure |
|---|---|---|
| Social Security tax | Box 4 equals 6.2% of Box 3, within a cent | Box 3 $51,800.00, Box 4 $3,271.60 |
| Medicare tax | Box 6 is at least 1.45% of Box 5 | Box 5 $51,800.00, Box 6 $151.10 |
| Wage box scale | Boxes 1, 3 and 5 in the same range | Box 3 $5,180,000.00 next to Box 1 $49,000.00 |
1099-NEC, 1099-INT and 1099-B
| Check | Rule | Example failure |
|---|---|---|
| NEC state amount | Box 7, or the sum of both state lines, not above Box 1a | Box 1a $8,000.00, Box 7 $18,000.00 |
| INT savings bond interest | Box 1 excludes Box 3 | Box 1 $405.00 equals Box 1 $310.00 plus Box 3 $95.00 |
| B summary totals | Sum of rows equals printed summary | Rows total $61,200.00, summary $66,400.00 |
| B loss signs | Loss rows are negative | ($2,140.00) extracted as 2140.00 |
Form 1040
| Check | Rule | Example failure |
|---|---|---|
| Total income | Line 9 equals the sum of its input lines | Line 9 $87,450.00, inputs add to $82,450.00 |
| AGI | Line 11a equals line 9 minus line 10 | Line 10 $1,200.00, line 11a off by $900.00 |
| W-2 link | Line 1a equals the sum of W-2 Box 1 amounts | Two W-2s total $64,000.00, line 1a $61,000.00 |
Work top to bottom. A form that fails the year or type check does not need its arithmetic checked until the right form is in hand.
When a validation rule passes but the tax form data is still wrong
A validation rule can pass while the tax form data is still wrong, because rules test relationships, not truth. A wrong amount that is consistent with its neighbors, or a value in a box no rule touches, sails through every check. Knowing those blind spots tells you where review still matters.
Consistent errors are the main blind spot. If a W-2's Box 3 and Box 4 are both misread in a way that keeps the 6.2% ratio, the rate check passes. This is rare for digit swaps, but it happens when a whole row shifts and the shifted values happen to relate the same way.
Standalone values are the second. A 1098 mortgage interest amount, a 1099-NEC Box 1a on a form with no state lines, and a W-2 state wage figure have no partner box to check against. A plausible misread there passes every rule. Those fields are where a tool's own uncertainty flag earns its keep.
Source errors are the third. If the payer typed the wrong number on the form, extraction can be perfect and the data still wrong. Validation checks the form against itself, not against the payer's books. Comparing a 1099 with your own invoice records is the only way to catch that.
Rules can also be wrong for an edge case. The W-2 instructions say 401(k) elective deferrals stay out of Box 1 but are reported in Box 3, and that adoption benefits go in Boxes 3 and 5 but not Box 1. A naive "Box 3 equals Box 1" rule would flag both cases even though the form is correct. Treat every failure as a question for a person, and keep the list of rules you have learned to relax. The W-2 math walkthrough covers the normal differences between the three W-2 wage boxes.