# GSM8K

> Canonical: https://skillalmanac.com/glossary/gsm8k | Last verified: 2026-11-24 | Index status: not offered to search engines

GSM8K is a dataset of 8.5 thousand grade school math word problems, introduced by OpenAI researchers, used to test whether language models can reason through multi-step arithmetic problems written in natural language.

Also called: GSM8K benchmark, GSM8K dataset, grade school math 8K, GSM-8K, GSM8K math benchmark.

## In plain language

GSM8K is a set of school-level maths word problems, like a worksheet about buying apples and splitting a bill. Researchers give the problems to an AI model and check whether it reaches the right answer. It is a narrow test: it covers one kind of arithmetic reasoning in English, so a good result does not show the model is good at your own work.

## Technical definition

Cobbe et al., in Training Verifiers to Solve Math Word Problems (arXiv 2110.14168), introduce GSM8K with 8.5K high quality, linguistically diverse grade school math word problems. OpenAI's release page says each problem takes between 2 and 8 steps and uses basic arithmetic, with solutions written in natural language. The paper also trains verifiers that judge candidate solutions: at test time many solutions are generated and the one the verifier ranks highest is selected. The dataset is a measuring tool; any score depends on the prompting and answer-checking setup used.

## How it shows up when you use agents

GSM8K does not usually appear in a Claude Code or Codex session directly. It shows up in model announcements and comparison tables, where a model is described as scoring on it. This page does not quote scores. See [LLM benchmark](/glossary/llm-benchmark) for how such tests are built and read.

What it measures: whether a model can solve grade school maths word problems that need between 2 and 8 steps, according to OpenAI's release page. That is a narrow slice of [reasoning](/glossary/reasoning-model). A model can do well on it and still make arithmetic or logic slips in your data pipeline, and a coding agent's work is not graded by it.

What breaks when it is misunderstood: a reader treats a GSM8K result as a general intelligence rating, or compares numbers produced with different prompts, such as with and without [chain-of-thought](/glossary/chain-of-thought) reasoning, as if they were the same test.

Next action: when a vendor cites it, ask how the model was prompted and how answers were checked, then build a small test of your own tasks. The paper itself shows the setup matters: it adds a verifier that picks one answer from many generated ones.

## Common confusions

- **GSM8K versus MMLU.** GSM8K is grade school maths word problems. [MMLU](/glossary/mmlu) is a different benchmark; see its own page.
- **Dataset versus the paper's method.** The dataset is separate from the verifier technique the paper proposes. Citing the dataset does not mean a verifier was used.
- **High score versus understanding.** A score reports how a system did on these problems under a setup, not that it reasons like a person.
- **Myth.** A public test stays clean. Public questions can be copied into training material, which is why leakage checks and private test sets matter.

## Worked examples in this catalogue

### [llm-eval-test-sets](https://skillalmanac.com/skills/skill-almanac/llm-eval-test-sets)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill builds and validates an eval dataset for any LLM feature, with a checker for duplicates, missing graders, imbalance and leakage.

Why it exercises the concept: GSM8K is a public eval set for one skill. This skill is for building your own set for your own feature. It does not run GSM8K, and the catalogue has no skill that does.

### [split-leakage-check](https://skillalmanac.com/skills/skill-almanac/split-leakage-check)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill checks train, validation and test files for duplicates, shared groups, time and label leakage and prints JSON.

Why it exercises the concept: The question of whether test items appear in training data applies to public benchmarks too. This skill checks files you supply; it cannot inspect a model's training data.

### [huggingface-datasets](https://skillalmanac.com/skills/huggingface/huggingface-datasets)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill reads Hugging Face datasets through the Dataset Viewer API: metadata, rows, search and filters.

Why it exercises the concept: It is a way to look at rows of a hosted dataset. Whether a given benchmark is hosted there is for you to check; it does not score a model.

## Related terms

- [LLM benchmark](https://skillalmanac.com/glossary/llm-benchmark.md)
- [Chain of thought](https://skillalmanac.com/glossary/chain-of-thought.md)
- [Reasoning model](https://skillalmanac.com/glossary/reasoning-model.md)
- [MMLU (Massive Multitask Language Understanding)](https://skillalmanac.com/glossary/mmlu.md)
- [HumanEval](https://skillalmanac.com/glossary/humaneval.md)
- [Large language model (LLM)](https://skillalmanac.com/glossary/large-language-model.md)

## Sources

- [Training Verifiers to Solve Math Word Problems - Cobbe et al.](https://arxiv.org/abs/2110.14168), arXiv (accessed 2026-11-24)
- [Solving math word problems](https://openai.com/index/solving-math-word-problems/), OpenAI (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
