Model comparison

Gemma 4 31B IT vs GPT-5-Codex

Gemma 4 31B IT is the stronger model overall, scoring 43.2 to 37.3 on the Noometry Index.

Last verified . 2 shared benchmarks.

Gemma 4 31B IT Google

43.2

Rank #85 Confirmed

GPT-5-Codex OpenAI

37.3

Rank #190 Reported

Summary

  • They share 2 benchmarks with published results for both. Gemma 4 31B IT scores higher in 1 category and GPT-5-Codex in 1 category; one gap is clear of the uncertainty.
  • The widest gap is in reasoning, where GPT-5-Codex leads 30.0 to 26.4.
  • 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 and GPT-5-Codex specifications
Gemma 4 31B ITGPT-5-Codex
ProviderGoogleOpenAI
Noometry Index43.237.3
Released2026-04-022025-09-15
WeightsOpenProprietary
Context window262K400K
Max output33K128K
Input $ / M tokens$0.09$1.25
Output $ / M tokens$0.34$10
Results tracked353

Sponsored placements are available on pages like this one. Advertise on Noometry

Category by category

Coding Too close to call

Gemma 4 31B IT: 41.9 (#98), GPT-5-Codex: 41.9 (#100)

Coding benchmarks
BenchmarkGemma 4 31B ITGPT-5-Codex
WeirdML52.3%54.5%
LMArena WebDev1364—
SciCode43.4%—
LMArena Coding1459—
ALE-Bench925.5—

Agentic & Tool Use Not comparable

Gemma 4 31B IT: —, GPT-5-Codex: 30.8 (#66)

Agentic & Tool Use benchmarks
BenchmarkGemma 4 31B ITGPT-5-Codex
Terminal-Bench—44.3%

Reasoning GPT-5-Codex leads

Gemma 4 31B IT: 26.4 (#119), GPT-5-Codex: 30.0 (#80)

Reasoning benchmarks
BenchmarkGemma 4 31B ITGPT-5-Codex
Kagi LLM Benchmark63.5%70.3%
NYT Connections (extended)70.6%—
CritPt1.4%—
Chess Puzzles5%—
Thematic Generalization53%—
LMArena Hard Prompts1448—
DTBench82.7%—
LMCA39.3%—
Surface Evolver Bench30.6%—
Epoch Capabilities Index142.74—

Math Not comparable

Gemma 4 31B IT: 41.3 (#72), GPT-5-Codex: —

Math benchmarks
BenchmarkGemma 4 31B ITGPT-5-Codex
OTIS Mock AIME 2024-202573.3%—
LMArena Math1464—

Knowledge Not comparable

Gemma 4 31B IT: 37.9 (#141), GPT-5-Codex: —

Knowledge benchmarks
BenchmarkGemma 4 31B ITGPT-5-Codex
GPQA Diamond75.8%—
SimpleQA Verified10.4%—
Vectara Hallucination Rate7.4%—
LMArena Expert1465—

Multimodal Not comparable

Gemma 4 31B IT: 41.0 (#32), GPT-5-Codex: —

Multimodal benchmarks
BenchmarkGemma 4 31B ITGPT-5-Codex
LMArena Vision1278—
LMArena Document1425—

Multilingual Not comparable

Gemma 4 31B IT: 54.0 (#52), GPT-5-Codex: —

Multilingual benchmarks
BenchmarkGemma 4 31B ITGPT-5-Codex
LMArena Non-English1431—
LMArena Chinese1478—
LMArena French1436—
LMArena Russian1462—
LMArena Spanish1443—

Instruction Following Not comparable

Gemma 4 31B IT: 75.6 (#58), GPT-5-Codex: —

Instruction Following benchmarks
BenchmarkGemma 4 31B ITGPT-5-Codex
LMArena Instruction Following1433—

Long Context Not comparable

Gemma 4 31B IT: 44.2 (#67), GPT-5-Codex: —

Long Context benchmarks
BenchmarkGemma 4 31B ITGPT-5-Codex
LMArena Longer Query1446—

Writing & Preference Not comparable

Gemma 4 31B IT: 60.7 (#92), GPT-5-Codex: —

Writing & Preference benchmarks
BenchmarkGemma 4 31B ITGPT-5-Codex
LMArena Text1443—
LMArena Creative Writing1416—
EQ-Bench Creative Writing1368—
EQ-Bench 41120—
LMArena Multi-Turn1452—

Frequently asked questions

Is Gemma 4 31B IT better than GPT-5-Codex?

Gemma 4 31B IT is the stronger model overall, scoring 43.2 to 37.3 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 (41.9 vs 41.9); 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.

Related comparisons

Go deeper