Enter opens the highlighted result. Esc closes.

Claude Sonnet 5 vs Gemini 3.1 Flash Lite Preview

Claude Sonnet 5 leads Gemini 3.1 Flash Lite Preview on coding, 57.7 to 22.7 on the Vibe Coding Index, and Gemini 3.1 Flash Lite Preview costs 6.7x less per output token ($1.50 vs $10.00 per million). Updated October 21, 2026; 74 benchmarks have a result for both.

Claude Sonnet 5Anthropic
Coding
57.7
Overall
63.2
Output $/M
$10.00
68
Gemini 3.1 Flash Lite PreviewGoogle
Coding
22.7
Overall
36.6
Output $/M
$1.50
5
vs boards won of 74 shared, 1 tied

Claude Sonnet 5 or Gemini 3.1 Flash Lite Preview: which to pick

Pick Claude Sonnet 5 for coding: it scores 57.7 on the Vibe Coding Index against 22.7 for Gemini 3.1 Flash Lite Preview.

Pick Gemini 3.1 Flash Lite Preview for output tokens 6.7x cheaper ($1.50 vs $10.00 per million) and a lower cost per solved task ($0.18 against $1.87).

Shared results
74
Claude Sonnet 5 only
47
Gemini 3.1 Flash Lite Preview only
5
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.

At a glance

Coding index
Claude Sonnet 5 57.7 from 6 benchmarks, Gemini 3.1 Flash Lite Preview 22.7 from 3 benchmarks.
Widest category
Agentic work, 37.7 points apart on average over 5 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): Claude Sonnet 5 81.3% against Gemini 3.1 Flash Lite Preview 0.0%, 81.3 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 5 $10.00 against Gemini 3.1 Flash Lite Preview $1.50 per million output tokens, 6.7x apart.
Context window
Claude Sonnet 5 takes 1M tokens, Gemini 3.1 Flash Lite 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.

