Gemini 2.5 Flash vs Gemini 3.1 Pro Preview
Updated October 21, 2026. 63 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.
Decision reading
Pick Gemini 3.1 Pro Preview for coding: it scores 35.3 on the Vibe Coding Index against 28.7 for Gemini 2.5 Flash.
Pick Gemini 2.5 Flash when output tokens cost 4.8x less, or when a solved task costs $0.466 against $0.99.
- Shared results
- 63
- Gemini 2.5 Flash only
- 6
- Gemini 3.1 Pro Preview only
- 68
- Like-for-like categories
- 8 of 9
Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.
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, four public coding benchmarks
Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview scores 35.3 against 28.7.
One benchmark behind each score
Intelligence
AA Intelligence Index
Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview leads, 29.7 against 15.5.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only Gemini 3.1 Pro Preview has a AA Agentic Index result, 8.2.
Directional only
Reasoning
GPQA Diamond
No call
Only Gemini 3.1 Pro Preview has a GPQA Diamond result, 95.5%.
Directional only
Math
AIME
No call
Only Gemini 3.1 Pro Preview has a AIME result, 98.1%.
Directional only
Knowledge
MMLU Pro
No call
Only Gemini 3.1 Pro Preview has a MMLU Pro result, 91.0%.
Directional only
Web design
Design Arena: websites
Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview leads, 1234 against 1074.
Same board, both measured
Long documents
Listed context window
No call
Both take 1.05M tokens.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemini 2.5 Flash
Gemini 2.5 Flash $0.0015, Gemini 3.1 Pro Preview $0.0080 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
Gemini 2.5 Flash
Gemini 2.5 Flash $0.466, Gemini 3.1 Pro Preview $0.99.
Published attempt cost and pass rate
At a glance
- Coding index
- Gemini 2.5 Flash 28.7 from 1 benchmark, Gemini 3.1 Pro Preview 35.3 from 1 benchmark.
- Widest category
- Coding, 30.9 points apart on average over 4 shared benchmarks.
- Widest single gap
- ARC-AGI-2: Gemini 2.5 Flash 2.5% against Gemini 3.1 Pro Preview 77.1%, 74.6 points apart on a 0 to 100 scale.
- Output price
- Gemini 2.5 Flash $2.50 against Gemini 3.1 Pro Preview $12.00 per million output tokens, 4.8x apart.
- Context window
- Both take 1.05M tokens.
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 | Gemini 2.5 Flash | Bars | Gemini 3.1 Pro Preview | Ties |
|---|---|---|---|---|
| Coding | 0 | 4 | ||
| Intelligence | 0 | 1 | ||
| Agentic work | 0 | 3 | ||
| Reasoning | 0 | 10 | ||
| Math | 0 | 2 | ||
| Knowledge | 0 | 5 | ||
| Web design | 0 | 7 | ||
| General | 1 | 30 | ||
| All shared boards | 1 | 62 |
CodingLike-for-likeFour of these boards feed the Vibe Coding Index04
| Benchmark | Gemini 2.5 Flash | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| SWE-bench Verified | 28.7% | Not measured | Only Gemini 2.5 Flash measured |
| LMArena WebDev | Not measured | 1447 | Only Gemini 3.1 Pro Preview measured |
| AA Coding Index | Not measured | 68.8 | Only Gemini 3.1 Pro Preview measured |
| LiveCodeBench (Vals AI) | Not measured | 88.5% | Only Gemini 3.1 Pro Preview measured |
| SWE-bench Verified (Vals AI) | Not measured | 78.8% | Only Gemini 3.1 Pro Preview measured |
| Terminal-Bench 4 (Vals AI) | Not measured | 2.5% | Only Gemini 3.1 Pro Preview measured |
| Vibe Code Bench (Vals AI) | Not measured | 32.0% | Only Gemini 3.1 Pro Preview measured |
| Code migration (Vals AI) | Not measured | 17.3% | Only Gemini 3.1 Pro Preview measured |
| ProgramBench (Vals AI) | Not measured | 0.0% | Only Gemini 3.1 Pro Preview measured |
| IOI (Vals AI) | Not measured | 51.8% | Only Gemini 3.1 Pro Preview measured |
| Terminal-Bench 2.1 (Vals AI) | Not measured | 70.8% | Only Gemini 3.1 Pro Preview measured |
| Vibe Code Bench 1-100 (Vals AI) | Not measured | 6.7% | Only Gemini 3.1 Pro Preview measured |
| LiveCodeBench (Artificial Analysis run) | 69.5% | Not measured | Only Gemini 2.5 Flash measured |
| SciCode | Not measured | 58.7% | Only Gemini 3.1 Pro Preview measured |
| Terminal-Bench Hard (Artificial Analysis run) | 13.6% | 53.8% | Gemini 3.1 Pro Preview |
| Terminal-Bench | 17.1% | 80.2% | Gemini 3.1 Pro Preview |
| GSO-Bench | Not measured | 22.6% | Only Gemini 3.1 Pro Preview measured |
| WeirdML | Not measured | 72.1% | Only Gemini 3.1 Pro Preview measured |
| MirrorCode | Not measured | 8.9% | Only Gemini 3.1 Pro Preview measured |
| ALE-Bench | Not measured | 1160.6 | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: coding | 1423 | 1484 | Gemini 3.1 Pro Preview |
| LMArena Text: software and IT | 1425 | 1487 | Gemini 3.1 Pro Preview |
| LMArena WebDev: React | Not measured | 1438 | Only Gemini 3.1 Pro Preview measured |
| LMArena WebDev: HTML | Not measured | 1490 | Only Gemini 3.1 Pro Preview measured |
| LMArena WebDev: from an image | Not measured | 1481 | Only Gemini 3.1 Pro Preview measured |
| Neither model has a result on the other 13 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
| Benchmark | Gemini 2.5 Flash | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| AA Intelligence Index | 15.5 | 29.7 | Gemini 3.1 Pro Preview |
| Epoch Capabilities Index | 142.9 | Not measured | Only Gemini 2.5 Flash measured |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index03
| Benchmark | Gemini 2.5 Flash | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| AA Agentic Index | Not measured | 8.2 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: agents building web apps | Not measured | 1125 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: agents building full-stack apps | Not measured | 1068 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: agents building mobile apps | Not measured | 1094 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: agents building Android apps | Not measured | 1055 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: agents building Godot games | Not measured | 1236 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: agents building games | Not measured | 1114 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: HTML slides | Not measured | 1153 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: PowerPoint slides | Not measured | 1064 | Only Gemini 3.1 Pro Preview measured |
| SREBench (Vals AI) | Not measured | 0.0% | Only Gemini 3.1 Pro Preview measured |
| Finance Agent (Vals AI) | Not measured | 43.0% | Only Gemini 3.1 Pro Preview measured |
| Tax Agent Bench (Vals AI) | Not measured | 9.3% | Only Gemini 3.1 Pro Preview measured |
| Legal Research Bench (Vals AI) | Not measured | 20.7% | Only Gemini 3.1 Pro Preview measured |
| Excel Modeling Benchmark (Vals AI) | Not measured | 52.6% | Only Gemini 3.1 Pro Preview measured |
| BioMysteryBench (Vals AI) | Not measured | 60.0% | Only Gemini 3.1 Pro Preview measured |
| Terminal-Bench-Science (Vals AI) | Not measured | 1.4% | Only Gemini 3.1 Pro Preview measured |
| Vals Science Index | Not measured | 27.4% | Only Gemini 3.1 Pro Preview measured |
| τ²-Bench Telecom | 31.6% | 95.6% | Gemini 3.1 Pro Preview |
| APEX-Agents | Not measured | 35.1% | Only Gemini 3.1 Pro Preview measured |
| METR time horizons | Not measured | 77.0% | Only Gemini 3.1 Pro Preview measured |
| BALROG | 33.5% | 57.0% | Gemini 3.1 Pro Preview |
| DeepResearch Bench | Not measured | 47.8% | Only Gemini 3.1 Pro Preview measured |
| PostTrainBench | Not measured | 22.0% | Only Gemini 3.1 Pro Preview measured |
| Vending-Bench 2 | $549 | $911 | Gemini 3.1 Pro Preview |
| Neither model has a result on the other 15 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index010
| Benchmark | Gemini 2.5 Flash | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| GPQA Diamond | Not measured | 95.5% | Only Gemini 3.1 Pro Preview measured |
| MysteryMechanism (Vals AI) | Not measured | 20.7% | Only Gemini 3.1 Pro Preview measured |
| MMMU Pro (Vals AI) | Not measured | 88.2% | Only Gemini 3.1 Pro Preview measured |
| GPQA Diamond (Artificial Analysis run) | 79.0% | 94.1% | Gemini 3.1 Pro Preview |
| Humanity's Last Exam (Artificial Analysis run) | 12.1% | 47.0% | Gemini 3.1 Pro Preview |
| GPQA Diamond (Epoch AI run) | Not measured | 94.4% | Only Gemini 3.1 Pro Preview measured |
| ARC-AGI | 33.3% | 98.0% | Gemini 3.1 Pro Preview |
| ARC-AGI-2 | 2.5% | 77.1% | Gemini 3.1 Pro Preview |
| SimpleBench | 41.2% | 79.6% | Gemini 3.1 Pro Preview |
| Chess puzzles | Not measured | 51.0% | Only Gemini 3.1 Pro Preview measured |
| Mystery game puzzles | Not measured | 34.0% | Only Gemini 3.1 Pro Preview measured |
| EBR-bench | Not measured | 14.3% | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: hard prompts | 1422 | 1485 | Gemini 3.1 Pro Preview |
| LMArena Text: expert | 1426 | 1483 | Gemini 3.1 Pro Preview |
| LMArena Text: hard prompts in English | 1420 | 1480 | Gemini 3.1 Pro Preview |
| LMArena Vision: diagrams | 1245 | 1311 | Gemini 3.1 Pro Preview |
| LMArena Vision: homework | 1244 | 1316 | Gemini 3.1 Pro Preview |
| Neither model has a result on the other 4 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | Gemini 2.5 Flash | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| AIME | Not measured | 98.1% | Only Gemini 3.1 Pro Preview measured |
| AA Math Index | 73.3 | Not measured | Only Gemini 2.5 Flash measured |
| AIME 2025 (Artificial Analysis run) | 73.3% | Not measured | Only Gemini 2.5 Flash measured |
| OTIS Mock AIME | Not measured | 95.6% | Only Gemini 3.1 Pro Preview measured |
| FrontierMath, tiers 1 to 3 | Not measured | 59.6% | Only Gemini 3.1 Pro Preview measured |
| FrontierMath, tier 4 | Not measured | 26.8% | Only Gemini 3.1 Pro Preview measured |
| ProofBench | Not measured | 26.0% | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: math | 1411 | 1486 | Gemini 3.1 Pro Preview |
| LMArena Text: mathematical work | 1422 | 1478 | Gemini 3.1 Pro Preview |
| Neither model has a result on the other 4 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index05
| Benchmark | Gemini 2.5 Flash | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| MMLU Pro | Not measured | 91.0% | Only Gemini 3.1 Pro Preview measured |
| LegalBench (Vals AI) | Not measured | 87.4% | Only Gemini 3.1 Pro Preview measured |
| CaseLaw (Vals AI) | Not measured | 64.8% | Only Gemini 3.1 Pro Preview measured |
| CorpFin (Vals AI) | Not measured | 64.5% | Only Gemini 3.1 Pro Preview measured |
| TaxEval (Vals AI) | Not measured | 72.9% | Only Gemini 3.1 Pro Preview measured |
| MortgageTax (Vals AI) | Not measured | 69.4% | Only Gemini 3.1 Pro Preview measured |
| MedQA (Vals AI) | Not measured | 96.4% | Only Gemini 3.1 Pro Preview measured |
| MedCode (Vals AI) | 40.4% | 59.1% | Gemini 3.1 Pro Preview |
| MMLU Pro (Artificial Analysis run) | 83.2% | Not measured | Only Gemini 2.5 Flash measured |
| SimpleQA Verified | Not measured | 73.5% | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: science | 1433 | 1497 | Gemini 3.1 Pro Preview |
| LMArena Text: medicine and healthcare | 1428 | 1486 | Gemini 3.1 Pro Preview |
| LMArena Text: legal and government | 1430 | 1487 | Gemini 3.1 Pro Preview |
| LMArena Text: business and finance | 1404 | 1459 | Gemini 3.1 Pro Preview |
| Neither model has a result on the other 3 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index07
| Benchmark | Gemini 2.5 Flash | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| Design Arena: websites | 1074 | 1234 | Gemini 3.1 Pro Preview |
| Design Arena: UI components | 1005 | 1226 | Gemini 3.1 Pro Preview |
| Design Arena: game dev | 1005 | 1203 | Gemini 3.1 Pro Preview |
| Design Arena: data viz | 1060 | 1209 | Gemini 3.1 Pro Preview |
| Design Arena: 3D | 1021 | 1234 | Gemini 3.1 Pro Preview |
| Design Arena: all code categories | 1059 | 1231 | Gemini 3.1 Pro Preview |
| Design Arena: SVG | 1018 | 1285 | Gemini 3.1 Pro Preview |
| Design Arena: ASCII art | Not measured | 1270 | Only Gemini 3.1 Pro Preview measured |
| Neither model has a result on the other 1 board here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index130
| Benchmark | Gemini 2.5 Flash | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| Public Benefits Bench (Vals AI) | Not measured | 53.8% | Only Gemini 3.1 Pro Preview measured |
| SAGE (Vals AI) | 44.8% | 48.7% | Gemini 3.1 Pro Preview |
| MedScribe (Vals AI) | 83.0% | 76.1% | Gemini 2.5 Flash |
| Vals Multimodal Index | Not measured | 56.1% | Only Gemini 3.1 Pro Preview measured |
| IFBench | 50.3% | 77.1% | Gemini 3.1 Pro Preview |
| Long context reasoning (AA-LCR) | 65.3% | 82.0% | Gemini 3.1 Pro Preview |
| DTBench | 76.5% | 97.1% | Gemini 3.1 Pro Preview |
| LMCA | 27.5% | 53.8% | Gemini 3.1 Pro Preview |
| CL-bench | Not measured | 20.8% | Only Gemini 3.1 Pro Preview measured |
| Furniture assembly | Not measured | 26.7% | Only Gemini 3.1 Pro Preview measured |
| 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 | 1417 | 1480 | Gemini 3.1 Pro Preview |
| LMArena Text: instruction following | 1405 | 1466 | Gemini 3.1 Pro Preview |
| LMArena Text: creative writing | 1400 | 1482 | Gemini 3.1 Pro Preview |
| LMArena Vision | 1235 | 1296 | Gemini 3.1 Pro Preview |
| LMArena Text: English | 1418 | 1478 | Gemini 3.1 Pro Preview |
| LMArena Text: non-English | 1409 | 1476 | Gemini 3.1 Pro Preview |
| LMArena Text: Chinese | 1449 | 1527 | Gemini 3.1 Pro Preview |
| LMArena Text: German | 1417 | 1490 | Gemini 3.1 Pro Preview |
| LMArena Text: Japanese | 1396 | 1491 | Gemini 3.1 Pro Preview |
| LMArena Text: Korean | 1385 | 1455 | Gemini 3.1 Pro Preview |
| LMArena Text: French | 1432 | 1487 | Gemini 3.1 Pro Preview |
| LMArena Text: Spanish | 1422 | 1481 | Gemini 3.1 Pro Preview |
| LMArena Text: Russian | 1415 | 1497 | Gemini 3.1 Pro Preview |
| LMArena Text: Polish | 1413 | 1498 | Gemini 3.1 Pro Preview |
| LMArena Text: multi-turn | 1408 | 1487 | Gemini 3.1 Pro Preview |
| LMArena Text: longer queries | 1419 | 1482 | Gemini 3.1 Pro Preview |
| LMArena Text: writing and language | 1405 | 1481 | Gemini 3.1 Pro Preview |
| LMArena Text: entertainment and media | 1393 | 1465 | Gemini 3.1 Pro Preview |
| LMArena Vision: English | 1239 | 1287 | Gemini 3.1 Pro Preview |
| LMArena Vision: Chinese | 1284 | 1364 | Gemini 3.1 Pro Preview |
| LMArena Vision: reading text | 1237 | 1304 | Gemini 3.1 Pro Preview |
| LMArena Vision: humor | 1225 | 1322 | Gemini 3.1 Pro Preview |
| LMArena Vision: captioning | 1277 | 1345 | Gemini 3.1 Pro Preview |
| LMArena Vision: recognizing things | 1252 | 1330 | Gemini 3.1 Pro Preview |
| LMArena Vision: creative writing | 1241 | 1324 | Gemini 3.1 Pro Preview |
| LMArena Document | Not measured | 1444 | Only Gemini 3.1 Pro Preview measured |
| Neither model has a result on the other 8 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Gemini 2.5 Flash | 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 2.5 Flash costs less
Repository review
50K input + 3K output tokens
Gemini 2.5 Flash costs less
Agent loop
200K input + 10K output tokens
Gemini 2.5 Flash 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 | Google Gemini 2.5 Flash | Google Gemini 3.1 Pro Preview |
|---|---|---|
| Maker | ||
| Weights | No public weights listed | No public weights listed |
| Released | June 17, 2025 | February 19, 2026 |
| Context window | 1.05M | 1.05M |
| Input $/Mtok | $0.30 | $2.00 |
| Output $/Mtok | $2.50 | $12.00 |
| Coding index | 28.7 | 35.3 |
| Independent measurements behind it | 1 | 1 |
| Cost per solved task | $0.466 | $0.99 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Gemini 2.5 Flash better than Gemini 3.1 Pro Preview for coding?
Pick Gemini 3.1 Pro Preview for coding: it scores 35.3 on the Vibe Coding Index against 28.7 for Gemini 2.5 Flash. Pick Gemini 2.5 Flash when output tokens cost 4.8x less, or when a solved task costs $0.466 against $0.99.
Which is cheaper, Gemini 2.5 Flash or Gemini 3.1 Pro Preview?
Gemini 2.5 Flash costs $0.30 per million input tokens and $2.50 per million output tokens; Gemini 3.1 Pro Preview costs $2.00 and $12.00. Per solved SWE-bench Verified task, Gemini 2.5 Flash costs $0.466 and Gemini 3.1 Pro Preview $0.99.
Which has the bigger context window, Gemini 2.5 Flash or Gemini 3.1 Pro Preview?
Neither: both take 1.05M tokens.
How many benchmarks is the Gemini 2.5 Flash vs Gemini 3.1 Pro Preview comparison based on?
63 benchmarks have a result for both models as of October 21, 2026. Gemini 2.5 Flash's coding index rests on 1 independent benchmark and Gemini 3.1 Pro Preview's on 1. Where only one model has a result, the page says so instead of naming a winner.