Why Your AI Receipt Tool Misses the Tip and Tax

Published · 11 min read

A restaurant receipt comes through your AI receipt scanner with the meal amount right, but the tip is missing or the tax is in the wrong field. The grand total can still look plausible, which makes the mistake harder to catch than a blank result.

For AI for accounting professionals, receipt extraction means more than reading printed characters. The system also has to decide which amount belongs to which label, whether the receipt is complete, and whether the parts add up. A clearly printed number can still land in the wrong field.

Test extraction against receipts you've already checked, then stop automatic posting when an image or its numbers fail your checks. Give staff the source image and the uncertain fields, not just a suspicious total with no explanation.

Why receipt extraction gets the amount wrong

Receipt OCR is software that turns text in a receipt image into machine-readable text. Receipt data extraction goes a step further: it decides whether an amount is a subtotal, tax, tip, service charge, or final total.

That second step is where tidy-looking results can go wrong. A receipt may have several amounts close together, unfamiliar labels, or a layout that makes it hard to match each label with its value.

A receipt processing system can return standard field types alongside the printed label and detected value. AWS Textract documentation lists TOTAL, SUBTOTAL, TAX, SERVICE_CHARGE, and GRATUITY as distinct categories. The system can represent those distinctions, but it still has to read the right words and pair each label with the right amount.

“Fields that do not align with the standard taxonomy are categorized as OTHER.”

A receipt can contain readable text without using a familiar label. An unusual term may be detected but not assigned to the category you expect, so check the printed label as well as the normalized field returned by the tool (Amazon Textract documentation).

Layout also affects which amount gets matched to which words. A narrow receipt might put labels on the left and amounts on the right; a dense one may place tax, tip, and total close together. If the software reads the lines in the wrong order, it can pair an amount with the neighboring label.

Some systems return a field's location on the page and a confidence score, which measures how sure the system is about the detection. AWS documents both outputs for receipt fields (Textract documentation). A useful review screen shows the original image, extracted label and value, their positions, and the confidence score. A total by itself hides the evidence a clerk needs to spot a mismatch.

Here's the key distinction: text recognition answers "what characters are visible?" Field extraction answers "what does this amount mean?" A receipt tool can read the characters correctly and still get their meaning wrong.

How image quality and receipt layout affect OCR

OCR image quality describes how well an image preserves the shape and placement of printed characters. Faded thermal printing, blur, glare, skew, cropping, and heavy compression can make a decimal point or small digit hard to read. If the characters are unclear, the extracted amount can be wrong even when the field label is recognized.

A sharp receipt can still be hard to read if its layout is crowded or unusual. Deskewing means straightening a tilted image. It can help restore the order of the lines, but it can't recover an amount cut off when the image was taken.

Google's Enterprise Document OCR can return image-quality signals for blurriness, unusually small fonts, and glare, and it offers rotation correction. It also detects blocks, paragraphs, lines, words, and symbols, and can deskew documents (Google Cloud Enterprise Document OCR documentation). Use those signals to catch a poor image before the workflow posts an amount.

The capture itself matters. Google's Cloud Vision guidance recommends 1024x768 for its text detection features because OCR needs enough resolution to detect characters. The guidance also warns that lossy JPEG compression can reduce quality and accuracy (supported image formats and dimensions).

Don't shrink an image just to make uploads smaller if that makes tiny thermal-print digits harder to see. Enlarging it beyond the recommendation doesn't automatically improve accuracy either; excessive size can add processing time and bandwidth without a proportional accuracy gain.

Test two things separately: did the system read the characters, and did it assign them to the right fields? Record an image-quality reason with each test result. If a figure is wrong only in blurred or glare-covered images, look at the capture process. If it's wrong on a clean image with an unusual label, check the field mapping.

When you can, keep the itemized receipt and any separate payment slip together as source images. Some restaurants print the meal and tax on one receipt and the tip on a card slip. The itemized receipt won't show the full tip in that case, even if every character is perfectly clear.

Separate tax and tip lines need separate checks

A grand total tells you what was charged, not how each part should be classified. If your expense workflow needs subtotal, tax, and tip in separate fields, checking only the final total can let a misclassified amount through.

A restaurant receipt might list food, sales tax, and a suggested tip, while the tip actually paid appears on a card slip. Another receipt might show a service charge that looks like a tip but needs a different label in your workflow. The printed words and your accounting treatment are related, but they're not the same decision.

