Claude Opus 5 vs Gemini 3.1 Pro Preview
Claude Opus 5 leads Gemini 3.1 Pro Preview on coding, 83.0 to 32.3 on the Vibe Coding Index, and Gemini 3.1 Pro Preview costs 2.1x less per output token ($12.00 vs $25.00 per million). Updated October 21, 2026; 115 benchmarks have a result for both.
Claude Opus 5 or Gemini 3.1 Pro Preview: which to pick
Pick Claude Opus 5 for coding: it scores 83.0 on the Vibe Coding Index against 32.3 for Gemini 3.1 Pro Preview.
Pick Gemini 3.1 Pro Preview for output tokens 2.1x cheaper ($12.00 vs $25.00 per million) and a lower cost per solved task ($0.99 against $1.33).
- Shared results
- 115
- Claude Opus 5 only
- 16
- Gemini 3.1 Pro Preview only
- 18
- Like-for-like categories
- 8 of 9
Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.
Which one for your work
Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.
Coding
Vibe Coding Index, six public coding benchmarks
Claude Opus 5
Claude Opus 5 scores 83.0 against 32.3.
6 and 4 benchmarks behind the scores
Intelligence
AA Intelligence Index
Claude Opus 5
Claude Opus 5 leads, 50.8 against 29.7.
Same board, both measured
Agentic work
AA Agentic Index
Claude Opus 5
Claude Opus 5 leads, 56.5 against 8.2.
Same board, both measured
Reasoning
GPQA Diamond
Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview leads, 95.5% against 93.4%.
Same board, both measured
Math
AIME
No call
Only Gemini 3.1 Pro Preview has a AIME result, 98.1%.
Directional only
Knowledge
MMLU Pro
Claude Opus 5
Claude Opus 5 leads, 91.6% against 91.0%.
Same board, both measured
Web design
Design Arena: websites
Claude Opus 5
Claude Opus 5 leads, 1309 against 1234.
Same board, both measured
Long documents
Listed context window
Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview takes 1.05M tokens against 1M.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemini 3.1 Pro Preview
Claude Opus 5 $0.018, Gemini 3.1 Pro Preview $0.0080 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
Gemini 3.1 Pro Preview
Claude Opus 5 $1.33, Gemini 3.1 Pro Preview $0.99.
Published attempt cost and pass rate
At a glance
- Coding index
- Claude Opus 5 83.0 from 6 benchmarks, Gemini 3.1 Pro Preview 32.3 from 4 benchmarks.
- Widest category
- Math, 27.9 points apart on average over 6 shared benchmarks.
- Widest single gap
- ProofBench: Claude Opus 5 99.0% against Gemini 3.1 Pro Preview 26.0%, 73.0 points apart on a 0 to 100 scale.
- Output price
- Claude Opus 5 $25.00 against Gemini 3.1 Pro Preview $12.00 per million output tokens, 2.1x apart.
- Context window
- Claude Opus 5 takes 1M tokens, Gemini 3.1 Pro Preview 1.05M.
Benchmark by benchmark
First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.
| Category | Claude Opus 5 | Bars | Gemini 3.1 Pro Preview | Ties |
|---|---|---|---|---|
| Coding | 18 | 2 | ||
| Intelligence | 1 | 0 | ||
| Agentic work | 20 | 0 | ||
| Reasoning | 12 | 5 | ||
| Math | 6 | 0 | ||
| Knowledge | 9 | 2 | ||
| Web design | 8 | 0 | ||
| General | 29 | 2 | 1 tie | |
| All shared boards | 103 | 11 | 1 tie |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index182
| Benchmark | Claude Opus 5 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| LiveBench coding | 90.8% | Not measured | Only Claude Opus 5 measured |
| LMArena WebDev | 1689 | 1447 | Claude Opus 5 |
| AA Coding Index | 78.0 | 68.8 | Claude Opus 5 |
| LiveCodeBench (Vals AI) | 89.0% | 88.5% | Claude Opus 5 |
| SWE-bench Verified (Vals AI) | 97.0% | 78.8% | Claude Opus 5 |
| Terminal-Bench 4 (Vals AI) | 53.5% | 2.5% | Claude Opus 5 |
| Vibe Code Bench (Vals AI) | 88.4% | 32.0% | Claude Opus 5 |
| Code migration (Vals AI) | 57.5% | 17.3% | Claude Opus 5 |
| ProgramBench (Vals AI) | 3.0% | 0.0% | Claude Opus 5 |
| IOI (Vals AI) | 84.3% | 51.8% | Claude Opus 5 |
| Terminal-Bench 2.1 (Vals AI) | 84.6% | 70.8% | Claude Opus 5 |
| Vibe Code Bench 1-100 (Vals AI) | 28.5% | 6.7% | Claude Opus 5 |
| SkillsBench (Vals AI) | 60.4% | Not measured | Only Claude Opus 5 measured |
| CyberBench (Vals AI) | 65.4% | Not measured | Only Claude Opus 5 measured |
| SciCode | 56.4% | 58.7% | Gemini 3.1 Pro Preview |
| Terminal-Bench Hard (Artificial Analysis run) | Not measured | 53.8% | Only Gemini 3.1 Pro Preview measured |
| Terminal-Bench | Not measured | 80.2% | Only Gemini 3.1 Pro Preview measured |
| FrontierCode | 53.4% | Not measured | Only Claude Opus 5 measured |
| FrontierSWE | 52.0% | Not measured | Only Claude Opus 5 measured |
| GSO-Bench | Not measured | 22.6% | Only Gemini 3.1 Pro Preview measured |
| WeirdML | 91.8% | 72.1% | Claude Opus 5 |
| MirrorCode | Not measured | 8.9% | Only Gemini 3.1 Pro Preview measured |
| ALE-Bench | 2164.6 | 1160.6 | Claude Opus 5 |
| LMArena Text: coding | 1533 | 1484 | Claude Opus 5 |
| LMArena Text: software and IT | 1527 | 1487 | Claude Opus 5 |
| LMArena WebDev: React | 1711 | 1438 | Claude Opus 5 |
| LMArena WebDev: HTML | 1680 | 1490 | Claude Opus 5 |
| LMArena WebDev: from an image | 1662 | 1481 | Claude Opus 5 |
| SciCode | 13.8% | 14.3% | Gemini 3.1 Pro Preview |
| Neither model has a result on the other 10 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Claude Opus 5 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| AA Intelligence Index | 50.8 | 29.7 | Claude Opus 5 |
| Epoch Capabilities Index | 163.9 | Not measured | Only Claude Opus 5 measured |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index200
| Benchmark | Claude Opus 5 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| AA Agentic Index | 56.5 | 8.2 | Claude Opus 5 |
| Design Arena: agents building web apps | 1266 | 1125 | Claude Opus 5 |
| Design Arena: agents building full-stack apps | 1306 | 1068 | Claude Opus 5 |
| Design Arena: agents building mobile apps | 1348 | 1093 | Claude Opus 5 |
| Design Arena: agents building Android apps | 1254 | 1048 | Claude Opus 5 |
| Design Arena: agents building Godot games | 1279 | 1236 | Claude Opus 5 |
| Design Arena: agents building games | 1261 | 1114 | Claude Opus 5 |
| Design Arena: HTML slides | Not measured | 1153 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: PowerPoint slides | 1265 | 1066 | Claude Opus 5 |
| LiveBench research | 88.9% | Not measured | Only Claude Opus 5 measured |
| LiveBench browser | 84.0% | Not measured | Only Claude Opus 5 measured |
| LiveBench long agentic | 62.1% | Not measured | Only Claude Opus 5 measured |
| SREBench (Vals AI) | 12.2% | 0.0% | Claude Opus 5 |
| Finance Agent (Vals AI) | 58.6% | 43.0% | Claude Opus 5 |
| Tax Agent Bench (Vals AI) | 45.5% | 9.3% | Claude Opus 5 |
| Legal Research Bench (Vals AI) | 55.3% | 20.7% | Claude Opus 5 |
| Excel Modeling Benchmark (Vals AI) | 73.6% | 52.6% | Claude Opus 5 |
| BioMysteryBench (Vals AI) | 79.3% | 60.0% | Claude Opus 5 |
| Terminal-Bench-Science (Vals AI) | 27.1% | 1.4% | Claude Opus 5 |
| Vals Science Index | 47.9% | 27.4% | Claude Opus 5 |
| Time Horizon Index (Vals AI) | 18.8% | Not measured | Only Claude Opus 5 measured |
| CUA-bench (Vals AI) | 9.0% | Not measured | Only Claude Opus 5 measured |
| τ²-Bench Telecom | Not measured | 95.6% | Only Gemini 3.1 Pro Preview measured |
| APEX-Agents | 65.8% | 35.1% | Claude Opus 5 |
| METR time horizons | Not measured | 77.0% | Only Gemini 3.1 Pro Preview measured |
| OSWorld 2.0 | 31.4% | Not measured | Only Claude Opus 5 measured |
| BALROG | 63.4% | 57.0% | Claude Opus 5 |
| DeepResearch Bench | Not measured | 47.8% | Only Gemini 3.1 Pro Preview measured |
| PostTrainBench | 35.0% | 22.0% | Claude Opus 5 |
| Vending-Bench 2 | $11,182 | $911 | Claude Opus 5 |
| LMArena Search | 1242 | Not measured | Only Claude Opus 5 measured |
| Neither model has a result on the other 10 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index125
| Benchmark | Claude Opus 5 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| GPQA Diamond | 93.4% | 95.5% | Gemini 3.1 Pro Preview |
| LiveBench reasoning | 91.2% | Not measured | Only Claude Opus 5 measured |
| MysteryMechanism (Vals AI) | 37.4% | 20.7% | Claude Opus 5 |
| MMMU Pro (Vals AI) | 89.9% | 88.2% | Claude Opus 5 |
| GPQA Diamond (Artificial Analysis run) | 93.7% | 94.1% | Gemini 3.1 Pro Preview |
| Humanity's Last Exam (Artificial Analysis run) | 54.9% | 47.0% | Claude Opus 5 |
| GPQA Diamond (Epoch AI run) | 93.9% | 94.4% | Gemini 3.1 Pro Preview |
| ARC-AGI | 97.5% | 98.0% | Gemini 3.1 Pro Preview |
| ARC-AGI-2 | 90.4% | 77.1% | Claude Opus 5 |
| SimpleBench | 80.6% | 79.6% | Claude Opus 5 |
| Chess puzzles | 43.0% | 51.0% | Gemini 3.1 Pro Preview |
| Mystery game puzzles | 59.0% | 34.0% | Claude Opus 5 |
| EBR-bench | 45.7% | 14.3% | Claude Opus 5 |
| LMArena Text: hard prompts | 1527 | 1485 | Claude Opus 5 |
| LMArena Text: expert | 1554 | 1483 | Claude Opus 5 |
| LMArena Text: hard prompts in English | 1523 | 1480 | Claude Opus 5 |
| LMArena Vision: diagrams | 1348 | 1311 | Claude Opus 5 |
| LMArena Vision: homework | 1338 | 1316 | Claude Opus 5 |
| Neither model has a result on the other 4 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index60
| Benchmark | Claude Opus 5 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| AIME | Not measured | 98.1% | Only Gemini 3.1 Pro Preview measured |
| OTIS Mock AIME | 98.9% | 95.6% | Claude Opus 5 |
| FrontierMath, tiers 1 to 3 | 85.6% | 59.6% | Claude Opus 5 |
| FrontierMath, tier 4 | 73.2% | 26.8% | Claude Opus 5 |
| ProofBench | 99.0% | 26.0% | Claude Opus 5 |
| LMArena Text: math | 1533 | 1486 | Claude Opus 5 |
| LMArena Text: mathematical work | 1544 | 1478 | Claude Opus 5 |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index92
| Benchmark | Claude Opus 5 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| MMLU Pro | 91.6% | 91.0% | Claude Opus 5 |
| LegalBench (Vals AI) | 87.0% | 87.4% | Gemini 3.1 Pro Preview |
| CaseLaw (Vals AI) | Not measured | 64.8% | Only Gemini 3.1 Pro Preview measured |
| CorpFin (Vals AI) | 73.2% | 64.5% | Claude Opus 5 |
| TaxEval (Vals AI) | 75.1% | 72.9% | Claude Opus 5 |
| MortgageTax (Vals AI) | 72.1% | 69.4% | Claude Opus 5 |
| MedQA (Vals AI) | Not measured | 96.4% | Only Gemini 3.1 Pro Preview measured |
| MedCode (Vals AI) | 63.6% | 59.1% | Claude Opus 5 |
| SimpleQA Verified | 59.9% | 73.5% | Gemini 3.1 Pro Preview |
| LMArena Text: science | 1531 | 1497 | Claude Opus 5 |
| LMArena Text: medicine and healthcare | 1525 | 1486 | Claude Opus 5 |
| LMArena Text: legal and government | 1530 | 1487 | Claude Opus 5 |
| LMArena Text: business and finance | 1501 | 1459 | Claude Opus 5 |
| FACTS Benchmark Suite | Not measured | 67.4% | Only Gemini 3.1 Pro Preview measured |
| Neither model has a result on the other 4 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index80
| Benchmark | Claude Opus 5 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| Design Arena: websites | 1309 | 1234 | Claude Opus 5 |
| Design Arena: UI components | 1349 | 1227 | Claude Opus 5 |
| Design Arena: game dev | 1338 | 1203 | Claude Opus 5 |
| Design Arena: data viz | 1329 | 1209 | Claude Opus 5 |
| Design Arena: 3D | 1335 | 1234 | Claude Opus 5 |
| Design Arena: all code categories | 1324 | 1231 | Claude Opus 5 |
| Design Arena: SVG | 1311 | 1285 | Claude Opus 5 |
| Design Arena: ASCII art | 1352 | 1270 | Claude Opus 5 |
| LiveBench design | 83.0% | Not measured | Only Claude Opus 5 measured |
GeneralLike-for-likePublic boards, shown as published, kept out of the index292
| Benchmark | Claude Opus 5 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| LiveBench data analysis | 74.6% | Not measured | Only Claude Opus 5 measured |
| Public Benefits Bench (Vals AI) | 76.9% | 53.8% | Claude Opus 5 |
| SAGE (Vals AI) | 49.4% | 48.7% | Claude Opus 5 |
| MedScribe (Vals AI) | 91.0% | 76.1% | Claude Opus 5 |
| Vals Multimodal Index | 73.9% | 56.1% | Claude Opus 5 |
| IFBench | Not measured | 77.1% | Only Gemini 3.1 Pro Preview measured |
| Long context reasoning (AA-LCR) | 82.0% | 82.0% | Tie |
| DTBench | 97.9% | 97.1% | Claude Opus 5 |
| LMCA | 64.5% | 53.8% | Claude Opus 5 |
| CL-bench | Not measured | 20.8% | Only Gemini 3.1 Pro Preview measured |
| Furniture assembly | 60.8% | 26.7% | Claude Opus 5 |
| ExploitBench | Not measured | 26.1% | Only Gemini 3.1 Pro Preview measured |
| CL-bench Life | Not measured | 16.9% | Only Gemini 3.1 Pro Preview measured |
| LMArena Text | 1509 | 1480 | Claude Opus 5 |
| LMArena Text: instruction following | 1518 | 1466 | Claude Opus 5 |
| LMArena Text: creative writing | 1493 | 1482 | Claude Opus 5 |
| LMArena Vision | 1320 | 1296 | Claude Opus 5 |
| LMArena Text: English | 1508 | 1478 | Claude Opus 5 |
| LMArena Text: non-English | 1502 | 1476 | Claude Opus 5 |
| LMArena Text: Chinese | 1573 | 1527 | Claude Opus 5 |
| LMArena Text: German | 1527 | 1490 | Claude Opus 5 |
| LMArena Text: Japanese | 1520 | 1491 | Claude Opus 5 |
| LMArena Text: Korean | 1517 | 1455 | Claude Opus 5 |
| LMArena Text: French | 1519 | 1487 | Claude Opus 5 |
| LMArena Text: Spanish | 1523 | 1481 | Claude Opus 5 |
| LMArena Text: Russian | 1507 | 1497 | Claude Opus 5 |
| LMArena Text: Polish | 1522 | 1498 | Claude Opus 5 |
| LMArena Text: multi-turn | 1500 | 1487 | Claude Opus 5 |
| LMArena Text: longer queries | 1517 | 1482 | Claude Opus 5 |
| LMArena Text: writing and language | 1499 | 1481 | Claude Opus 5 |
| LMArena Text: entertainment and media | 1481 | 1465 | Claude Opus 5 |
| LMArena Vision: English | 1315 | 1287 | Claude Opus 5 |
| LMArena Vision: Chinese | 1400 | 1364 | Claude Opus 5 |
| LMArena Vision: reading text | 1329 | 1304 | Claude Opus 5 |
| LMArena Vision: humor | 1293 | 1322 | Gemini 3.1 Pro Preview |
| LMArena Vision: captioning | Not measured | 1345 | Only Gemini 3.1 Pro Preview measured |
| LMArena Vision: recognizing things | Not measured | 1330 | Only Gemini 3.1 Pro Preview measured |
| LMArena Vision: creative writing | 1313 | 1324 | Gemini 3.1 Pro Preview |
| LMArena Document | 1516 | 1444 | Claude Opus 5 |
| Neither model has a result on the other 7 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Opus 5 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| Neither model has a result on 5 boards here | |||
What each workload costs
Three fixed token mixes at each model's listed price, so per-token rates become a bill.
Chat turn
1K input + 500 output tokens
Gemini 3.1 Pro Preview costs less
Repository review
50K input + 3K output tokens
Gemini 3.1 Pro Preview costs less
Agent loop
200K input + 10K output tokens
Gemini 3.1 Pro Preview costs less
Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.
Specification differences
The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.
| Specification | Anthropic Claude Opus 5 | Google Gemini 3.1 Pro Preview |
|---|---|---|
| Maker | Anthropic | |
| Weights | No public weights listed | No public weights listed |
| Released | July 24, 2026 | February 19, 2026 |
| Context window | 1M | 1.05M |
| Input $/Mtok | $5.00 | $2.00 |
| Output $/Mtok | $25.00 | $12.00 |
| Coding index | 83.0 | 32.3 |
| Independent measurements behind it | 6 | 4 |
| Cost per solved task | $1.33 | $0.99 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Opus 5 better than Gemini 3.1 Pro Preview for coding?
Pick Claude Opus 5 for coding: it scores 83.0 on the Vibe Coding Index against 32.3 for Gemini 3.1 Pro Preview. Pick Gemini 3.1 Pro Preview for output tokens 2.1x cheaper ($12.00 vs $25.00 per million) and a lower cost per solved task ($0.99 against $1.33).
Which is cheaper, Claude Opus 5 or Gemini 3.1 Pro Preview?
Claude Opus 5 costs $5.00 per million input tokens and $25.00 per million output tokens; Gemini 3.1 Pro Preview costs $2.00 and $12.00. Per solved SWE-bench Verified task, Claude Opus 5 costs $1.33 and Gemini 3.1 Pro Preview $0.99.
Which has the bigger context window, Claude Opus 5 or Gemini 3.1 Pro Preview?
Gemini 3.1 Pro Preview, with 1.05M tokens against 1M.
How many benchmarks is the Claude Opus 5 vs Gemini 3.1 Pro Preview comparison based on?
115 benchmarks have a result for both models as of October 21, 2026. Claude Opus 5's coding index rests on 6 independent benchmarks and Gemini 3.1 Pro Preview's on 4. Where only one model has a result, the page says so instead of naming a winner.