OCR API for Math and Science

Image scanning software for Ed Tech companies. Make math equation entry easy for end users.

Example equation

Example equation
Example equation

11. $z_{1}$ and $z_{2}$ are unimodular complex numbers that satisfy $z_{1}^{2}+z_{2}^{2}=4$ then the value of $\frac{\left(z_{1}+\bar{z}_{1}\right)^{2}+\left(z_{2}+\bar{z}_{2}\right)^{2}}{2}$ is (a) 10 (b) 11 (c) 12 (d) 13
Example equation
Example equation

\left(\begin{array}{l} c t^{\prime} \\ x^{\prime} \\ y^{\prime} \\ z^{\prime} \end{array}\right)=\left(\begin{array}{cccc} \gamma & -\gamma \beta & 0 & 0 \\ -\gamma \beta & \gamma & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{array}\right)\left(\begin{array}{l} c t \\ x \\ y \\ z \end{array}\right)
Example equation

Compatible with industry standards like LaTeX, Asciimath, MathML, and Markdown.

Battle-tested with deep functionality, including text, handwritten text, chemical equations, tables, and advanced math.


The most-trusted, fastest-innovating, limit-pushing OCR provider for STEM


Industry leader

Due to our exceptional accuracy and constant innovation, we are the most trusted brand for OCR among leaders in online math education, like Mathway, Microsoft, Chegg and more.


Battle-tested reliability

We process over 10 million images every day. Our system is battle tested and reliable with 99.9%+ uptime.


Low latency

We are constantly pushing the boundaries of what is possible for image recognition while maintaining extremely low latencies.


An easy-to-implement API for image recognition

Start digitizing images of math, chemistry, and text in a matter of minutes with a simple HTTP request.

We support image URL and base64 formats.

Example request:

{ "src": "https://mathpix.com/examples/limit.jpg", "formats": ["text", "data", "html"], "data_options": { "include_asciimath": true, "include_latex": true } }
Example equation

Example response & rendering:

{ "confidence": 1, "confidence_rate": 1, "is_printed": false, "is_handwritten": true, "text": "\\( \\lim _{x \\rightarrow 3}\\left(\\frac{x^{2}+9}{x-3}\\right) \\)", "html": "
\nlim_(x rarr3)((x^(2)+9)/(x-3))\\lim _{x \\rightarrow 3}\\left(\\frac{x^{2}+9}{x-3}\\right)
\n", "data": [ { "type": "asciimath", "value": "lim_(x rarr3)((x^(2)+9)/(x-3))" }, { "type": "latex", "value": "\\lim _{x \\rightarrow 3}\\left(\\frac{x^{2}+9}{x-3}\\right)" } ] }
Rendered equation

Supported image types

Use Mathpix OCR to very accurately convert images of simple and complicated printed and handwritten math, text, and tables.

We can also recognize printed foreign languages like Hindi, Chinese, Japanese, and Russian.

Printed math

Example equation

Handwritten math

Example equation

Word problems

Example equation

Chemical equation

Example equation

Multiple choice questions

Example equation


Example image

Printed Foreign Alphabet text

Example imageExample imageExample image

Diagram (location only)

Example equation

Printed English

Example image

You can find more example requests and types of images that you can process with Mathpix OCR in the User Guide.

Ed Tech industry leaders trust Mathpix


Use cases for Mathpix OCR

  • Solving and Search Apps

    With a long tail of advanced math, handwriting, and foreign language features, Mathpix OCR is the #1 choice for solving, tutoring, and search apps like Mathway, Microsoft Bing, Doubtnut, and Toppr. These apps help students of all levels around the world learn math, find tutors, and get the help that they need.

  • Grading and Assessment Platforms

    Whether they provide immediate answers or grade questions in bulk, grading and assessment platforms like Gradescope and Bakpax use Mathpix OCR in their platforms to make it faster and easier for math and science teachers to distribute and grade homework and exams with AI.

  • Publishing, Bulk Digitization, Accessibility and LMS

    Publishing companies use Mathpix OCR to create digital STEM educational material like online math textbooks. Accessible education companies like Benetech use Mathpix to make math and science educational materials accessible to all students.

Ready to get started?

Choose the plan that’s right for you and your team.

  • Monthly Pay As You Go

    • $1 one-time setup fee
    • Visualization Dashboard
    • Pay only for what you use
    • Billed on 1st of each month for previous calendar month's API usage
  • Enterprise

    • Long term contracts
    • Discounted prices for high volume
    • 24/7 support
    • Custom recognition features
    • On prem (PDF and document conversion processing only)
    • SLAs

API pricing by route

We price differently based on which endpoints are used. Usage tiers serve as a volume discount.

v3/text, v3/strokes, v3/latex, v3/image-results, v3/batch

  • $0.004/request (1-100K requests)
  • $0.002/request (100-300K requests)
  • $0.001/request (300K+ requests)
  • Note: each item in a batch request counts as one request

  • v3/pdf

  • $0.1/page (0-1K pages)
  • $0.05/page (1K+ requests)