Boards won, where both have a result
CategoryClaude Sonnet 5BarsGemini 3.1 Flash Lite PreviewTies
Coding1401 tie
Intelligence10
Agentic work50
Reasoning70
Math20
Knowledge91
Web design80
General224
All shared boards6851 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index140
Coding benchmarks for Claude Sonnet 5 and Gemini 3.1 Flash Lite Preview
BenchmarkClaude Sonnet 5Gemini 3.1 Flash Lite PreviewLeader
LiveBench coding74.7%Not measuredOnly Claude Sonnet 5 measured
LMArena WebDev15401257Claude Sonnet 5
AA Coding Index71.534.7Claude Sonnet 5
LiveCodeBench (Vals AI)82.4%80.1%Claude Sonnet 5
SWE-bench Verified (Vals AI)79.6%62.8%Claude Sonnet 5
Terminal-Bench 4 (Vals AI)10.6%Not measuredOnly Claude Sonnet 5 measured
Vibe Code Bench (Vals AI)81.3%0.0%Claude Sonnet 5
Code migration (Vals AI)44.4%4.6%Claude Sonnet 5
ProgramBench (Vals AI)0.0%0.0%Tie
IOI (Vals AI)45.0%Not measuredOnly Claude Sonnet 5 measured
Terminal-Bench 2.1 (Vals AI)74.5%34.1%Claude Sonnet 5
Vibe Code Bench 1-100 (Vals AI)13.8%Not measuredOnly Claude Sonnet 5 measured
SkillsBench (Vals AI)46.5%Not measuredOnly Claude Sonnet 5 measured
CyberBench (Vals AI)70.3%Not measuredOnly Claude Sonnet 5 measured
SciCode54.3%Not measuredOnly Claude Sonnet 5 measured
FrontierCode42.7%Not measuredOnly Claude Sonnet 5 measured
GSO-Bench37.3%Not measuredOnly Claude Sonnet 5 measured
WeirdML68.8%Not measuredOnly Claude Sonnet 5 measured
ALE-Bench1463.1797.7Claude Sonnet 5
LMArena Text: coding14831400Claude Sonnet 5
LMArena Text: software and IT14741413Claude Sonnet 5
LMArena WebDev: React15411245Claude Sonnet 5
LMArena WebDev: HTML15271276Claude Sonnet 5
LMArena WebDev: from an image15401336Claude Sonnet 5
SciCode10.7%4.6%Claude Sonnet 5
Neither model has a result on the other 14 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Claude Sonnet 5 and Gemini 3.1 Flash Lite Preview
BenchmarkClaude Sonnet 5Gemini 3.1 Flash Lite PreviewLeader
AA Intelligence Index38.215.6Claude Sonnet 5
Epoch Capabilities Index156.9Not measuredOnly Claude Sonnet 5 measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index50
Agentic work benchmarks for Claude Sonnet 5 and Gemini 3.1 Flash Lite Preview
BenchmarkClaude Sonnet 5Gemini 3.1 Flash Lite PreviewLeader
AA Agentic Index43.61.6Claude Sonnet 5
Design Arena: agents building web apps1245Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building full-stack apps1249Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building mobile apps1215Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building Android apps1225Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building Godot games1225Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building games1227Not measuredOnly Claude Sonnet 5 measured
Design Arena: HTML slides1218Not measuredOnly Claude Sonnet 5 measured
Design Arena: PowerPoint slides1216Not measuredOnly Claude Sonnet 5 measured
Design Arena: spreadsheets1021Not measuredOnly Claude Sonnet 5 measured
LiveBench research82.8%Not measuredOnly Claude Sonnet 5 measured
LiveBench browser72.0%Not measuredOnly Claude Sonnet 5 measured
LiveBench long agentic39.0%Not measuredOnly Claude Sonnet 5 measured
SREBench (Vals AI)0.4%Not measuredOnly Claude Sonnet 5 measured
Finance Agent (Vals AI)53.9%30.0%Claude Sonnet 5
Tax Agent Bench (Vals AI)29.4%3.1%Claude Sonnet 5
Legal Research Bench (Vals AI)41.8%3.4%Claude Sonnet 5
Excel Modeling Benchmark (Vals AI)66.3%8.6%Claude Sonnet 5
Terminal-Bench-Science (Vals AI)5.7%Not measuredOnly Claude Sonnet 5 measured
APEX-Agents54.5%Not measuredOnly Claude Sonnet 5 measured
Vending-Bench 2$6,378Not measuredOnly Claude Sonnet 5 measured
Neither model has a result on the other 20 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index70
Reasoning benchmarks for Claude Sonnet 5 and Gemini 3.1 Flash Lite Preview
BenchmarkClaude Sonnet 5Gemini 3.1 Flash Lite PreviewLeader
GPQA Diamond88.9%81.1%Claude Sonnet 5
LiveBench reasoning88.7%Not measuredOnly Claude Sonnet 5 measured
MMMU Pro (Vals AI)83.0%82.5%Claude Sonnet 5
GPQA Diamond (Artificial Analysis run)91.1%Not measuredOnly Claude Sonnet 5 measured
Humanity's Last Exam (Artificial Analysis run)41.3%Not measuredOnly Claude Sonnet 5 measured
GPQA Diamond (Epoch AI run)90.5%Not measuredOnly Claude Sonnet 5 measured
SimpleBench60.6%Not measuredOnly Claude Sonnet 5 measured
Chess puzzles45.0%Not measuredOnly Claude Sonnet 5 measured
Mystery game puzzles35.0%Not measuredOnly Claude Sonnet 5 measured
LMArena Text: hard prompts14611407Claude Sonnet 5
LMArena Text: expert14891398Claude Sonnet 5
LMArena Text: hard prompts in English14641403Claude Sonnet 5
LMArena Vision: diagrams12931242Claude Sonnet 5
LMArena Vision: homework13111271Claude Sonnet 5
Neither model has a result on the other 8 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index20
Math benchmarks for Claude Sonnet 5 and Gemini 3.1 Flash Lite Preview
BenchmarkClaude Sonnet 5Gemini 3.1 Flash Lite PreviewLeader
AIMENot measured83.3%Only Gemini 3.1 Flash Lite Preview measured
OTIS Mock AIME94.7%Not measuredOnly Claude Sonnet 5 measured
FrontierMath, tiers 1 to 365.6%Not measuredOnly Claude Sonnet 5 measured
FrontierMath, tier 429.3%Not measuredOnly Claude Sonnet 5 measured
ProofBench77.0%Not measuredOnly Claude Sonnet 5 measured
LMArena Text: math14671428Claude Sonnet 5
LMArena Text: mathematical work14811417Claude Sonnet 5
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index91
Knowledge benchmarks for Claude Sonnet 5 and Gemini 3.1 Flash Lite Preview
BenchmarkClaude Sonnet 5Gemini 3.1 Flash Lite PreviewLeader
MMLU Pro87.5%86.2%Claude Sonnet 5
LegalBench (Vals AI)83.9%83.8%Claude Sonnet 5
CaseLaw (Vals AI)Not measured55.0%Only Gemini 3.1 Flash Lite Preview measured
CorpFin (Vals AI)67.0%59.4%Claude Sonnet 5
TaxEval (Vals AI)75.6%71.8%Claude Sonnet 5
MortgageTax (Vals AI)70.0%68.0%Claude Sonnet 5
MedCode (Vals AI)47.5%47.6%Gemini 3.1 Flash Lite Preview
SimpleQA Verified33.7%Not measuredOnly Claude Sonnet 5 measured
LMArena Text: science14601425Claude Sonnet 5
LMArena Text: medicine and healthcare14421428Claude Sonnet 5
LMArena Text: legal and government14541418Claude Sonnet 5
LMArena Text: business and finance14361389Claude Sonnet 5
FACTS Benchmark SuiteNot measured51.4%Only Gemini 3.1 Flash Lite Preview measured
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index80
Web design benchmarks for Claude Sonnet 5 and Gemini 3.1 Flash Lite Preview
BenchmarkClaude Sonnet 5Gemini 3.1 Flash Lite PreviewLeader
Design Arena: websites12741083Claude Sonnet 5
Design Arena: UI components12801072Claude Sonnet 5
Design Arena: game dev12781029Claude Sonnet 5
Design Arena: data viz12511045Claude Sonnet 5
Design Arena: 3D12611048Claude Sonnet 5
Design Arena: all code categories12761072Claude Sonnet 5
Design Arena: SVG11931052Claude Sonnet 5
Design Arena: ASCII art12071167Claude Sonnet 5
LiveBench design82.0%Not measuredOnly Claude Sonnet 5 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index224
General benchmarks for Claude Sonnet 5 and Gemini 3.1 Flash Lite Preview
BenchmarkClaude Sonnet 5Gemini 3.1 Flash Lite PreviewLeader
LiveBench data analysis71.7%Not measuredOnly Claude Sonnet 5 measured
Public Benefits Bench (Vals AI)66.0%Not measuredOnly Claude Sonnet 5 measured
SAGE (Vals AI)48.9%49.5%Gemini 3.1 Flash Lite Preview
MedScribe (Vals AI)76.0%63.9%Claude Sonnet 5
Vals Multimodal Index68.8%41.4%Claude Sonnet 5
Long context reasoning (AA-LCR)82.0%Not measuredOnly Claude Sonnet 5 measured
DTBench92.5%Not measuredOnly Claude Sonnet 5 measured
LMCA50.0%Not measuredOnly Claude Sonnet 5 measured
Surface Evolver Bench60.0%Not measuredOnly Claude Sonnet 5 measured
LMArena Text14421416Claude Sonnet 5
LMArena Text: instruction following14521377Claude Sonnet 5
LMArena Text: creative writing14161401Claude Sonnet 5
LMArena Vision12731240Claude Sonnet 5
LMArena Text: English14501414Claude Sonnet 5
LMArena Text: non-English14311410Claude Sonnet 5
LMArena Text: Chinese14781460Claude Sonnet 5
LMArena Text: German14421430Claude Sonnet 5
LMArena Text: Japanese14221413Claude Sonnet 5
LMArena Text: Korean14121392Claude Sonnet 5
LMArena Text: French14631424Claude Sonnet 5
LMArena Text: Spanish14381421Claude Sonnet 5
LMArena Text: Russian14501420Claude Sonnet 5
LMArena Text: Polish14251443Gemini 3.1 Flash Lite Preview
LMArena Text: multi-turn14531417Claude Sonnet 5
LMArena Text: longer queries14621394Claude Sonnet 5
LMArena Text: writing and language14361408Claude Sonnet 5
LMArena Text: entertainment and media14111386Claude Sonnet 5
LMArena Vision: English12751232Claude Sonnet 5
LMArena Vision: Chinese13311278Claude Sonnet 5
LMArena Vision: reading text12881246Claude Sonnet 5
LMArena Vision: humor12611266Gemini 3.1 Flash Lite Preview
LMArena Vision: captioningNot measured1259Only Gemini 3.1 Flash Lite Preview measured
LMArena Vision: recognizing thingsNot measured1308Only Gemini 3.1 Flash Lite Preview measured
LMArena Vision: creative writing12461248Gemini 3.1 Flash Lite Preview
LMArena Document1466Not measuredOnly Claude Sonnet 5 measured
Neither model has a result on the other 11 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.1 Flash Lite Preview
BenchmarkClaude Sonnet 5Gemini 3.1 Flash Lite PreviewLeader
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.1 Flash Lite Preview$0.0010Fits in one request

