Security Bot Protection Accessibility

Math CAPTCHA: What It Is, Examples & Why It Falls Short

Math CAPTCHA explained: how it works, examples of number captchas, why bots solve them instantly, and which alternatives protect your forms.

Published May 07, 2026 · 9 min read · Updated Oct 12, 2026

Key takeaways

What a math CAPTCHA is
A math CAPTCHA asks a simple sum, such as "3 + 5 = ?", before a form goes through, to check that a person filled it in. It is one of the oldest CAPTCHA types and still sits in many older contact forms, WordPress plugins and forum installations.
Bots solve it in seconds
AI tools and free open-source solvers answer arithmetic questions instantly: a screenshot pasted into ChatGPT returns the result before a person could type it. Against an attacker with basic skills, a math CAPTCHA protects about as well as no CAPTCHA.
An accessibility risk for EU sites
Sums add cognitive load and shut out people with dyscalculia or cognitive disabilities. Under the European Accessibility Act (EAA), which has applied since June 2025, a sum without an accessible alternative may not be compliant for businesses serving EU consumers.
Modern alternatives run in the background
Invisible bot detection, which combines proof-of-work with bot scoring, protects forms without asking visitors to do anything. TrustCaptcha runs in the background, sets no cookies and processes data in EU data centers.
On this page
  1. What is a math CAPTCHA?
  2. How a math CAPTCHA works
  3. Security: the real picture
  4. Accessibility: a compliance risk for EU businesses
  5. Where you still find them today
  6. What to use instead of a math CAPTCHA
  7. Should you still use a math CAPTCHA?
  8. Try TrustCaptcha for free
Share this post

What is a math CAPTCHA?

A math CAPTCHA (short for mathematical CAPTCHA) is a challenge-response test that asks visitors to solve a simple sum before they can submit a web form. Typical questions look like this: “What is 4 + 9?”, “Solve: 15 − 7 = ?” or “Enter the result: 6 × 3.” A correct answer lets the submission through. A wrong one gets it rejected as a likely bot.

The idea is the same as behind every other CAPTCHA type: a test that is trivial for people and hard for computers. In the early 2000s, when most bots were rigid scripts, a sum was a real barrier. It no longer is. This article covers how these checks work, where their security and accessibility problems lie, and what to use instead.

Example of a math CAPTCHA question on a web form

How a math CAPTCHA works

The implementation is deliberately simple, which is one reason it is still so common on older systems.

  1. Question generation: The server generates a random arithmetic expression, usually an addition or subtraction, sometimes a multiplication.
  2. Display: The expression appears in the form, either as plain HTML text or as an image.
  3. User input: The visitor reads the question, works out the answer and types it into a field.
  4. Validation: When the form is submitted, the server compares the value with the expected answer and shows an error if they do not match.

Math CAPTCHA examples

These are the formats you will typically come across on the web:

  • What is 6 + 4? → expected answer: 10
  • 12 − 5 = ? (rendered as an image) → expected answer: 7
  • Enter the sum of 8 and 3: → expected answer: 11
  • A “number CAPTCHA” with a label like Type the answer: 9 + 6 → expected answer: 15

The appeal is the simplicity: no third-party API, no account, no running cost and only a few lines of server code. That is why it shows up in older WordPress plugins, in forum software and in countless custom PHP contact forms. Many site owners have not looked at their CAPTCHA since the site went live, so the sum is simply still there as the default.

Security: the real picture

The sum looks like protection. Against an attacker with even basic technical skills, it offers none.

AI solves arithmetic questions instantly

AI model solving a math CAPTCHA by reading and answering an arithmetic question via OCR

The simplest demonstration: take a screenshot of the question and paste it into ChatGPT, Claude, Gemini or any other multimodal AI model. The answer appears before a person has finished reading the question.

That takes no programming knowledge, no infrastructure and no special tools, only an AI assistant that anyone with internet access already has. A bot operator who adds an AI API call for reading the image and doing the sum can automate the whole thing in less than a day. The assumption the method rests on, that arithmetic is hard for computers, has been false for years.

When the question is plain HTML text rather than an image, the barrier is even lower. A regex that pulls out two numbers and an operator, followed by the calculation, solves every question in milliseconds, without any AI.

Free math CAPTCHA solver tools exist

Dedicated math CAPTCHA solver scripts are free and actively maintained. GitHub hosts Python libraries and browser extensions built to submit forms by answering arithmetic questions, and spammers, scrapers and mass-submission bots use them.

The protection therefore depends on the attacker either not knowing these tools exist or not being willing to spend a few hours finding them. That is not a realistic threat model for a site that handles sensitive data, user registrations or commercial forms.

