# Gemma 4 31B vs GPT-5.2-Codex

> Side-by-side benchmark comparison for Gemma 4 31B and GPT-5.2-Codex across agentic, coding, multimodal, knowledge, reasoning, multilingual, and math tasks.

- Canonical page: https://benchlm.ai/compare/gemma-4-31b-vs-gpt-5-2-codex
- Last updated: October 17, 2026

- Shared sourced benchmarks: 1
- HTML indexing: indexable
- Ranking lane: BenchAlign v5.8

## Quick Verdict

Evidence is too thin for a benchmark verdict: Gemma 4 31B and GPT-5.2-Codex share only 1 sourced benchmark row.

## Summary

- Only 1 shared sourced benchmark row is available. That is not enough for a broad capability verdict, so this mirror does not name an overall winner.
- Gemma 4 31B has the lower published output-token price.
- GPT-5.2-Codex has the larger published context window at 400K.

## Model Snapshot

| Property | Gemma 4 31B | GPT-5.2-Codex |
|----------|----------|----------|
| Creator | Google | OpenAI |
| Type | Open Weight | Proprietary |
| Reasoning | Reasoning | Reasoning |
| Context | 256K | 400K |
| Independent public score (not head-to-head) | 39.89 | 55.3 |
| Benchmarks Covered | 10 | 5 |
| Pricing (input/output) | $0.00 / $0.00 | $1.75 / $14.00 |

## Category Breakdown

### Agentic

- Winner: Insufficient shared evidence
- Gemma 4 31B public-lane score: 19.7 (Estimated · #109/128)
- GPT-5.2-Codex public-lane score: 40.8 (Estimated · #64/128)

| Benchmark | Gemma 4 31B | GPT-5.2-Codex | Winner |
|-----------|-----------|-----------|--------|
| Gert Labs | 35.26% | 51.79% | GPT-5.2-Codex |
| JobBench | Coming soon | 26.0% | Coming soon |

### Coding

- Winner: Insufficient shared evidence
- Gemma 4 31B public-lane score: 31.7 (Supported · #89/150)
- GPT-5.2-Codex public-lane score: 43.7 (Supported · #56/150)

| Benchmark | Gemma 4 31B | GPT-5.2-Codex | Winner |
|-----------|-----------|-----------|--------|
| LiveCodeBench v6 | 80.0% | Coming soon | Coming soon |
| SWE-Rebench | 41.6% | Coming soon | Coming soon |
| React Native Evals | 75.2% | Coming soon | Coming soon |
| Vibe Code Bench | Coming soon | 37.91% | Coming soon |
| LiveCodeBench (Vals) | Coming soon | 88.0% | Coming soon |
| SWE-bench (Vals) | Coming soon | 72.4% | Coming soon |

### Reasoning

- Winner: Insufficient shared evidence
- Gemma 4 31B public-lane score: 66.6 (Unranked · 3 rankable rows)
- GPT-5.2-Codex public-lane score: 82.4 (Unranked · 2 rankable rows)

| Benchmark | Gemma 4 31B | GPT-5.2-Codex | Winner |
|-----------|-----------|-----------|--------|
| MRCRv2 | 66.4% | Coming soon | Coming soon |

### Multimodal & Grounded

- Winner: Insufficient shared evidence
- Gemma 4 31B public-lane score: 74.3 (#26/54)
- GPT-5.2-Codex public-lane score: 76.9 (Unranked · 1 rankable row)

| Benchmark | Gemma 4 31B | GPT-5.2-Codex | Winner |
|-----------|-----------|-----------|--------|
| MMMU-Pro | 76.9% | Coming soon | Coming soon |

### Knowledge

- Winner: Insufficient shared evidence
- Gemma 4 31B public-lane score: 40.9 (Supported · #114/184)
- GPT-5.2-Codex public-lane score: 56.4 (Estimated · #54/184)

| Benchmark | Gemma 4 31B | GPT-5.2-Codex | Winner |
|-----------|-----------|-----------|--------|
| GPQA | 84.3% | Coming soon | Coming soon |
| MMLU-Pro | 85.2% | Coming soon | Coming soon |
| HLE | 26.5% | Coming soon | Coming soon |
| HLE w/o tools | 19.5% | Coming soon | Coming soon |

### Instruction Following

- Winner: Insufficient shared evidence
- Gemma 4 31B public-lane score: 92.9 (#15/148)
- GPT-5.2-Codex public-lane score: 93.8 (#4/148)

## FAQ

### Is there enough evidence to pick between Gemma 4 31B and GPT-5.2-Codex?

Not yet. The models share only 1 sourced benchmark row, so this mirror reports the available measurements and metadata without naming a broad winner.

### What can I compare safely on this page?

Published pricing, context windows, model type, and individual shared benchmark rows are directly comparable. Independent overall scores and non-overlapping benchmark coverage are labeled separately and should not be read as a controlled head-to-head result.

## Related Comparisons

- [Gemma 4 31B vs Gemma 4 26B A4B](/compare/gemma-4-26b-a4b-vs-gemma-4-31b)
- [GPT-5.2-Codex vs Gemma 4 26B A4B](/compare/gemma-4-26b-a4b-vs-gpt-5-2-codex)
- [Gemma 4 31B vs Gemma 4 12B](/compare/gemma-4-12b-vs-gemma-4-31b)
- [GPT-5.2-Codex vs Gemma 4 12B](/compare/gemma-4-12b-vs-gpt-5-2-codex)

## Explore More

- [Gemma 4 31B profile](/models/gemma-4-31b)
- [GPT-5.2-Codex profile](/models/gpt-5-2-codex)
- [Compare Pricing](/llm-pricing)
- [Alternative Finder](/tools/alternative-finder)
- [LLM Selector](/tools/llm-selector)
- [Overall Rankings](/best/overall)
