LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

Claude Sonnet 5 vs Gemini 3.7 Flash

Updated October 21, 2026. 107 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

Claude Sonnet 5Anthropic
Coding
63.5
Overall
38.2
Output $/M
$10.00
17
Gemini 3.7 FlashGoogle
Coding
69.9
Overall
39.6
Output $/M
$3.75
88
vs boards won of 107 shared, 2 tied

Decision reading

Pick Gemini 3.7 Flash for coding: it scores 69.9 on the Vibe Coding Index against 63.5 for Claude Sonnet 5.

Pick Claude Sonnet 5 when what matters is Vibe Code Bench (Vals AI) or Code migration (Vals AI), where it leads.

Shared results
107
Claude Sonnet 5 only
13
Gemini 3.7 Flash only
5
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.

At a glance

Coding index
Claude Sonnet 5 63.5 from 2 benchmarks, Gemini 3.7 Flash 69.9 from 2 benchmarks.
Widest category
Coding, 8.3 points apart on average over 21 shared benchmarks.
Widest single gap
SimpleQA Verified: Claude Sonnet 5 33.7% against Gemini 3.7 Flash 69.2%, 35.5 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 5 $10.00 against Gemini 3.7 Flash $3.75 per million output tokens, 2.7x apart.
Context window
Claude Sonnet 5 takes 1M tokens, Gemini 3.7 Flash 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.

