Claude Sonnet 5 vs Gemini 3.1 Pro
Claude Sonnet 5 (Anthropic) and Gemini 3.1 Pro (Google DeepMind) compared on benchmarks, pricing, context window, and use-case rankings.
- Claude Sonnet 5 leads on overall intelligence (ECI 156 vs 155).
- Claude Sonnet 5 ranks higher for coding (79th vs 59th percentile).
| Attribute | Claude Sonnet 5 | Gemini 3.1 Pro |
|---|---|---|
| Scores | ||
| Intelligence (ECI) | 156 | 155 |
| Coding | 79 | 59 |
| Math | 70 | 71 |
| Reasoning & Knowledge | 59 | 93 |
| Agentic & Tools | 64 | 79 |
| Specifications | ||
| Developer | Anthropic | Google DeepMind |
| Family | Claude | Gemini |
| Released | Jun 30, 2026 | Feb 19, 2026 |
| Parameters | — | — |
| Availability | API access | API access |
| Context window | 1M | — |
| Price — $/M input | $2.00 | — |
| Price — $/M output | $10.00 | — |
| Inputs | text, image, file | — |
| Outputs | text | — |
| Benchmarks | ||
| AIME 2024/2025 | 95% | 96% |
| APEX | 33% | 34% |
| GPQA Diamond | 91% | 94% |
| GSO (code optimization) | 37% | 23% |
| Humanity's Last Exam | 41% | 46% |
| SciCode | 54% | — |
| SimpleBench | 61% | 80% |
| SimpleQA Verified | 25% | 77% |
| WebDev Arena | 1544 | 1461 |
| WeirdML | 69% | 72% |
| ARC-AGI | — | 98% |
| ARC-AGI-2 | — | 77% |
| FrontierMath | — | 37% |
| FrontierMath Tier 4 | — | 17% |
| METR task horizon | — | 6.4 h |
| SWE-bench Verified | — | 76% |
| Terminal-Bench | — | 80% |
Use-case scores are 0–100 percentile composites across each area’s benchmarks, ranked against every model from the past year. Highlighted cells lead each row. Open a model for the full picture.
Frequently asked questions
Is Claude Sonnet 5 better than Gemini 3.1 Pro?
On Epoch AI's Capabilities Index, Claude Sonnet 5 scores higher (156) than Gemini 3.1 Pro (155). The right pick depends on your task — compare their coding, math, and reasoning scores in the table above.
Which is better for coding, Claude Sonnet 5 or Gemini 3.1 Pro?
Across coding benchmarks like SWE-bench Verified and Terminal-Bench, Claude Sonnet 5 ranks higher — 79th vs 59th percentile among the models tracked on Model Beat.
Want a different match-up? Open the compare tool to add or swap models.
More comparisons
Benchmarks & model data from Epoch AI (CC BY); pricing & specs from OpenRouter. ECI = Epoch Capabilities Index.