Gemini 3.1 Flash Lite Preview costs less

Repository review

50K input + 3K output tokens

Claude Sonnet 5$0.130Fits in one request
Gemini 3.1 Flash Lite Preview$0.017Fits in one request

Gemini 3.1 Flash Lite Preview costs less

Agent loop

200K input + 10K output tokens

Claude Sonnet 5$0.500Fits in one request
Gemini 3.1 Flash Lite Preview$0.065Fits in one request

Gemini 3.1 Flash Lite 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.

Specifications of Claude Sonnet 5 and Gemini 3.1 Flash Lite Preview
SpecificationAnthropic Claude Sonnet 5Google Gemini 3.1 Flash Lite Preview
MakerAnthropicGoogle
WeightsNo public weights listedNo public weights listed
ReleasedJune 30, 2026March 3, 2026
Context window1M1.05M
Input $/Mtok$2.00$0.25
Output $/Mtok$10.00$1.50
Coding index57.722.7
Independent measurements behind it63
Cost per solved task$1.87$0.18
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Sonnet 5 better than Gemini 3.1 Flash Lite Preview for coding?

Pick Claude Sonnet 5 for coding: it scores 57.7 on the Vibe Coding Index against 22.7 for Gemini 3.1 Flash Lite Preview. Pick Gemini 3.1 Flash Lite Preview for output tokens 6.7x cheaper ($1.50 vs $10.00 per million) and a lower cost per solved task ($0.18 against $1.87).

Which is cheaper, Claude Sonnet 5 or Gemini 3.1 Flash Lite Preview?

Claude Sonnet 5 costs $2.00 per million input tokens and $10.00 per million output tokens; Gemini 3.1 Flash Lite Preview costs $0.25 and $1.50. Per solved SWE-bench Verified task, Claude Sonnet 5 costs $1.87 and Gemini 3.1 Flash Lite Preview $0.18.

Which has the bigger context window, Claude Sonnet 5 or Gemini 3.1 Flash Lite Preview?

Gemini 3.1 Flash Lite Preview, with 1.05M tokens against 1M.

How many benchmarks is the Claude Sonnet 5 vs Gemini 3.1 Flash Lite Preview comparison based on?

74 benchmarks have a result for both models as of October 21, 2026. Claude Sonnet 5's coding index rests on 6 independent benchmarks and Gemini 3.1 Flash Lite Preview's on 3. 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-1-flash-lite-preview" title="Claude Sonnet 5 vs Gemini 3.1 Flash Lite Preview, 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-1-flash-lite-preview">LLMBenchmark.ai, Claude Sonnet 5 vs Gemini 3.1 Flash Lite Preview</a></p>