Solve Each Line
Treats each line as an arithmetic problem such as 86 − 29 = and checks any written answer. Best for worksheets and homework.
Snap a photo of a math sheet, list or receipt; OCR reads it and the calculator totals it.
Enter your values below to get started.
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.
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.
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.
The photo is scaled to at most 1,600 px, turned to grayscale and contrast-stretched on a canvas.
tesseract.js finds text lines and characters with its LSTM neural network and returns plain text with a confidence score.
The text appears in the box, where you fix any wrong digit before calculating.
Each line is solved as arithmetic, or its numbers are extracted, and the line values are added.
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.
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.
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.
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.
Treats each line as an arithmetic problem such as 86 − 29 = and checks any written answer. Best for worksheets and homework.
Extracts every number on the page and adds them. Best for a column of figures, a tally or a list of scores.
Takes only the right-most number of each line. Best for receipts and invoices, where quantities sit left of the price.
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:
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.
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.
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.
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.
Take a new picture or pick one from the gallery; the OCR engine downloads on first use.
Fix any digit that does not match the photo; keep one sum or number per line.
Solve each line, Add every number, or Last number on each line.
The Lines tab shows each line, its value and its status (✓, ✗, solved or skipped).
A photo sum has 5 everyday uses: checking homework, totaling receipts, splitting bills, adding printed price lists and digitizing paper tallies.
Typical OCR text from photos, the reading mode and the result.
| Photo shows | Mode | Total | Note | Calculator |
|---|---|---|---|---|
| Worksheet: 12 + 35 = 47 … 3.5 + 2.25 + 4 = | Solve each line | 181.75 | 7 × 8 = 54 marked wrong | |
| (3 + 4) × 5 = 35, 2^10, 15% × 80, 100 − 7 × 7 = 51 | Solve each line | 1,122 | Both written answers correct | |
| Café receipt, 4 lines | Last number | 19.49 | Prices only | |
| Café receipt, 4 lines | Every number | 35.99 | Adds quantities and 8% too | |
| Scores 45, 78, 12, 90, 33 | Every number | 258 | Mean 51.6 | |
| 1O5 + 2l + 3S + B4 | Every number | 245 | 15 without misread fixes | |
| 1.234,50 · 2.000,25 · 15,75 | Every number, comma | 3,250.5 | European format | |
| 25, −10, 7.5, 1,250 | Every number | 1,272.5 | −10 read as negative |
Work each one out, then reveal the answer or check it in the calculator.
A worksheet photo shows 7 × 8 = 54. Is the written answer right?
A photo of scores reads 45, 78, 12, 90 and 33. What is the total?
A receipt photo ends its 4 lines with 7.00, 4.25, 6.80 and 1.44. What is the total?
Solve the photographed line 100 − 7 × 7 =.
A German invoice photo shows 1.234,50, 2.000,25 and 15,75. What is the total?
Solve the photographed line 15% × 80 =.
Discover 67 free sum calculators across different categories. Find the right calculator for your needs.
Try a different name or choose another category.
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.
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.
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.
Shoot straight from above in even light, fill the frame with the numbers, and keep the digits sharp and at least 20 pixels tall.
Yes, each line follows brackets, powers, multiplication and division, then addition and subtraction. 6 + 4 × 3 = 18.
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.
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.
The photo sum calculator solves + − × ÷ (or x, *, /), powers with ^, brackets and percentages such as 15%.
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.
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.