Schema Tax

Common OCR Errors on Numbers and How to Catch Them

By Schema TaxPublished Updated

The common OCR errors on numbers fall into a short list: look-alike digits such as 8 and 3, lost or extra decimal points, values shifted into the next box or row, minus signs and parentheses that vanish, and leading zeros that disappear from IDs. Each one leaves a plausible number behind, so each needs a specific check to catch it.

Which digits does OCR confuse most often?

OCR confuses digits whose shapes differ by one small stroke. The usual pairs are 8 and 3, 1 and 7, 0 and 6, and 5 and the letter S. Thin fonts, faded toner, dot-matrix print and low-resolution scans remove the stroke that separates each pair, so the reader picks the wrong one.

Each pair has its own cause:

  • 8 and 3. An 8 is a 3 with the left side closed. Faint printing or a light scan can open the left loops, and the 8 reads as a 3.
  • 1 and 7. Many fonts draw a 1 with a short angled flag at the top. If the flag prints long, or the base is missing, it resembles a 7.
  • 0 and 6. A 6 is a 0 with a tail that runs into the top. Smudged ink can join the tail to the loop, or break the loop so a 6 looks like an open 0.
  • 5 and S. This confusion matters most in fields that mix letters and digits, such as account numbers and W-2 Box 12 codes. In an amount field, a letter S should never appear, so an S there is a sign of a misread 5.

Fonts make a large difference. Payroll systems and brokers print substitute forms in many typefaces, some of them condensed to fit long numbers into small boxes. Condensed digits sit closer together and lose the white space the model uses to separate them.

Print quality matters as much as font. A form printed on an old laser printer with low toner, then photocopied, then photographed, has lost detail three times. A reader can do nothing about detail that is no longer in the image.

A digit swap is the hardest error to see by eye because the result looks normal. An example 1099-INT showing $1,837.40 of interest read as $1,337.40 has the right number of digits, the right decimal and no strange characters. Only a comparison against another number exposes it.

Decimal point and comma OCR errors in dollar amounts

Decimal point and comma errors in dollar amounts change a value by a factor of ten or more. A reader that drops the decimal in $1,234.56 returns 123456, which a spreadsheet then treats as $123,456. A comma read as a decimal, or a speck read as a point, can shrink an amount just as fast.

The decimal is the smallest mark in an amount and the easiest to lose. A dot can fall into a fold, disappear under a little blur, or merge with the base of the digit next to it. Commas are slightly larger, but they sit low on the line and can look like a decimal point when the image is soft.

Three versions of this error show up in practice:

  1. Dropped decimal. The example $1,234.56 becomes $123,456. The value is now one hundred times too large.
  2. Comma read as a decimal. The example $1,234.56 becomes $1.23 if the reader stops after what it takes to be the cents. The value is now one thousand times too small.
  3. Extra decimal from a speck. A dust mark between digits turns an example $4,500.00 into something like $45.0000, which some parsers then round to $45.00.

IRS forms help a little here. The IRS General Instructions for Forms W-2 and W-3 (2026) tell employers to show the cents portion of money amounts, so a W-2 amount with no cents at all is unusual on its face. That makes "every amount has exactly two digits after the point" a cheap first check.

Scale checks catch the rest. A dropped decimal produces a value far outside the range of the boxes around it. If W-2 Box 1 shows $48,250.75 and Box 3 shows $4,825,075.00, the second number is almost certainly a lost decimal, not a raise.

Column and box shift errors on tabular tax forms

Column and box shift errors happen when OCR reads a value correctly but assigns it to the wrong box or row. Dense tabular layouts cause most of them: 1099-B transaction lists, consolidated brokerage statements and state lines at the bottom of a W-2. The digits are right; the label is wrong.

A shift can go sideways or up and down. A sideways shift moves a value into the neighboring column, so cost basis lands in the proceeds column. A vertical shift moves a value into the row above or below, so one sale's proceeds attach to another sale's dates.

The IRS Instructions for Form 1099-B (2026) name the columns that substitute statements lay out in rows: Box 1b date acquired, Box 1c date sold or disposed, Box 1d proceeds, Box 1e cost or other basis, and Box 1g wash sale loss disallowed. With dozens of rows of similar dollar amounts, a single row out of step pushes every value after it into the wrong place.

Shifts also happen inside single forms. A W-2 can carry more than one state line at the bottom. If the reader treats one state's wages as another state's tax, both lines become wrong while every digit is correct.

The tell for a shift is a value that makes no sense where it landed. A date in an amount column, proceeds smaller than a wash sale adjustment on every row, or state tax larger than state wages all point to a shifted read rather than a misread digit.

Why do negative numbers and parentheses trip up OCR?

Negative numbers trip up OCR because the sign is a thin mark at the edge of the value. Tax forms show losses with a minus or with parentheses, and either mark can be cropped by a box border, lost to blur or dropped by a parser. The amount then reads as a gain.

