The strictest possible grading. The predicted answer counts only if it matches a reference answer character for character.
| Full name | Exact Match |
| What it measures | The share of predicted answers that match a reference answer exactly, after light normalisation |
| Formula | Count of exact matches ÷ total questions, after lowercasing, removing punctuation and dropping articles |
| Typical range | 0 to 1 (or 0 to 100) |
| Used for | Extractive question answering and short-answer benchmarks |
| Best used for | Tasks with a single, well-defined correct answer, like span extraction |
| Pair with | Token-level F1, which gives partial credit for a close but imperfect answer |
Exact Match is the strictest metric in this whole collection. It does not care how close an answer is. It asks one binary question, after a small amount of cleanup: does this match, yes or no? That strictness is exactly its value and exactly its weakness, and the two cannot be separated.
For each question, normalise both the predicted answer and the reference answer the same way: lowercase everything, strip punctuation, and remove common filler words like “a,” “an” and “the.” Compare the two strings. If they match exactly, the prediction scores 1; otherwise it scores 0. Average across every question in the dataset to get the overall EM score. Most datasets with more than one acceptable phrasing provide several reference answers per question, and a prediction counts as correct if it matches any one of them.
This metric was popularised by the SQuAD reading comprehension benchmark, introduced by Rajpurkar, Zhang, Lopyrev and Liang in 2016, built around extracting the exact span of text from a passage that answers a question. If the reference answer is “September 2024” and the model predicts “September 2024,” that is an exact match, scoring 1. If the model instead predicts “Sept. 2024” or “in September 2024,” after normalisation those may or may not match depending on the exact cleanup rules, and a plausible paraphrase like “the autumn of 2024” would score 0 even though a human reader would call it correct, or at least close. This gap between EM and human judgment is precisely why SQuAD reports token-level F1 alongside EM: F1 gives partial credit by measuring word overlap between the predicted and reference spans, softening exactly the cases EM punishes too harshly.
Exact Match remains standard for extractive question answering, where the correct answer is, by construction, a specific span of text lifted from a passage, so there genuinely is one right answer to match against. It also appears in short-answer benchmarks for arithmetic, trivia and factual recall, anywhere the task is designed around a single correct string rather than an open-ended response.
It is completely unambiguous and requires no judgment calls once the normalisation rules are fixed, which makes it trivially reproducible across different research groups. It is also the right metric wherever the task genuinely has one correct short answer, since partial credit would be meaningless in that setting, half of a date or half of a span extraction is simply wrong.
EM is unforgiving of anything the normalisation rules do not anticipate: valid paraphrase, alternate but equally correct formats, minor spelling variation, or an answer that is objectively correct but phrased slightly differently from every listed reference. It is a poor fit for any open-ended generation task where there are genuinely many acceptable answers, such as summarization or free-form question answering, where forcing a single correct string throws away nearly all useful signal. And a model can be penalised heavily by EM while token-level F1 shows it was actually very close, which is why the two are almost never reported alone.
I use Exact Match only for tasks genuinely built around span extraction or short, well-defined factual answers, and I always report it next to token-level F1, never by itself, so a reader can see both how often the model nailed the answer precisely and how close it got on the cases it missed. For anything more open-ended than that, I move to a different metric family entirely, since forcing EM onto free-form generation produces numbers that look worse than the model actually is.