Boards won, where both have a result
CategoryClaude Sonnet 5BarsGemini 3.7 FlashTies
Coding4152 ties
Intelligence02
Agentic work710
Reasoning112
Math15
Knowledge28
Web design18
General128
All shared boards17882 ties
CodingLike-for-likeFour of these boards feed the Vibe Coding Index415
Coding benchmarks for Claude Sonnet 5 and Gemini 3.7 Flash
BenchmarkClaude Sonnet 5Gemini 3.7 FlashLeader
LiveBench coding74.7%80.5%Gemini 3.7 Flash
LMArena WebDev15401591Gemini 3.7 Flash
AA Coding Index71.571.5Tie
LiveCodeBench (Vals AI)82.4%88.7%Gemini 3.7 Flash
SWE-bench Verified (Vals AI)79.6%80.8%Gemini 3.7 Flash
Terminal-Bench 4 (Vals AI)10.6%12.1%Gemini 3.7 Flash
Vibe Code Bench (Vals AI)81.3%70.4%Claude Sonnet 5
Code migration (Vals AI)44.4%34.8%Claude Sonnet 5
ProgramBench (Vals AI)0.0%0.0%Tie
IOI (Vals AI)45.0%67.8%Gemini 3.7 Flash
Terminal-Bench 2.1 (Vals AI)74.5%77.5%Gemini 3.7 Flash
Vibe Code Bench 1-100 (Vals AI)13.8%Not measuredOnly Claude Sonnet 5 measured
SkillsBench (Vals AI)46.5%65.9%Gemini 3.7 Flash
CyberBench (Vals AI)70.3%43.8%Claude Sonnet 5
SciCode54.3%59.8%Gemini 3.7 Flash
FrontierCode42.7%43.6%Gemini 3.7 Flash
FrontierSWENot measured20.3%Only Gemini 3.7 Flash measured
GSO-Bench37.3%Not measuredOnly Claude Sonnet 5 measured
WeirdML68.8%Not measuredOnly Claude Sonnet 5 measured
ALE-Bench1463.1904.3Claude Sonnet 5
LMArena Text: coding14831499Gemini 3.7 Flash
LMArena Text: software and IT14741498Gemini 3.7 Flash
LMArena WebDev: React15411587Gemini 3.7 Flash
LMArena WebDev: HTML15271593Gemini 3.7 Flash
LMArena WebDev: from an image15401599Gemini 3.7 Flash
Neither model has a result on the other 13 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Claude Sonnet 5 and Gemini 3.7 Flash
BenchmarkClaude Sonnet 5Gemini 3.7 FlashLeader
AA Intelligence Index38.239.6Gemini 3.7 Flash
Epoch Capabilities Index156.9158.0Gemini 3.7 Flash
Agentic workLike-for-likePublic boards, shown as published, kept out of the index710
Agentic work benchmarks for Claude Sonnet 5 and Gemini 3.7 Flash
BenchmarkClaude Sonnet 5Gemini 3.7 FlashLeader
AA Agentic Index43.6Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building web apps12451224Claude Sonnet 5
Design Arena: agents building full-stack apps12491208Claude Sonnet 5
Design Arena: agents building mobile apps12151230Gemini 3.7 Flash
Design Arena: agents building Android apps12311247Gemini 3.7 Flash
Design Arena: agents building Godot games12251264Gemini 3.7 Flash
Design Arena: agents building games12271235Gemini 3.7 Flash
Design Arena: HTML slides1218Not measuredOnly Claude Sonnet 5 measured
Design Arena: PowerPoint slides1216Not measuredOnly Claude Sonnet 5 measured
Design Arena: spreadsheets10041028Gemini 3.7 Flash
LiveBench research82.8%76.5%Claude Sonnet 5
LiveBench browser72.0%56.0%Claude Sonnet 5
LiveBench long agentic39.0%28.3%Claude Sonnet 5
SREBench (Vals AI)0.4%4.6%Gemini 3.7 Flash
Finance Agent (Vals AI)53.9%59.0%Gemini 3.7 Flash
Tax Agent Bench (Vals AI)29.4%22.8%Claude Sonnet 5
Legal Research Bench (Vals AI)41.8%34.6%Claude Sonnet 5
Excel Modeling Benchmark (Vals AI)66.3%71.3%Gemini 3.7 Flash
Terminal-Bench-Science (Vals AI)5.7%7.1%Gemini 3.7 Flash
APEX-Agents54.5%67.8%Gemini 3.7 Flash
Remote Labor IndexNot measured5.0%Only Gemini 3.7 Flash measured
Vending-Bench 2$6,378Not measuredOnly Claude Sonnet 5 measured
Neither model has a result on the other 17 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index112
Reasoning benchmarks for Claude Sonnet 5 and Gemini 3.7 Flash
BenchmarkClaude Sonnet 5Gemini 3.7 FlashLeader
GPQA Diamond88.9%93.9%Gemini 3.7 Flash
LiveBench reasoning88.7%87.8%Claude Sonnet 5
MMMU Pro (Vals AI)83.0%89.0%Gemini 3.7 Flash
GPQA Diamond (Artificial Analysis run)91.1%94.5%Gemini 3.7 Flash
Humanity's Last Exam (Artificial Analysis run)41.3%47.9%Gemini 3.7 Flash
GPQA Diamond (Epoch AI run)90.5%94.8%Gemini 3.7 Flash
ARC-AGINot measured95.5%Only Gemini 3.7 Flash measured
ARC-AGI-2Not measured84.6%Only Gemini 3.7 Flash measured
SimpleBench60.6%Not measuredOnly Claude Sonnet 5 measured
Chess puzzles45.0%66.0%Gemini 3.7 Flash
Mystery game puzzles35.0%37.0%Gemini 3.7 Flash
LMArena Text: hard prompts14611495Gemini 3.7 Flash
LMArena Text: expert14891512Gemini 3.7 Flash
LMArena Text: hard prompts in English14641487Gemini 3.7 Flash
LMArena Vision: diagrams12931329Gemini 3.7 Flash
LMArena Vision: homework13111320Gemini 3.7 Flash
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index15
Math benchmarks for Claude Sonnet 5 and Gemini 3.7 Flash
BenchmarkClaude Sonnet 5Gemini 3.7 FlashLeader
OTIS Mock AIME94.7%97.2%Gemini 3.7 Flash
FrontierMath, tiers 1 to 365.6%71.6%Gemini 3.7 Flash
FrontierMath, tier 429.3%36.6%Gemini 3.7 Flash
ProofBench77.0%58.0%Claude Sonnet 5
LMArena Text: math14671511Gemini 3.7 Flash
LMArena Text: mathematical work14811502Gemini 3.7 Flash
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index28
Knowledge benchmarks for Claude Sonnet 5 and Gemini 3.7 Flash
BenchmarkClaude Sonnet 5Gemini 3.7 FlashLeader
MMLU Pro87.5%90.1%Gemini 3.7 Flash
LegalBench (Vals AI)83.9%87.3%Gemini 3.7 Flash
CorpFin (Vals AI)67.0%Not measuredOnly Claude Sonnet 5 measured
TaxEval (Vals AI)75.6%74.7%Claude Sonnet 5
MortgageTax (Vals AI)70.0%66.7%Claude Sonnet 5
MedCode (Vals AI)47.5%53.4%Gemini 3.7 Flash
SimpleQA Verified33.7%69.2%Gemini 3.7 Flash
LMArena Text: science14601511Gemini 3.7 Flash
LMArena Text: medicine and healthcare14421494Gemini 3.7 Flash
LMArena Text: legal and government14541496Gemini 3.7 Flash
LMArena Text: business and finance14361479Gemini 3.7 Flash
Neither model has a result on the other 6 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index18
Web design benchmarks for Claude Sonnet 5 and Gemini 3.7 Flash
BenchmarkClaude Sonnet 5Gemini 3.7 FlashLeader
Design Arena: websites12741304Gemini 3.7 Flash
Design Arena: UI components12791299Gemini 3.7 Flash
Design Arena: game dev12781318Gemini 3.7 Flash
Design Arena: data viz12511315Gemini 3.7 Flash
Design Arena: 3D12611308Gemini 3.7 Flash
Design Arena: all code categories12761308Gemini 3.7 Flash
Design Arena: SVG11931283Gemini 3.7 Flash
Design Arena: ASCII art12071276Gemini 3.7 Flash
LiveBench design82.0%73.2%Claude Sonnet 5
GeneralLike-for-likePublic boards, shown as published, kept out of the index128
General benchmarks for Claude Sonnet 5 and Gemini 3.7 Flash
BenchmarkClaude Sonnet 5Gemini 3.7 FlashLeader
LiveBench data analysis71.7%68.0%Claude Sonnet 5
Public Benefits Bench (Vals AI)66.0%Not measuredOnly Claude Sonnet 5 measured
SAGE (Vals AI)48.9%49.2%Gemini 3.7 Flash
MedScribe (Vals AI)76.0%83.9%Gemini 3.7 Flash
Vals Multimodal Index68.8%Not measuredOnly Claude Sonnet 5 measured
Long context reasoning (AA-LCR)82.0%83.0%Gemini 3.7 Flash
DTBench92.5%96.8%Gemini 3.7 Flash
LMCA50.0%50.4%Gemini 3.7 Flash
Surface Evolver Bench60.0%Not measuredOnly Claude Sonnet 5 measured
Furniture assemblyNot measured26.7%Only Gemini 3.7 Flash measured
LMArena Text14421489Gemini 3.7 Flash
LMArena Text: instruction following14521484Gemini 3.7 Flash
LMArena Text: creative writing14161488Gemini 3.7 Flash
LMArena Vision12731314Gemini 3.7 Flash
LMArena Text: English14501483Gemini 3.7 Flash
LMArena Text: non-English14311487Gemini 3.7 Flash
LMArena Text: Chinese14781552Gemini 3.7 Flash
LMArena Text: German14421506Gemini 3.7 Flash
LMArena Text: Japanese14221511Gemini 3.7 Flash
LMArena Text: Korean14121481Gemini 3.7 Flash
LMArena Text: French14631500Gemini 3.7 Flash
LMArena Text: Spanish14381495Gemini 3.7 Flash
LMArena Text: Russian14501515Gemini 3.7 Flash
LMArena Text: Polish14251503Gemini 3.7 Flash
LMArena Text: multi-turn14531485Gemini 3.7 Flash
LMArena Text: longer queries14621492Gemini 3.7 Flash
LMArena Text: writing and language14361491Gemini 3.7 Flash
LMArena Text: entertainment and media14111477Gemini 3.7 Flash
LMArena Vision: English12751309Gemini 3.7 Flash
LMArena Vision: Chinese13311394Gemini 3.7 Flash
LMArena Vision: reading text12881322Gemini 3.7 Flash
LMArena Vision: humor12611299Gemini 3.7 Flash
LMArena Vision: creative writing12461312Gemini 3.7 Flash
LMArena Document1466Not measuredOnly Claude Sonnet 5 measured
Neither model has a result on the other 12 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Sonnet 5 and Gemini 3.7 Flash
BenchmarkClaude Sonnet 5Gemini 3.7 FlashLeader
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

