Model comparison
Gemma 4 31B IT vs GPT-5-Codex
Gemma 4 31B IT is the stronger model overall, scoring 43.5 to 37.9 on the Noometry Index.
Last verified . 2 shared benchmarks.
Summary
- They share 2 benchmarks with published results for both. Gemma 4 31B IT scores higher in 0 categories and GPT-5-Codex in 2 categories; one gap is clear of the uncertainty.
- The widest gap is in reasoning, where GPT-5-Codex leads 30.9 to 27.2.
- The biggest single-benchmark swing is Kagi LLM Benchmark: 63.5% for Gemma 4 31B IT and 70.3% for GPT-5-Codex.
- Gemma 4 31B IT is cheaper at $0.09 / $0.34 per million input/output tokens, against $1.25 / $10 for GPT-5-Codex.
- GPT-5-Codex accepts more context: 400K tokens versus 262K.
- Gemma 4 31B IT has downloadable open weights; the other is API-only.
Side by side
| Gemma 4 31B IT | GPT-5-Codex | |
|---|---|---|
| Provider | OpenAI | |
| Noometry Index | 43.5 | 37.9 |
| Released | 2026-04-02 | 2025-09-15 |
| Weights | Open | Proprietary |
| Context window | 262K | 400K |
| Max output | 33K | 128K |
| Input $ / M tokens | $0.09 | $1.25 |
| Output $ / M tokens | $0.34 | $10 |
| Results tracked | 35 | 3 |
Sponsored placements are available on pages like this one. Advertise on Noometry
Category by category
Coding Too close to call
Gemma 4 31B IT: 42.3 (#108), GPT-5-Codex: 42.4 (#103)
| Benchmark | Gemma 4 31B IT | GPT-5-Codex |
|---|---|---|
| WeirdML | 52.3% | 54.5% |
| LMArena WebDev | 1366 | — |
| SciCode | 43.4% | — |
| LMArena Coding | 1459 | — |
| ALE-Bench | 925.5 | — |
Agentic & Tool Use Not comparable
Gemma 4 31B IT: —, GPT-5-Codex: 31.0 (#72)
| Benchmark | Gemma 4 31B IT | GPT-5-Codex |
|---|---|---|
| Terminal-Bench | — | 44.3% |
Reasoning GPT-5-Codex leads
Gemma 4 31B IT: 27.2 (#122), GPT-5-Codex: 30.9 (#83)
| Benchmark | Gemma 4 31B IT | GPT-5-Codex |
|---|---|---|
| Kagi LLM Benchmark | 63.5% | 70.3% |
| NYT Connections (extended) | 70.6% | — |
| CritPt | 1.4% | — |
| Chess Puzzles | 5% | — |
| Thematic Generalization | 53% | — |
| LMArena Hard Prompts | 1448 | — |
| DTBench | 82.7% | — |
| LMCA | 39.3% | — |
| Surface Evolver Bench | 30.6% | — |
| Epoch Capabilities Index | 142.74 | — |
Math Not comparable
Gemma 4 31B IT: 43.2 (#81), GPT-5-Codex: —
| Benchmark | Gemma 4 31B IT | GPT-5-Codex |
|---|---|---|
| OTIS Mock AIME 2024-2025 | 73.3% | — |
| LMArena Math | 1465 | — |
Knowledge Not comparable
Gemma 4 31B IT: 37.9 (#151), GPT-5-Codex: —
| Benchmark | Gemma 4 31B IT | GPT-5-Codex |
|---|---|---|
| GPQA Diamond | 75.8% | — |
| SimpleQA Verified | 10.4% | — |
| Vectara Hallucination Rate | 7.4% | — |
| LMArena Expert | 1465 | — |
Multimodal Not comparable
Gemma 4 31B IT: 41.6 (#34), GPT-5-Codex: —
| Benchmark | Gemma 4 31B IT | GPT-5-Codex |
|---|---|---|
| LMArena Vision | 1277 | — |
| LMArena Document | 1425 | — |
Multilingual Not comparable
Gemma 4 31B IT: 53.8 (#57), GPT-5-Codex: —
| Benchmark | Gemma 4 31B IT | GPT-5-Codex |
|---|---|---|
| LMArena Non-English | 1431 | — |
| LMArena Chinese | 1476 | — |
| LMArena French | 1435 | — |
| LMArena Russian | 1460 | — |
| LMArena Spanish | 1444 | — |
Instruction Following Not comparable
Gemma 4 31B IT: 75.5 (#61), GPT-5-Codex: —
| Benchmark | Gemma 4 31B IT | GPT-5-Codex |
|---|---|---|
| LMArena Instruction Following | 1433 | — |
Long Context Not comparable
Gemma 4 31B IT: 44.2 (#71), GPT-5-Codex: —
| Benchmark | Gemma 4 31B IT | GPT-5-Codex |
|---|---|---|
| LMArena Longer Query | 1446 | — |
Writing & Preference Not comparable
Gemma 4 31B IT: 60.5 (#96), GPT-5-Codex: —
| Benchmark | Gemma 4 31B IT | GPT-5-Codex |
|---|---|---|
| LMArena Text | 1443 | — |
| LMArena Creative Writing | 1415 | — |
| EQ-Bench Creative Writing | 1368 | — |
| EQ-Bench 4 | 1120 | — |
| LMArena Multi-Turn | 1452 | — |
Frequently asked questions
Is Gemma 4 31B IT better than GPT-5-Codex?
Gemma 4 31B IT is the stronger model overall, scoring 43.5 to 37.9 on the Noometry Index.
Which is cheaper, Gemma 4 31B IT or GPT-5-Codex?
Gemma 4 31B IT is cheaper. It lists at $0.09 per million input tokens and $0.34 per million output tokens; GPT-5-Codex lists at $1.25 and $10.
Is Gemma 4 31B IT or GPT-5-Codex better for coding?
They score almost the same on coding (42.3 vs 42.4); test both on your own repository before choosing.
Which has the bigger context window?
GPT-5-Codex does, with 400K tokens against 262K.
How many benchmarks do Gemma 4 31B IT and GPT-5-Codex share?
2 benchmarks have published results for both models. Gemma 4 31B IT has 35 scored results on Noometry and GPT-5-Codex has 3.