Dext's published restaurant receipt workflow says to capture the itemized receipt and card slip and upload both together when possible. It also says the system extracts total tax but doesn't automatically separate tip amounts from extracted tax (Dext's instructions for splitting meal and tip amounts).

“Dext does not automatically separate tip amounts from extracted tax.”

Check the components, not just the grand total. The total can match the card charge while the tip sits in the wrong field or the tax amount includes something that should be treated separately.

For a basic arithmetic check, compare the extracted components with the receipt's printed final total. If the receipt shows a subtotal, tax, and tip as separate amounts, check that they add up to the printed total. Keep discounts and service charges in separate fields too, rather than forcing them into a simpler formula.

Arithmetic reconciliation is a screening check, not a tax decision. Dext's stated publish check is that line-item totals match the item total and tax reflects only the meal. Follow your accounting policy or have a qualified person review the tax treatment; a matching total doesn't prove the fields are classified correctly.

For travel meals, the IRS says meals include amounts spent for food, beverages, taxes, and related tips in Publication 463 (2025). That doesn't mean every meal expense is deductible. Keep the source record too: the IRS says taxpayers generally need documentary evidence such as receipts, canceled checks, or bills to support expenses (IRS burden-of-proof guidance).

Keep the original image with the extracted data. If a reviewer needs to decide whether an amount is a tip, a service charge, or part of the meal, the printed evidence must still be there.

Build a repeatable receipt test set

A repeatable test set is a fixed group of receipts with manually checked field values. Use it to compare extraction results after a software change, a new capture method, or a change to the posting workflow. It turns "the scanner seems accurate" into a field-by-field check you can run again.

The U.S. NTIA's COCRID OCR experiment used 984 impaired images and 41 control images, photographed under varied capture conditions. Researchers compared recognized text with known truth data to calculate character error rate (NTIA Technical Memorandum 23-569, August 2023). Apply the same test design to receipts: keep the correct values, vary the image conditions, and compare the output with the known answer.

Build a test set that includes:

  • Single-column receipts and dense layouts where amounts sit close together.
  • Printed tips, handwritten tips, and tips printed on a separate card slip.
  • Separate tax lines, service charges, and discounts.
  • Clean images and versions with blur, glare, skew, fading, cropping, or compression.

Where you can, keep the same receipt content in both a clean image and an impaired version. That makes it easier to tell whether an error comes from the layout or the capture. For every test receipt, manually record subtotal, tax, tip, service charge, and final total as separate truth fields. Mark a field missing when the receipt doesn't provide it; don't fill in an expected value just because there's a total.

Score each field against the manually checked value. Track exact-field accuracy and missing-field rate separately for subtotal, tax, tip, service charge, and total, then compare results by image condition. If a system handles clean printed tips but misses handwritten ones, one overall accuracy figure won't tell you that.

NTIA compared OCR output with truth data rather than judging whether the result looked plausible (NTIA report). Use the same standard for your receipt test: an amount that looks reasonable is still wrong if it doesn't match the verified field.

Keep a record for each test run: the original image, manually verified fields, extracted fields, confidence or quality signals, and the reason each result passed or failed. If the tool changes, repeat the same test set instead of swapping in easier receipts. Otherwise, you won't know whether the new workflow improved extraction on the receipts that caused trouble.

A useful test checks more than whether the final total matches. It checks whether the tool put each amount in the right field, found separate amounts where they existed, and avoided inventing fields the image didn't support. That's how you catch a wrong tax or tip category that slips past a grand-total check.

Route uncertain totals to staff, not guesses

A routing rule decides which receipts the system can post automatically and which need a person to review. Combine image quality, field confidence, required fields, and arithmetic checks. One confidence score for the whole receipt isn't enough if the tool is unsure about the tip but confident about the total.

Set the confidence threshold using receipts your team has labeled and checked. Don't copy a cutoff from a vendor example; test how your own receipts perform at that level before using it.

A practical policy is:

  • Auto-post only when the final total and required component fields are present, confidence meets your threshold, and arithmetic reconciliation passes.
  • Send to staff when a required field is missing or below the calibrated threshold, the image is cropped or unreadable, or the component amounts don't match the printed total.
  • Ask for a better image or a missing slip when the source doesn't contain enough information to verify the charge. Keep the current image and explain which field or document is missing.

Show the source image beside the extracted label and amount on the review screen. When possible, include the field location, confidence, and failed check. "Tip uncertain: review card slip" gives a clerk a clear next step; "total failed" leaves them searching the receipt without knowing what the system found.

An unreadable image should stop the process and explain why. Keep the receipt, name the fields the system couldn't read, and ask for a clearer image or human review. Don't infer a missing tax or tip from nearby values and present it as if it were printed.

We made the same kind of decision on a document system for a municipal council. On its first real day, a letter arrived with nothing but a zip attachment the system couldn't read. The AI drafter still wrote a topic and a full reply, leaving the clerk to work out alone that the content had been invented. We chose "no readable text, no draft" over drafting from the subject line and whatever text was available. A confident reply to a letter nobody had read looked finished and could be trusted. The system was fixed and deployed the same morning; it now explains why it stopped and names the files it couldn't read. The municipal council's AI back office case shows the decision and its limit: a rough internal brainstorm that someone rewrites may be different, but a finished-looking output sent as though it were verified isn't harmless.

Apply the same principle to receipt scanning. When the source doesn't support a reliable result, stop automatic posting and say what's missing. A system that explains why it paused gives staff a clear task; a system that silently fills uncertain fields leaves them to discover the mistake later.

Common receipt OCR mistakes to catch early

A receipt test can pass while the live workflow fails if it checks only easy images or only the final total. Keep test receipts representative of the layouts, tips, and capture problems your team actually sees.

Use these checks to catch common gaps:

What to check What can go wrong What the workflow should do
Printed label and extracted category An unfamiliar label is read as text but assigned to the wrong category or to OTHER. Keep the printed label visible to staff and flag a category mismatch.
Receipt and card slip The tip appears on the card slip, not the itemized receipt. Attach both images when available, or ask for the missing slip before classifying the tip.
Image condition Blur, glare, small text, rotation, or cropping hides digits or disrupts reading order. Use image-quality signals where available and route weak captures for review or a new image.
Component arithmetic The subtotal, tax, tip, and other printed amounts don't match the final total. Hold the receipt for staff review instead of posting the total as verified.
Confidence score A score looks high but doesn't reflect how your own receipt types perform. Calibrate the threshold on manually labeled receipts and keep checking exact fields.

A matching grand total doesn't prove every component is right. The numbers can add up even when the tip is in the wrong field or tax is assigned to a charge that should be classified separately. Check both the total and its parts.

Don't treat poor image quality as a reason to let the model fill in the blanks. Google's OCR documentation describes quality signals for blurriness, small fonts, and glare that can help route weak images before field extraction (Enterprise Document OCR documentation). Use those signals to explain why a receipt paused, not to guess what a blurry line says.

A safe receipt workflow doesn't just return a number for every upload. It separates verified values from uncertain ones, keeps the image that supports the result, and sends unclear tax or tip fields to someone who can check them.

Want this done for your business?

An AI agent from $500, a document assistant from $800, fixed price and deadline. Or describe your task and get a plan with a price for each step

Questions people ask

Why does AI receipt scanning miss the tip or sales tax?

The tip or tax may be on a separate line, use an unfamiliar label, or appear on a card slip rather than the itemized receipt. The tool can recognize the amount but fail to assign it to the right field.

How do receipt layout and image quality affect OCR accuracy?

A narrow, dense, rotated, cropped, blurred, or glare-covered receipt can disrupt reading order or obscure small digits and decimal points. Those problems can lead to missing fields or incorrect label-to-amount matches.

How can I test whether an AI receipt tool reads totals correctly?

Build a fixed set of manually verified receipts, preserve separate truth values for subtotal, tax, tip, service charge, and total, and test both clean and impaired images. Compare every extracted field with the verified value.

When should an accounting team send an extracted receipt total to a person for review?

Route it when the image is unreadable or cropped, a required component is missing or below a confidence threshold calibrated on your own labeled receipts, or the component amounts do not reconcile with the printed total.

Can receipt OCR distinguish subtotal, tax, tip, service charge, and final total?

Some systems represent these as distinct field categories, but representation does not guarantee correct extraction. The system still has to read the receipt and associate each printed label with the right amount.

Sources

  1. Analyzing Invoices and Receipts - Amazon Textract
  2. Enterprise Document OCR | Document AI | Google Cloud Documentation
  3. Supported image formats and dimensions | Cloud Vision API | Google Cloud Documentation
  4. How to split meal and tip amounts before publishing
  5. COCRID: A Challenging Optical Character Recognition Image Dataset
  6. Publication 463 (2025), Travel, Gift, and Car Expenses
  7. Burden of proof