What a sum protects against and what it doesn’t

To be fair, a sum still stops:

  • Very simple bots that cannot parse text
  • The most primitive “fill and submit” scripts

It does not protect against:

  • Any bot with basic OCR, regex or AI integration
  • Automated scrapers and contact form spammers
  • Fake account creation, credential stuffing or carding bots
  • Volumetric attacks: the question adds no computing cost, does not slow requests down and cannot get harder under load

More to the point, a math CAPTCHA does not detect bots. It only checks whether the right number was entered. A bot that can read and calculate passes every time, so it can submit a form 1,000 times in a few minutes. There is no behavioral analysis, no proof-of-work and no bot scoring, just a static question with a predictable answer. For any serious threat model, that is the same as having no CAPTCHA at all.

Accessibility: a compliance risk for EU businesses

Security is one side of the problem. Accessibility is the other, and it is increasingly the one with legal consequences.

Cognitive load and user experience

Even a simple sum makes people stop what they are doing. They have to:

  1. Shift their attention to the CAPTCHA
  2. Read and parse a mathematical expression
  3. Do the calculation in their head
  4. Type the result correctly before going back to the rest of the form

For most people this takes a few seconds. Those seconds still add friction, because every extra step in a form costs some submissions. And the task is not equally easy for everyone.

People with dyscalculia (a specific learning difficulty that affects working with numbers) find arithmetic tasks much harder than others do. People with cognitive disabilities, ADHD or age-related cognitive changes may struggle with the switch in context and the calculation. These checks also rarely offer an audio version or another non-visual fallback, so a screen reader user may meet a question they have no accessible way to answer.

European Accessibility Act and WCAG 2.1

This is more than a UX concern. For businesses in the European Union it is also a legal exposure.

The European Accessibility Act (EAA), Directive (EU) 2019/882, entered into force in 2019 and has applied since June 28, 2025. It sets accessibility requirements for many products and services offered to consumers in the EU, e-commerce among them. In practice, the reference standard is EN 301 549, which incorporates WCAG 2.1 at level AA.

These WCAG 2.1 criteria are the ones a sum is most likely to fail:

  • Success Criterion 3.3.2 (Labels or Instructions): forms must give instructions clear enough to complete them. An unlabeled arithmetic field often does not.
  • WCAG’s own guidance on CAPTCHAs says that if a CAPTCHA is used, it must offer at least two different modalities, for example a visual and an audio version.
  • Success Criterion 1.1.1 (Non-text Content): a CAPTCHA shown as an image needs a text alternative that describes its purpose, and an alternative form for people who cannot use the primary one. A sum rendered as an image, with no audio or other alternative, fails it.

A math CAPTCHA with no audio alternative and no accessible fallback can fail these criteria, and the calculation itself stays a barrier for people with dyscalculia or cognitive disabilities. For EU businesses with consumer services, that creates compliance exposure.

Where you still find them today

They are still common despite these limits, mostly because they shipped as defaults in popular tools and were set up years ago without anyone revisiting them:

  • WordPress contact form plugins: older CAPTCHA plugins that ask a simple sum are still installed on many sites
  • phpBB and other forum software: question-and-answer checks at registration, often set up as a simple sum
  • Custom PHP and Python forms: a common do-it-yourself solution for developers who want no third-party dependency
  • Government and institutional websites: older sites built before current CAPTCHA standards and never updated
  • E-commerce checkouts: older Magento, PrestaShop and WooCommerce setups with custom CAPTCHA code

In many cases nobody chose the sum as a security measure. It was the easiest option at the time, and nobody has reviewed it since.

What to use instead of a math CAPTCHA

The right replacement depends on how much protection the site needs. For a wider overview, see our guide to CAPTCHA alternatives.

Honeypot fields

A honeypot is a form field that CSS hides from people but that bots reading the raw HTML still see. If the field comes back filled in, the server treats the request as automated and quietly rejects it.

Honeypots:

  • Need no interaction from the visitor
  • Add no cognitive load or friction
  • Cost nothing and take a few lines of code
  • Work against simple bots

The limit: modern bots can detect honeypot fields and skip them. A honeypot is a good first layer, but on its own it does not stop a targeted or technically capable attacker. Our honeypot CAPTCHA guide explains when it is enough.

Rate limiting and server-side signals

Capping submissions per IP address, per session or per time window slows down bots that rely on volume. Combined with server-side heuristics (unusually fast submissions, repeated identical payloads, a missing referrer header), it catches some automated traffic without adding anything visitors see.

Rate limiting works best together with other measures. On its own, bots get around it by rotating IP addresses, which most of them can do easily.

TrustCaptcha: invisible bot protection built for Europe