The IRS Instructions for Form 1099-B (2026) tell brokers to show a loss in Box 1d, such as one from a closing transaction on a written option, as a negative amount by enclosing it in parentheses. The same instructions label Boxes 8 through 10, which cover regulated futures, foreign currency and section 1256 option contracts, as profit or (loss). A missing parenthesis on an example ($2,140.00) turns a $2,140 loss into a $2,140 gain, a swing of $4,280.

Parentheses fail in two ways. The reader may not see them, especially the closing one when it sits against a box border. Or the reader sees them, but a later step that converts text to a number strips anything that is not a digit, a point or a minus sign.

Wash sale adjustments add confusion. The same instructions describe Box 1g as the wash sale loss amount disallowed, an amount that adds to the basis of the replacement shares. A tool that assumes every figure tied to a loss must be negative can flip a correct Box 1g value the other way.

A good extraction keeps the sign as part of the value, not as formatting. When you inspect output, look at a row you know is a loss and confirm the number is negative in the export as well as in the original document.

Leading zeros and dropped digits in OCR'd IDs

Leading zeros and dropped digits damage ID fields such as ZIP codes, employer identification numbers and account numbers. OCR sometimes skips a digit in a long string, and spreadsheets strip leading zeros from anything that looks numeric. Either way, a nine-digit ID becomes eight digits and no longer matches anything.

Leading zeros are real in tax IDs. The IRS page on how EINs are assigned and valid EIN prefixes lists 01 through 06 among valid prefixes. An example EIN of 04-NNNNNNN (N for any digit) typed into a spreadsheet as a number becomes the eight digits 4NNNNNNN, which have lost both the zero and the hyphen. A ZIP code such as the example 02110 loses its zero the same way.

Dropped digits come from the reader itself. Long numbers printed in a narrow box can have two digits touching, and the model reads them as one. Account numbers and control numbers, which often run past ten characters, are the usual victims.

The fix is partly in the export. ID fields belong in text columns, never numeric ones. The Excel, CSV and JSON category covers how to keep those columns as text when you open an export. The format test itself is simple: an EIN has nine digits in the XX-XXXXXXX pattern, which the same W-2 instructions state, so any result with eight digits is wrong.

Matching each numeric OCR error to the check that catches it

Each numeric OCR error has a check that tends to expose it. Recomputed rates catch swapped digits in tax amounts, scale and format checks catch decimal errors, cross-box comparisons catch shifts, sign checks catch lost parentheses, and length checks catch dropped zeros. No single check catches everything, so validation runs several.

The table below lists eight errors with fictional before-and-after values. Every amount, name and ID is an example.

ErrorTrue value (example)OCR result (example)Check that catches it
8 read as 3W-2 Box 3 $51,800.00$51,300.00Box 4 of $3,211.60 is 6.2% of $51,800.00, not of $51,300.00
1 read as 7W-2 Box 6 $751.10$757.10Box 6 should equal 1.45% of Box 5 ($51,800.00)
Dropped decimalW-2 Box 3 $51,800.00$5,180,000.00Box 3 far above Boxes 1 and 5
Comma read as decimal1099-NEC Box 1a $12,400.00$12.40Below the reporting threshold; far off the invoice total
Column shift1099-B row: proceeds $5,200.00, basis $4,100.00proceeds $4,100.00, basis $5,200.00Gain or loss sign flips against the statement summary
Lost parentheses1099-B Box 1d ($2,140.00)$2,140.00Row total no longer matches the summary total
Dropped leading zeroEIN 04-NNNNNNN4NNNNNNNLength check: an EIN has nine digits
Box 3 added into Box 11099-INT Box 1 $310.00, Box 3 $95.00Box 1 $405.00Box 1 should exclude Box 3 interest

A few rows need a source behind them. The W-2 rate checks come from the W-2 instructions above, which give 6.2% and 1.45% in their box examples. The 1099-NEC threshold row uses the $2,000 figure that the IRS Instructions for Forms 1099-MISC and 1099-NEC give for Box 1a for tax years beginning after 2025. The last row follows the IRS Instructions for Forms 1099-INT and 1099-OID, which say Box 1 holds taxable interest not included in Box 3. A walkthrough of the W-2 rate math, including the wage base cap, is in the post on checking W-2 Box 4 against 6.2 percent of Box 3.

Some errors have no arithmetic check. A misread digit in a 1098 mortgage interest amount, which stands alone on the form, will pass every rule. Those values need a person to compare the extracted number with the image, which is why a good tool flags low-confidence boxes for review rather than returning them silently.

Schema Tax runs several of the checks in this table on each form it reads, including the two W-2 rates, the 1099-INT Box 3 rule and the EIN pattern, and shows the result next to each value. The interactive demo shows a value with the checks it passed.

To put these checks in order and apply them to every form type, use the tax form data validation checklist. To find out how often each error happens with your own forms and your own tool, the post on how to test OCR accuracy walks through a scoring sheet. The broader guide to validating tax form data explains the cross-box rules in more depth.

All posts in Accuracy and Security