Skip to content
Theory test4 minRamon Curto

How many mistakes can you make in the theory test?

In category B, you can get a maximum of 3 of the 30 theory test questions wrong: you need 27 correct. See the limits by category and what happens if you fail.

In brief

In the category B theory test, you can make no more than 3 mistakes: the test has 30 questions and you need at least 27 correct answers to pass. The fourth mistake means you fail — there are no rounding rules or special cases.

The limit varies by category: if you take the motorcycle test with a B licence, you can get only 1 of 10 questions wrong, while in the heavy vehicle categories the maximum is 2 mistakes out of 20. Here you will find the full table, strategies for managing mistakes during the test and what happens if you fail.

How many mistakes can you make in the theory test?

The quick answer: a maximum of 3 mistakes in category B

To pass the category B and B1 theory test, you must get at least 27 out of 30 questions correct. This gives you a margin of 3 mistakes — not one more. Every question is worth the same; there are no knockout questions or specially weighted topics: what counts is your total number of correct answers at the end.

This criterion appears in the official table of theory tests published by the IMT, with its legal basis in Decree-Law No. 102-B/2020 of 9 December.

Mistakes allowed by category

The margin for mistakes depends on the length of the test, but it is not proportional in every category — note how the shorter motorcycle test (for those who already have a B licence) is the most demanding in relative terms:

Theory test pass limits by category (IMT, legal basis: Decree-Law No. 102-B/2020)
CategoryQuestionsMinimum correctMaximum mistakes
B / B1 (cars)30273
AM (mopeds)20173
A, A1, A2 — without B/B1 licence40364
A, A1, A2 — already hold B/B1 licence1091
C / C1 (goods vehicles)20182
D / D1 (passenger vehicles)20182

In the shorter motorcycle test (10 questions for those who already have a B licence), one mistake still means a pass — two mistakes mean a fail. That is a small margin for a 10-minute test, so do not underestimate it.

How to manage mistakes during the test

The 3 mistakes are a safety margin, not a target. The best way to manage them is to keep them in reserve for genuinely difficult questions — and not waste them through carelessness. A few practical rules:

  • read the whole question and all the options before answering — many avoidable mistakes happen when you answer the question you expected, rather than the one on screen;
  • be wary of absolute words such as “always”, “never”, “only” and “solely”: almost everything in the Código da Estrada has exceptions;
  • if you are unsure about a question, first rule out the clearly wrong options and choose between the rest;
  • if you got a question wrong (or think you did), forget it: each question is independent, and the anxiety that builds up costs more marks than the original doubt;
  • with 30 minutes for 30 questions, you have about 1 minute per question — enough time to read carefully, but not to get stuck on one question for several minutes.

High-risk questions

The questions most likely to use up your margin for mistakes are those that require precise figures (speed limits by vehicle type, alcohol limits, stopping and parking distances) and image-based right-of-way questions at junctions and roundabouts. If you know these are your weak points, study them until they become strengths — that is where passing is decided.

What if you fail?

Failing the theory test does not stop you continuing the process: you can retake it by booking a new date. In practice, the new booking is usually arranged through your driving school, which coordinates with the IMT; ask the school about booking and the applicable costs, which are set by the IMT.

More important than the new date is understanding why you failed. If you missed the pass mark by 1 or 2 mistakes, it was probably carelessness or one topic you had not fully mastered; if you missed it by more, your preparation needs more work overall. In either case, the approach is the same: identify the topics you got wrong and practise tests in the real format until your scores are consistently comfortably above the pass mark.

Frequently asked questions

How many mistakes can I make in the category B theory test?

No more than 3 mistakes out of 30 questions: you need at least 27 correct answers to pass. With 4 mistakes or more, you fail.

How many questions do I need to get right to pass the theory test?

In category B, at least 27 out of 30. In the other categories: 17 out of 20 (AM), 36 out of 40 (motorcycle without a B licence), 9 out of 10 (motorcycle with a B licence) and 18 out of 20 (heavy vehicle categories C and D).

How many mistakes can I make in the motorcycle theory test?

It depends on which test you take: without a B licence, the test has 40 questions and you can make a maximum of 4 mistakes; if you already have a B licence, the shorter test has 10 questions and you can get only 1 wrong.

Are all questions worth the same?

Yes. There are no knockout questions or specially weighted topics: the result is your total number of correct answers, compared with the minimum for your category.

What happens if I fail the theory test?

You can retake it by booking a new date — usually through your driving school, which arranges the booking with the IMT. Use the time in between to work on the topics you got wrong before trying again.

Sources

Verified on 26/08/2026 against the legislation in force.

Practise the B licence

What you just read, as a quiz: 10 questions, about 3 minutes, no sign-up.

New to the exam? Start with the Spanish driving theory test in English.