Claude Sonnet 5$0.0070Fits in one request
Gemini 3.7 Flash$0.0026Fits in one request

Gemini 3.7 Flash costs less

Repository review

50K input + 3K output tokens

Claude Sonnet 5$0.130Fits in one request
Gemini 3.7 Flash$0.049Fits in one request

Gemini 3.7 Flash costs less

Agent loop

200K input + 10K output tokens

Claude Sonnet 5$0.500Fits in one request
Gemini 3.7 Flash$0.188Fits in one request

Gemini 3.7 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.

Specifications of Claude Sonnet 5 and Gemini 3.7 Flash
SpecificationAnthropic Claude Sonnet 5Google Gemini 3.7 Flash
MakerAnthropicGoogle
WeightsNo public weights listedNo public weights listed
ReleasedJune 30, 2026August 13, 2026
Context window1M1.05M
Input $/Mtok$2.00$0.75
Output $/Mtok$10.00$3.75
Coding index63.569.9
Independent measurements behind it22
Cost per solved task$1.87$1.78
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Sonnet 5 better than Gemini 3.7 Flash for coding?

Pick Gemini 3.7 Flash for coding: it scores 69.9 on the Vibe Coding Index against 63.5 for Claude Sonnet 5. Pick Claude Sonnet 5 when what matters is Vibe Code Bench (Vals AI) or Code migration (Vals AI), where it leads.

