Photo Sum Calculator

Snap a photo of a math sheet, list or receipt; OCR reads it and the calculator totals it.

  1. Enter valuesUse your own inputs or an example
  2. CalculateApply your selected settings
  3. View resultExplore the answer and explanation

Choose a photo or type the numbers

Enter your values below to get started.

Examples:
One sum or number per line. Operators: + − × ÷ ^ ( ) and %.
How to read the text
Reset restores the default values.

Tips for this calculator

Shoot straight from above in even light; shadows are the main cause of OCR errors.

Crop the photo to the numbers you need before you upload it.

Use Last number on each line for receipts, where the price is at the right.

A line marked ✗ has a written answer that differs from the computed value.

A photo sum calculator reads the numbers in a photo with optical character recognition (OCR) and solves or totals them. Choose a photo of a printed worksheet, a column of numbers or a receipt; the tesseract.js engine reads it inside your browser, you correct the recognized text, and the calculator solves each line, checks written answers or adds every number.

What is a Photo Sum?

A photo sum is the total, or the set of answers, computed from numbers that appear in a photograph. The photo can show a printed math worksheet, a handwritten column of figures, a price list or a shop receipt.

The photo sum calculator turns the picture into text with optical character recognition (OCR), then does the arithmetic. For a worksheet with the 5 lines 12 + 35 = 47, 86 − 29, 7 × 8 = 54, 144 ÷ 12 and 3.5 + 2.25 + 4, the calculator finds the answers 47, 57, 56, 12 and 9.75, flags 7 × 8 = 54 as wrong, and totals the answers to 181.75.

InteractiveScan a worksheet line by line

How Does the Photo Sum Calculator Work?

The photo sum calculator works in 5 steps: it prepares the photo, runs OCR, shows the text for correction, parses each line and adds the results. The OCR engine is tesseract.js, a WebAssembly port of the open-source Tesseract engine that Hewlett-Packard started in 1985 and Google developed from 2006 to 2018.

InteractivePreprocessing: turn an unevenly lit photo into black and white
  1. Prepare

    The photo is scaled to at most 1,600 px, turned to grayscale and contrast-stretched on a canvas.

  2. Recognize

    tesseract.js finds text lines and characters with its LSTM neural network and returns plain text with a confidence score.

  3. Correct

    The text appears in the box, where you fix any wrong digit before calculating.

  4. Parse and add

    Each line is solved as arithmetic, or its numbers are extracted, and the line values are added.

Photo Sum Formula

The photo sum formula is T = v1 + v2 + … + vk, where vi is the value read from line i. In Solve mode, vi is the result of the arithmetic on line i, computed with the standard order of operations.

T=∑i=1kvi,line i is correct  ⟺  vi=wiT = \sum_{i=1}^{k} v_i, \qquad \text{line } i \text{ is correct} \iff v_i = w_i

Order of Operations

Each line follows the order brackets, powers, multiplication and division, then addition and subtraction (BODMAS or PEMDAS). 100 − 7 × 7 = 100 − 49 = 51, not 93 × 7.

Answer Check

When a line contains a written answer wi after the = sign, the calculator compares it with vi. The line 7 × 8 = 54 has v = 56 and w = 54, so it is marked wrong.

InteractiveEvaluate one line in the right order

Types of Photo Sum Reading Modes

There are 3 photo sum reading modes: solve each line, add every number, and add the last number on each line. The same receipt gives 3 different totals: 35.99 with every number, 19.49 with the last number per line, and no result in Solve mode, since a receipt line is not an equation.

InteractiveOne receipt, 3 reading modes

Solve Each Line

Treats each line as an arithmetic problem such as 86 − 29 = and checks any written answer. Best for worksheets and homework.

Add Every Number

Extracts every number on the page and adds them. Best for a column of figures, a tally or a list of scores.

Last Number on Each Line

Takes only the right-most number of each line. Best for receipts and invoices, where quantities sit left of the price.

