How to Extract Totals from a Scanned Receipt
To extract totals from a scanned receipt, scan it flat in bright, even light, then look for the total near the bottom of the receipt — usually labelled total, amount due, or balance. Read the figure at full zoom and check it against the item lines before you record it anywhere.

Receipt totals hide in plain sight, but they are easy to misread: a subtotal is not a total, a card payment line is not the amount owed, and a faded thermal print can turn a 7 into a 1. A careful scan plus a short manual check gives you a total you can trust for expenses, budgets, and tax records.
Scan for readability first
The total is usually the largest number on the receipt, but only a clean scan makes it reliably readable. Lay the receipt flat, use bright, even light with no flash glare, and capture the whole slip including the bottom edge, where the total and payment lines sit. Check the scan at full zoom before filing it: if the total line is blurry or cut off, rescan rather than guessing. For long receipts, scan in overlapping sections so nothing at the fold is lost.
Find the right number
- Look near the bottom of the receipt for labels like total, amount due, balance, or total due — that is the figure you want.
- Ignore the subtotal above it: that is the amount before tax, discounts, or tips, and it is not what you paid.
- Ignore card and change lines below the total: "Visa 42.50" and "Change 7.50" describe how you paid, not what the purchase cost.
- If the receipt shows several totals — for example, a restaurant bill split across guests — take the grand total, and note the split separately if you need it.
- Cross-check: add up the item lines roughly. If your sum is far from the printed total, you are probably reading the wrong line or a faded digit.
Use OCR as a helper, not a verdict
Text recognition (OCR) can pull numbers out of a receipt scan automatically, and it is a handy shortcut for long receipts. Treat its output as a draft: OCR commonly misreads faded digits, confuses similar characters, and grabs the wrong line as the total. Always compare the extracted figure with the total you can see in the scan itself. For anything that goes into accounts or a tax file, the human check is the step that matters — a wrong total copied into a spreadsheet is worse than a slow total entered by hand.
Common mistakes to avoid
- Recording the subtotal. The subtotal excludes tax and tips, so expenses come out understated and tax records do not match.
- Reading the payment line as the total. A card line shows what was charged to that card, which can differ from the bill when part was paid another way.
- Trusting OCR blindly. Faded print and crumpled paper are exactly where OCR stumbles. Verify every figure against the scan.
- Cropping the bottom of the receipt. The total lives at the foot of the slip — a scan that cuts it off is useless for this job.
- Guessing a faded digit. If a digit is unreadable, say so in your records and check the bank statement for the matching amount instead of inventing one.
Frequently asked questions
Where is the total on a receipt?
Almost always near the bottom, labelled total, amount due, or balance, above the payment and change lines. The subtotal sits above it and is not the final figure.
Can I extract totals automatically from a scan?
Yes, with OCR tools, but always verify the result against the scan. Faded or crumpled receipts produce the most errors, and a wrong total in your records is costly.
What if the total is faded or cut off?
Rescan with better light and a flatter receipt first. If the figure is truly gone, match the purchase against your bank or card statement for the same date and shop.
Should I record the total with or without tax?
Record the grand total — the amount actually paid, including tax. Keep the tax line visible in the scan if you need it broken out later.
What about receipts with tips added by hand?
If you wrote a tip on the receipt, scan it after writing, and record the handwritten total. Note that the card statement may show the tipped amount, which is a useful cross-check.
Related guides
- How to Scan Receipts for Expense Reports
- How to Scan Faded Thermal Receipts Before the Ink Disappears
- What Is OCR and How Does It Work?
- How to Scan Receipts for Tax Deductions
Try it right now — free
Open Scanner.cam in your browser, scan, and download. No signup, no watermark, nothing uploads.
Open Scanner.cam