Which is cheaper, Claude Sonnet 5 or Gemini 3.7 Flash?

Claude Sonnet 5 costs $2.00 per million input tokens and $10.00 per million output tokens; Gemini 3.7 Flash costs $0.75 and $3.75. Per solved SWE-bench Verified task, Claude Sonnet 5 costs $1.87 and Gemini 3.7 Flash $1.78.

Which has the bigger context window, Claude Sonnet 5 or Gemini 3.7 Flash?

Gemini 3.7 Flash, with 1.05M tokens against 1M.

How many benchmarks is the Claude Sonnet 5 vs Gemini 3.7 Flash comparison based on?

107 benchmarks have a result for both models as of October 21, 2026. Claude Sonnet 5's coding index rests on 2 independent benchmarks and Gemini 3.7 Flash's on 2. Where only one model has a result, the page says so instead of naming a winner.

Compare next

Embed this comparison on your site

Free under CC BY 4.0, while the source link stays visible. Preview the frame · Terms and other embeds

<iframe src="https://llmbenchmark.ai/embed/compare/claude-sonnet-5-vs-gemini-3-7-flash" title="Claude Sonnet 5 vs Gemini 3.7 Flash, LLMBenchmark.ai" width="100%" height="360" style="border:0;max-width:100%" loading="lazy"></iframe>
<p style="font:13px/1.4 sans-serif;margin:6px 0 0">Source: <a href="https://llmbenchmark.ai/compare/claude-sonnet-5-vs-gemini-3-7-flash">LLMBenchmark.ai, Claude Sonnet 5 vs Gemini 3.7 Flash</a></p>