New Tool Radar

AI PDF

How to Check OCR Gross and Net Pay on a Scanned Payslip

Check the gross pay, deductions and net pay OCR reads from a scanned payslip against the payslip arithmetic.

Schematic illustration of a payslip check: run OCR, read gross pay and deductions, and subtract to compare with net pay.

A payslip has one built-in check: gross pay minus deductions must equal net pay. OCR errors in any of the three figures break that check, which is exactly why it is worth running. This guide verifies all three figures on one payslip.

Prerequisites

A scanned payslip PDF and an OCR tool. Payslips carry personal data, so work on a private copy and delete the OCR output when done.

Steps

1. Run OCR on the payslip

Run OCR on the payslip and save the searchable copy. Expected result: gross pay, each deduction and net pay become selectable text.

2. Read gross pay and each deduction

Read the gross pay and every deduction line from the OCR text. Expected result: one gross figure and three deduction figures, each with two decimal places.

3. Subtract the deductions from gross pay

Add the deductions, subtract the total from gross pay, and compare with the net pay in the OCR text. Expected result: the result equals the printed net pay.

4. Record any mismatch by line

Record the line and the OCR figure for any amount that does not fit the arithmetic. Expected result: a note that names the wrong line or confirms the payslip passed.

Practice check: fictional Harbor Cafe payslip, 2026-11-04

The table below is fictional practice material. It lists the three deductions on one payslip; the gross pay is 2140.00 and the net pay is 1699.60.

Deduction Amount
Income tax 312.00
Pension 85.60
Health cover 42.80
Total 440.40

Expected result. the three deductions add to 440.40, and 2140.00 minus 440.40 is 1699.60, which is the net pay printed on the payslip.

Limits

  • The arithmetic check cannot catch two errors that cancel out, so read the gross pay figure from the scan image as a second check.
  • UNTESTED – no OCR tool or AI tool was run; all results above are expected results. The practice file is fictional.

Sources

See all