How to Calculate a Photo Sum by Hand

To calculate a photo sum by hand, copy each line from the photo, solve it with the order of operations, and add the line results. Here is the worksheet from the photo:

  1. 12 + 35 = 47 (written answer correct).
  2. 86 − 29 = 57.
  3. 7 × 8 = 56 (written 54 is wrong).
  4. 144 ÷ 12 = 12.
  5. 3.5 + 2.25 + 4 = 9.75.
  6. Total: 47 + 57 + 56 + 12 + 9.75 = 181.75.
InteractiveStep through 3 photo sums

    Photo Sum OCR Accuracy and Misreads

    OCR reads clean printed digits with over 99% character accuracy, but 4 letter–digit confusions cause most photo sum errors: O and 0, l and 1, S and 5, and B and 8. The calculator's fix option replaces those letters only when they touch a digit, so 1O5 becomes 105 while the word BOX stays a word.

    Handwriting is harder: Tesseract is trained mainly on printed fonts, so handwritten digits often need correction in the text box. Accuracy rises with 3 changes: even light, a straight-on angle and a resolution of at least 300 dots per inch (dpi) on the digits.

    InteractiveFix letter–digit misreads and see the total change

    Decimal Separators in a Photo Sum

    A photo sum depends on the decimal separator: 1.234,50 means one thousand two hundred thirty-four and a half in Germany, France or Brazil, while 1,234.50 means the same in the US, UK or India. Pick the separator that matches the document, or the total can be off by a factor of 1,000.

    The International Bureau of Weights and Measures (BIPM) allows both the point and the comma as the decimal marker and recommends a thin space, not a point or comma, to group thousands.

    InteractiveRead the same digits with a point or a comma

    Common Mistakes with Photo Sums

    The 5 most common mistakes with photo sums are trusting OCR without checking, using the wrong reading mode, ignoring the decimal separator, ignoring operator order and adding quantities from receipts.

    • Not checking the text: a single misread digit changes the total; compare the table with the photo.
    • Wrong mode: Solve mode skips receipt lines; Add every number adds quantities and tax rates too.
    • Wrong decimal separator: 2.000,25 read with a decimal point becomes 2 and 25.
    • Left-to-right arithmetic: 6 + 4 × 3 is 18, not 30.
    • Blurry or tilted photos: OCR confidence falls fast below about 20 pixels of digit height.
    InteractiveTrue or false: photo sums
    1. OCR never confuses the letter O with the digit 0.

    2. 100 − 7 × 7 equals 51.

    3. For a receipt, 'Last number on each line' adds only the prices.

    4. 1.234,50 with a decimal comma equals 1,234.5.

    5. The photo must be sent to a server for OCR.

    Score: 0 / 5

    How to Use the Photo Sum Calculator

    Press Choose a photo, wait for OCR to fill the text box, correct the text, pick a reading mode and press Solve and total. The result shows the total, the lines read and either the correct and wrong answers or the count, mean and range of the numbers.

    InteractiveLoad sample OCR text

    Each button fills the calculator with text as OCR would return it.

    1. Choose a photo

      Take a new picture or pick one from the gallery; the OCR engine downloads on first use.

    2. Correct the text

      Fix any digit that does not match the photo; keep one sum or number per line.

    3. Pick a mode

      Solve each line, Add every number, or Last number on each line.

    4. Read the table

      The Lines tab shows each line, its value and its status (✓, ✗, solved or skipped).

    Real-Life Uses of a Photo Sum

    A photo sum has 5 everyday uses: checking homework, totaling receipts, splitting bills, adding printed price lists and digitizing paper tallies.

    • Homework checks: parents and teachers photograph a worksheet and see which answers are wrong.
    • Expense receipts: the last-number mode totals a receipt for an expense report.
    • Bill splitting: photograph the restaurant bill, add a tip and divide by the number of people.
    • Inventory and price lists: add a printed column of quantities or prices without retyping it.
    • Score sheets: total the points on a paper scorecard for darts, bowling or a quiz night.
    InteractiveTotal a receipt photo, add a tip and split it

    Photo Sum Examples

    Typical OCR text from photos, the reading mode and the result.

    Photo Sum Examples
    Photo showsModeTotalNoteCalculator
    Worksheet: 12 + 35 = 47 … 3.5 + 2.25 + 4 =Solve each line181.757 × 8 = 54 marked wrong
    (3 + 4) × 5 = 35, 2^10, 15% × 80, 100 − 7 × 7 = 51Solve each line1,122Both written answers correct
    Café receipt, 4 linesLast number19.49Prices only
    Café receipt, 4 linesEvery number35.99Adds quantities and 8% too
    Scores 45, 78, 12, 90, 33Every number258Mean 51.6
    1O5 + 2l + 3S + B4Every number24515 without misread fixes
    1.234,50 · 2.000,25 · 15,75Every number, comma3,250.5European format
    25, −10, 7.5, 1,250Every number1,272.5−10 read as negative

    Popular Photo Sum Problems

    Work each one out, then reveal the answer or check it in the calculator.

    1. A worksheet photo shows 7 × 8 = 54. Is the written answer right?

      Show answerNo: 7 × 8 = 56
    2. A photo of scores reads 45, 78, 12, 90 and 33. What is the total?

      Show answer258
    3. A receipt photo ends its 4 lines with 7.00, 4.25, 6.80 and 1.44. What is the total?

      Show answer19.49
    4. Solve the photographed line 100 − 7 × 7 =.

      Show answer51
    5. A German invoice photo shows 1.234,50, 2.000,25 and 15,75. What is the total?

      Show answer3,250.50
    6. Solve the photographed line 15% × 80 =.

      Show answer12

    Explore More Sum Calculators

    Discover 67 free sum calculators across different categories. Find the right calculator for your needs.

    Browse All 67 Calculators
    Questions and answers

    Frequently Asked Questions

    What is a photo sum calculator?

    A photo sum calculator is an online tool that reads numbers from a photo with OCR and then solves each line or adds the numbers. It shows the recognized text so you can correct it first.

    Is my photo uploaded to a server?

    No, the photo stays on your device. tesseract.js runs OCR inside the browser; only the OCR engine and its English language file are downloaded the first time.

    Can the photo sum calculator read handwriting?

    Yes, partly. Neat handwritten digits are often read, but Tesseract is trained on printed text, so check and correct handwritten digits in the text box.

    How do I get the best OCR result?

    Shoot straight from above in even light, fill the frame with the numbers, and keep the digits sharp and at least 20 pixels tall.

    Does the calculator follow the order of operations?

    Yes, each line follows brackets, powers, multiplication and division, then addition and subtraction. 6 + 4 × 3 = 18.

    How do I total a receipt from a photo?

    Choose Last number on each line, so only the price at the right of each line is added, and check that the tax and total lines are handled the way you want.

    Why is my total wrong after OCR?

    The most likely cause is a misread digit (O for 0, l for 1, S for 5, B for 8) or the wrong decimal separator. Open the Lines tab and compare each line with the photo.

    Which symbols can the photo sum calculator solve?

    The photo sum calculator solves + − × ÷ (or x, *, /), powers with ^, brackets and percentages such as 15%.

    Does the photo sum calculator work offline?

    No, the first OCR run needs an internet connection to download tesseract.js. Typed text works without OCR, and the browser caches the engine for later use.

    Conclusion

    A photo sum turns the numbers in a picture into answers and a total, and the photo sum calculator does it with in-browser OCR, an editable text step and 3 reading modes. Use Solve mode for worksheets, Last number for receipts and Add every number for lists, and check the recognized text against the photo before you trust the total.

    Not sure which mode to pick? Answer the questions below.

    InteractiveWhich photo sum mode should you use?