TrustCaptcha running invisibly in the background without user interaction

For sites that need reliable bot protection without giving up accessibility or compliance, TrustCaptcha takes a different approach.

Instead of asking visitors a question, TrustCaptcha works in the background with two mechanisms that complement each other:

Proof-of-work: the visitor’s browser solves a cryptographic challenge on its own. Real visitors notice nothing, because TrustCaptcha starts early and finishes before they have filled in the form. For bots running attacks at scale, the computing cost of these challenges makes mass automation uneconomical.

Bot scoring: every request is checked against technical and behavioral signals. When the risk rises, for example during a spike in automated submissions, TrustCaptcha makes the proof-of-work harder. That raises the cost of the attack without changing anything for real visitors.

For visitors, nothing happens: no question, no sum, no image grid, no interruption. For bots, there is a real barrier that gets harder to get past under load.

TrustCaptcha is built for European compliance requirements:

  • Cookie-free: the widget sets no cookies
  • EU-hosted: all data is processed in EU data centers, with no transfers to third countries
  • GDPR: every customer gets a Data Processing Agreement (DPA/AVV)
  • Accessible by design: there is no visual or cognitive task, and the widget is designed to meet WCAG 2.2 and to work with screen readers and other assistive technology

For EU businesses that replace a math CAPTCHA and need to meet both the EAA and the GDPR, TrustCaptcha is an accessible CAPTCHA and a GDPR-compliant CAPTCHA in one integration.

Should you still use a math CAPTCHA?

A math CAPTCHA makes visitors solve a sum, while OCR, regex or AI solve it instantly. A honeypot field and rate limiting ask nothing of visitors but only stop simple bots or slow down high-volume ones. Invisible bot detection asks nothing of visitors and is a real barrier that gets harder to pass under load

Arithmetic checks made sense in a different era. Today they have three problems at once: any AI or open-source solver gets past them, they put a cognitive burden on visitors, and they create accessibility risk under EU law.

The better replacements ask visitors to do nothing at all. Honeypot fields, rate limiting and invisible bot detection all do better than a sum. If you need real protection and EU compliance, invisible bot detection is the option that covers both.

Try TrustCaptcha for free

Every plan starts with a 14-day free trial, so you can swap out the sum and watch how your forms behave. Try TrustCaptcha for free and protect your forms against bots and spam without a question in front of them.

FAQs

What is a math CAPTCHA?
A math CAPTCHA is a challenge-response test in a web form that asks the visitor to solve a simple sum (for example, '4 + 7 = ?') before submitting. The server generates a random equation, the visitor types the answer, and the server checks it. A wrong answer gets the submission rejected as a likely bot.
Are math CAPTCHAs still secure against bots?
No. Scripts read arithmetic questions with basic OCR and solve them in milliseconds, and AI tools like ChatGPT answer them from a screenshot. Free solver libraries are easy to find on GitHub, so any attacker can get past this kind of check within a few hours.
Can AI solve a math CAPTCHA?
Yes, easily. Any current AI model, or even a simple regex script, solves questions like '3 + 7' or '12 − 4'. If the question is plain text, a few lines of code handle it. If it is an image, a basic OCR pass followed by the calculation does the job. For an AI-assisted bot there is no real barrier.
What is a math CAPTCHA solver?
A math CAPTCHA solver is a script or tool that reads the arithmetic question on a form and submits the correct answer without a person involved. They range from small Python scripts using regex to browser extensions that hook into page rendering. Many are free and maintained in public code repositories.
Are math CAPTCHAs compliant with EU accessibility law?
They are a legal risk under the European Accessibility Act (EAA), which entered into force in 2019 and has applied to many consumer services in the EU since June 2025. They add cognitive load, usually have no audio alternative and can shut out people with dyscalculia or cognitive disabilities. All of this conflicts with the WCAG 2.1 criteria that EU accessibility standards build on.
Are number-only CAPTCHAs more secure than math CAPTCHAs?
No. A captcha that only takes a numeric answer (sometimes called a 'number captcha' or 'captcha numbers only') is as easy to solve automatically as any sum. The format does not change the problem: the question is simple, predictable and solvable by any tool that can do basic arithmetic.
What should I use instead of a math CAPTCHA?
For a quick improvement, a honeypot field (a hidden field that only bots fill in) adds no friction and catches simple bots. For reliable protection, use invisible bot detection that combines proof-of-work with behavioral scoring, such as TrustCaptcha. It protects forms in the background without any visitor interaction, which also helps with accessibility and GDPR.

Stop bots and spam

Stop spam and protect your website from bot attacks. Secure your website with our user-friendly and GDPR-compliant CAPTCHA.