AI Math Tutor

Blog · Scanning homework

Handwritten Equation Solver: How to Scan Your Own Writing

A handwritten equation is the hardest thing you will ever ask a camera to read, and also the most common one, because most homework is done in pencil in a notebook. The good news is that the camera's problems are predictable: faint strokes, cramped symbols, a fraction bar that looks like a minus sign, a superscript that has slid down onto the line. Fix those with the pen before you fix anything with the phone.

This guide shows how to write so a camera can read it, what the app does with handwriting, why a vision model helps, and two handwritten equations worked through with the read, the steps and the check.

Key takeaways

Write it so the camera can read it

Think of the reader as someone with good eyesight who has never seen your handwriting before. Every habit below is about removing a guess.

Use dark ink. Black or dark blue pen on white paper gives the reader the contrast it needs. Pencil is gray on white, and gray disappears the moment a shadow falls across the page. If the homework has to be in pencil, press firmly, or trace the one problem you want to scan in pen on a spare line.

Write bigger. Twice your normal size is about right. Large writing makes an exponent a clearly separate small character instead of a smudge attached to the xx, and it gives a fraction bar enough length to look like a bar.

Leave space. A gap between terms, a gap on either side of the equals sign, and a clear gap between a fraction and whatever follows it. Symbols that touch get merged.

Keep the small things small and the raised things raised. An exponent should sit clearly above the line and be noticeably smaller than the base. A subscript should sit clearly below. If your 2 drifts down to the line, x2x^2 becomes x2x2, and the steps that follow will be for a different problem.

Make fraction bars long and minus signs short. These are the same stroke to a reader, and length is the only clue. Draw the bar the full width of the numerator and denominator, and keep the minus sign compact.

Print rather than write in cursive, write xx as two crossed strokes rather than a loop, keep the 1 a plain stroke, and make sure a 7 cannot pass for a 1. Draw parentheses tall so they do not look like the digit 1 either.

One problem per shot, on a fresh line, with no crossed-out work in the frame. Scratch work next to the problem gets read as part of it. Ruled paper is fine as long as the writing sits between the lines rather than across them.

The general photo habits still apply: hold the phone flat above the page, keep the flash off, and get the light from a window or a lamp off to one side so your hand does not shadow the page. App That Scans Homework: How Photo Math Solvers Work covers framing in full.

What the app does with your handwriting

Open the in-app camera, drag the crop box around the one problem, and capture. Or, if you already photographed the page, pick it from your photos.

An AI vision model reads the photo, the same way for everyone, free or Pro. The app shows what it read on a "Here's what I read" screen, as typeset math and as editable text, and nothing is solved until you tap "Looks right, solve it". If the model cannot find readable math, the app says so and suggests a closer, well lit photo or typing the problem.

Compare the read to your page symbol by symbol. If it is wrong, you have three good options: fix the text on that screen, for example turning x2 into x^2; retake the photo after rewriting the problem larger and darker; or type the problem. Math OCR Explained: How an App Reads a Photo of a Problem explains why handwriting trips a reader in the first place.

Why a vision model helps with handwriting

AI Math Tutor sends the photo itself to the model, free or Pro, and the app asks permission before the first problem leaves your device. The model sees the page as a picture, so it can use the layout: the number above the bar is the numerator, the small character at the top right is an exponent, the second line is a continuation of the first.

That is why it reads handwriting rather than only clean print, and why a labeled diagram comes back described in words. It reads one problem per photo, so to check a whole attempt, scan the problem and put your own lines beside the numbered steps to find the first one that differs.

It can still misread a rushed symbol, so the check does not change. Read what the app understood, then read what it did.

Worked examples

Example 1: solve 6x−4=206x - 4 = 20

The photo shows the equation written in black pen on ruled paper at about twice normal size, with a short clear minus sign and a gap on either side of the equals sign, taken flat in window light.

What the app read: 6x−4=206x - 4 = 20

  1. Add 4 to both sides to undo the subtraction and leave the xx term alone.
    6x=246x = 24
  2. Divide both sides by 6 to undo the multiplication.
    x=4x = 4

So x=4x = 4. Check it by substituting: 6(4)−4=24−4=206(4) - 4 = 24 - 4 = 20, which matches the right side.

Example 2: solve 3(x+2)=213(x + 2) = 21

The photo shows the equation written in pen with the parentheses drawn tall so they could not pass for the digit 1, on a fresh line with no scratch work, taken from straight above.

What the app read: 3(x+2)=213(x + 2) = 21

  1. Distribute the 3 across the parentheses, multiplying each term inside by 3.
    3x+6=213x + 6 = 21
  2. Subtract 6 from both sides to leave the xx term alone.
    3x=153x = 15
  3. Divide both sides by 3.
    x=5x = 5

So x=5x = 5. Check it by substituting: 3(5+2)=3(7)=213(5 + 2) = 3(7) = 21, which matches. If you ask the tutor for another method, it can divide both sides by 3 first to get x+2=7x + 2 = 7, which reaches the same x=5x = 5 in two steps.

Common mistakes

When you want a cleaner input than your own handwriting, a screenshot removes every camera problem at once, covered in Screenshot Solver: Solve a Math Problem From a Screenshot, and the same writing habits make column sums and percentages read cleanly too, covered in Scan Calculator: Point the Camera and Get Arithmetic Right. Rewrite the next problem in dark pen, photograph just that line, and follow every step in AI Math Tutor.

AI Math Tutor is a study aid, not a substitute for a teacher, and it can make mistakes: check every step, not just the answer.

Questions

Can the app read a handwritten equation?

Yes, and how well depends on the writing and the photo. An AI vision model reads printed and handwritten math, the same way for everyone, free or Pro, and it does best with dark, spaced, printed-style handwriting photographed flat in good light. You check what it read before anything is solved.

Does pencil work, or do I need pen?

Pen is more reliable because the contrast is higher. Pencil can work if you press firmly, the light is good and there is no shadow across the page. If a pencil problem comes back with a poor read, tracing it in pen takes a few seconds and usually fixes it.

What if the app reads my handwriting wrong?

Fix it on the Here's what I read screen, where the read is editable text, for example making x2 into x^2 so the 2 is an exponent, not a separate term, then tap Looks right, solve it. Retaking the photo with more light or a bigger, cleaner rewrite, or typing the problem, also works.

Can I photograph my whole attempt and ask where I went wrong?

Not as one scan. The app reads one problem per photo, and given several lines it reads the first complete problem and says so. Scan or type the problem, then put your own lines beside the numbered steps to find the first one that differs, and tap Why? on that step or ask your own follow-up question about it.

Read next