Enter opens the highlighted result. Esc closes.

Claude Sonnet 4.6 vs Gemini 3.8 Flash

Gemini 3.8 Flash leads Claude Sonnet 4.6 on coding, 61.6 to 57.3 on the Vibe Coding Index, and Gemini 3.8 Flash costs 4.0x less per output token ($3.75 vs $15.00 per million). Updated October 22, 2026; 102 benchmarks have a result for both.

Claude Sonnet 4.6Anthropic
Coding
57.3
Overall
60.3
Output $/M
$15.00
9
Gemini 3.8 FlashGoogle
Coding
61.6
Overall
69.0
Output $/M
$3.75
93
vs boards won of 102 shared

Claude Sonnet 4.6 or Gemini 3.8 Flash: which to pick

Pick Gemini 3.8 Flash for coding: it scores 61.6 on the Vibe Coding Index against 57.3 for Claude Sonnet 4.6.

Pick Claude Sonnet 4.6 for a lower cost per solved task ($1.68 against $2.74) and work measured by Code migration (Vals AI) or Design Arena: agents building Android apps, where it leads.

Shared results
102
Claude Sonnet 4.6 only
16
Gemini 3.8 Flash only
26
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 4.6 57.3 from 5 benchmarks, Gemini 3.8 Flash 61.6 from 6 benchmarks.
Widest category
Reasoning, 11.8 points apart on average over 15 shared benchmarks.
Widest single gap
Chess puzzles: Claude Sonnet 4.6 23.0% against Gemini 3.8 Flash 58.0%, 35.0 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 4.6 $15.00 against Gemini 3.8 Flash $3.75 per million output tokens, 4.0x apart.
Context window
Claude Sonnet 4.6 takes 1M tokens, Gemini 3.8 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 4.6BarsGemini 3.8 FlashTies
Coding117
Intelligence02
Agentic work312
Reasoning015
Math04
Knowledge28
Web design18
General227
All shared boards993
CodingLike-for-likeSix of these boards feed the Vibe Coding Index117
Coding benchmarks for Claude Sonnet 4.6 and Gemini 3.8 Flash
BenchmarkClaude Sonnet 4.6Gemini 3.8 FlashLeader
LiveBench coding66.6%82.2%Gemini 3.8 Flash
LMArena WebDev15231585Gemini 3.8 Flash
AA Coding Index63.076.3Gemini 3.8 Flash
LiveCodeBench (Vals AI)82.1%89.5%Gemini 3.8 Flash
SWE-bench Verified (Vals AI)77.4%80.0%Gemini 3.8 Flash
Terminal-Bench 4 (Vals AI)Not measured19.7%Only Gemini 3.8 Flash measured
Vibe Code Bench (Vals AI)55.8%78.7%Gemini 3.8 Flash
Code migration (Vals AI)39.9%36.5%Claude Sonnet 4.6
ProgramBench (Vals AI)0.5%1.0%Gemini 3.8 Flash
IOI (Vals AI)Not measured56.9%Only Gemini 3.8 Flash measured
Terminal-Bench 2.1 (Vals AI)57.3%81.3%Gemini 3.8 Flash
SWE-bench Multimodal (Vals AI)Not measured40.8%Only Gemini 3.8 Flash measured
Vibe Code Bench 1-100 (Vals AI)Not measured18.8%Only Gemini 3.8 Flash measured
SkillsBench (Vals AI)49.0%58.0%Gemini 3.8 Flash
CyberBench (Vals AI)Not measured43.8%Only Gemini 3.8 Flash measured
SciCode50.1%56.6%Gemini 3.8 Flash
Terminal-Bench Hard (Artificial Analysis run)53.0%Not measuredOnly Claude Sonnet 4.6 measured
Terminal-Bench53.4%Not measuredOnly Claude Sonnet 4.6 measured
FrontierCode24.3%41.2%Gemini 3.8 Flash
FrontierSWENot measured19.6%Only Gemini 3.8 Flash measured
WeirdML66.1%84.8%Gemini 3.8 Flash
ALE-BenchNot measured1269.7Only Gemini 3.8 Flash measured
LMArena Text: coding15031508Gemini 3.8 Flash
LMArena Text: software and IT14911507Gemini 3.8 Flash
LMArena WebDev: React15121577Gemini 3.8 Flash
LMArena WebDev: HTML15271616Gemini 3.8 Flash
LMArena WebDev: from an image15291593Gemini 3.8 Flash
SciCodeNot measured12.3%Only Gemini 3.8 Flash measured
Neither model has a result on the other 11 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Claude Sonnet 4.6 and Gemini 3.8 Flash
BenchmarkClaude Sonnet 4.6Gemini 3.8 FlashLeader
AA Intelligence Index30.140.9Gemini 3.8 Flash
Epoch Capabilities Index152.8157.4Gemini 3.8 Flash
Agentic workLike-for-likePublic boards, shown as published, kept out of the index312
Agentic work benchmarks for Claude Sonnet 4.6 and Gemini 3.8 Flash
BenchmarkClaude Sonnet 4.6Gemini 3.8 FlashLeader
AA Agentic Index31.840.2Gemini 3.8 Flash
Design Arena: agents building web apps11901238Gemini 3.8 Flash
Design Arena: agents building full-stack apps12131244Gemini 3.8 Flash
Design Arena: agents building mobile apps12121236Gemini 3.8 Flash
Design Arena: agents building Android apps11971078Claude Sonnet 4.6
Design Arena: agents building Godot games12261273Gemini 3.8 Flash
Design Arena: agents building games1177Not measuredOnly Claude Sonnet 4.6 measured
Design Arena: PowerPoint slidesNot measured1153Only Gemini 3.8 Flash measured
Design Arena: spreadsheetsNot measured1022Only Gemini 3.8 Flash measured
LiveBench research63.6%79.1%Gemini 3.8 Flash
LiveBench browser68.0%64.0%Claude Sonnet 4.6
LiveBench long agentic23.1%30.1%Gemini 3.8 Flash
SREBench (Vals AI)Not measured11.1%Only Gemini 3.8 Flash measured
Finance Agent (Vals AI)51.0%61.4%Gemini 3.8 Flash
Tax Agent Bench (Vals AI)25.8%32.1%Gemini 3.8 Flash
Legal Research Bench (Vals AI)38.5%38.9%Gemini 3.8 Flash
Harvey's Legal Agent Benchmark (Vals AI)Not measured12.1%Only Gemini 3.8 Flash measured
Excel Modeling Benchmark (Vals AI)60.2%72.2%Gemini 3.8 Flash
BioMysteryBench (Vals AI)Not measured62.2%Only Gemini 3.8 Flash measured
Terminal-Bench-Science (Vals AI)Not measured8.6%Only Gemini 3.8 Flash measured
Vals Science IndexNot measured35.8%Only Gemini 3.8 Flash measured
Time Horizon Index (Vals AI)Not measured18.8%Only Gemini 3.8 Flash measured
CUA-bench (Vals AI)Not measured4.2%Only Gemini 3.8 Flash measured
τ²-Bench Telecom79.5%Not measuredOnly Claude Sonnet 4.6 measured
APEX-Agents43.0%64.3%Gemini 3.8 Flash
Remote Labor IndexNot measured5.8%Only Gemini 3.8 Flash measured
OSWorld 2.09.3%Not measuredOnly Claude Sonnet 4.6 measured
DeepResearch Bench54.9%Not measuredOnly Claude Sonnet 4.6 measured
OSWorld72.1%Not measuredOnly Claude Sonnet 4.6 measured
Vending-Bench 2$7,204$5,094Claude Sonnet 4.6
Neither model has a result on the other 11 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index015
Reasoning benchmarks for Claude Sonnet 4.6 and Gemini 3.8 Flash
BenchmarkClaude Sonnet 4.6Gemini 3.8 FlashLeader
GPQA Diamond85.6%94.4%Gemini 3.8 Flash
LiveBench reasoning86.4%89.3%Gemini 3.8 Flash
MysteryMechanism (Vals AI)Not measured36.5%Only Gemini 3.8 Flash measured
MMMU Pro (Vals AI)83.6%89.1%Gemini 3.8 Flash
GPQA Diamond (Artificial Analysis run)87.5%95.3%Gemini 3.8 Flash
Humanity's Last Exam (Artificial Analysis run)33.6%47.8%Gemini 3.8 Flash
GPQA Diamond (Epoch AI run)87.4%95.4%Gemini 3.8 Flash
ARC-AGI86.5%98.5%Gemini 3.8 Flash
ARC-AGI-260.4%89.2%Gemini 3.8 Flash
Chess puzzles23.0%58.0%Gemini 3.8 Flash
Mystery game puzzles16.0%47.0%Gemini 3.8 Flash
LMArena Text: hard prompts14851509Gemini 3.8 Flash
LMArena Text: expert15001526Gemini 3.8 Flash
LMArena Text: hard prompts in English14931504Gemini 3.8 Flash
LMArena Vision: diagrams13061345Gemini 3.8 Flash
LMArena Vision: homework13111351Gemini 3.8 Flash
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index04
Math benchmarks for Claude Sonnet 4.6 and Gemini 3.8 Flash
BenchmarkClaude Sonnet 4.6Gemini 3.8 FlashLeader
AIME92.3%Not measuredOnly Claude Sonnet 4.6 measured
OTIS Mock AIME85.8%98.9%Gemini 3.8 Flash
FrontierMath, tiers 1 to 3Not measured68.4%Only Gemini 3.8 Flash measured
FrontierMath, tier 4Not measured22.0%Only Gemini 3.8 Flash measured
ProofBench45.0%48.0%Gemini 3.8 Flash
LMArena Text: math14621532Gemini 3.8 Flash
LMArena Text: mathematical work14831519Gemini 3.8 Flash
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index28
Knowledge benchmarks for Claude Sonnet 4.6 and Gemini 3.8 Flash
BenchmarkClaude Sonnet 4.6Gemini 3.8 FlashLeader
MMLU Pro87.3%90.2%Gemini 3.8 Flash
LegalBench (Vals AI)82.1%87.0%Gemini 3.8 Flash
CaseLaw (Vals AI)64.0%Not measuredOnly Claude Sonnet 4.6 measured
CorpFin (Vals AI)65.3%Not measuredOnly Claude Sonnet 4.6 measured
TaxEval (Vals AI)77.1%74.5%Claude Sonnet 4.6
MortgageTax (Vals AI)67.7%65.3%Claude Sonnet 4.6
MedQA (Vals AI)92.1%Not measuredOnly Claude Sonnet 4.6 measured
MedCode (Vals AI)Not measured48.1%Only Gemini 3.8 Flash measured
SimpleQA Verified35.5%69.7%Gemini 3.8 Flash
LMArena Text: science14741523Gemini 3.8 Flash
LMArena Text: medicine and healthcare14511508Gemini 3.8 Flash
LMArena Text: legal and government14701497Gemini 3.8 Flash
LMArena Text: business and finance14641479Gemini 3.8 Flash
FACTS Benchmark Suite37.0%69.4%Gemini 3.8 Flash
Neither model has a result on the other 4 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index18
Web design benchmarks for Claude Sonnet 4.6 and Gemini 3.8 Flash
BenchmarkClaude Sonnet 4.6Gemini 3.8 FlashLeader
Design Arena: websites12841300Gemini 3.8 Flash
Design Arena: UI components12691316Gemini 3.8 Flash
Design Arena: game dev12581304Gemini 3.8 Flash
Design Arena: data viz12781270Claude Sonnet 4.6
Design Arena: 3D12341294Gemini 3.8 Flash
Design Arena: all code categories12751303Gemini 3.8 Flash
Design Arena: SVG11961296Gemini 3.8 Flash
Design Arena: ASCII art12351262Gemini 3.8 Flash
LiveBench design71.8%72.7%Gemini 3.8 Flash
GeneralLike-for-likePublic boards, shown as published, kept out of the index227
General benchmarks for Claude Sonnet 4.6 and Gemini 3.8 Flash
BenchmarkClaude Sonnet 4.6Gemini 3.8 FlashLeader
Vals IndexNot measured56.0%Only Gemini 3.8 Flash measured
LiveBench data analysis76.1%54.0%Claude Sonnet 4.6
Public Benefits Bench (Vals AI)62.5%65.3%Gemini 3.8 Flash
SAGE (Vals AI)46.6%35.1%Claude Sonnet 4.6
MedScribe (Vals AI)Not measured84.5%Only Gemini 3.8 Flash measured
Vals Multimodal Index60.6%Not measuredOnly Claude Sonnet 4.6 measured
IFBench56.6%Not measuredOnly Claude Sonnet 4.6 measured
Long context reasoning (AA-LCR)80.0%84.0%Gemini 3.8 Flash
DTBench89.9%95.7%Gemini 3.8 Flash
LMCA46.5%52.9%Gemini 3.8 Flash
Surface Evolver BenchNot measured76.9%Only Gemini 3.8 Flash measured
Furniture assemblyNot measured31.7%Only Gemini 3.8 Flash measured
ExploitBench23.6%Not measuredOnly Claude Sonnet 4.6 measured
LMArena Text14581499Gemini 3.8 Flash
LMArena Text: instruction following14761492Gemini 3.8 Flash
LMArena Text: creative writing14351488Gemini 3.8 Flash
LMArena Vision12831315Gemini 3.8 Flash
LMArena Text: English14721498Gemini 3.8 Flash
LMArena Text: non-English14401491Gemini 3.8 Flash
LMArena Text: Chinese14911553Gemini 3.8 Flash
LMArena Text: German14281501Gemini 3.8 Flash
LMArena Text: Japanese14201507Gemini 3.8 Flash
LMArena Text: Korean14101464Gemini 3.8 Flash
LMArena Text: French14651496Gemini 3.8 Flash
LMArena Text: Spanish14641487Gemini 3.8 Flash
LMArena Text: Russian14401514Gemini 3.8 Flash
LMArena Text: Polish14431497Gemini 3.8 Flash
LMArena Text: multi-turn14641503Gemini 3.8 Flash
LMArena Text: longer queries14791507Gemini 3.8 Flash
LMArena Text: writing and language14441494Gemini 3.8 Flash
LMArena Text: entertainment and media14311480Gemini 3.8 Flash
LMArena Vision: English12981318Gemini 3.8 Flash
LMArena Vision: Chinese13071416Gemini 3.8 Flash
LMArena Vision: reading text12961333Gemini 3.8 Flash
LMArena Vision: humor12481321Gemini 3.8 Flash
LMArena Vision: recognizing things1195Not measuredOnly Claude Sonnet 4.6 measured
LMArena Vision: creative writing12721299Gemini 3.8 Flash
LMArena Document1482Not measuredOnly Claude Sonnet 4.6 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
Image generation benchmarks for Claude Sonnet 4.6 and Gemini 3.8 Flash
BenchmarkClaude Sonnet 4.6Gemini 3.8 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 4.6$0.011Fits in one request
Gemini 3.8 Flash$0.0026Fits in one request

Gemini 3.8 Flash costs less

Repository review

50K input + 3K output tokens

Claude Sonnet 4.6$0.195Fits in one request
Gemini 3.8 Flash$0.049Fits in one request

Gemini 3.8 Flash costs less

Agent loop

200K input + 10K output tokens

Claude Sonnet 4.6$0.750Fits in one request
Gemini 3.8 Flash$0.188Fits in one request

Gemini 3.8 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 4.6 and Gemini 3.8 Flash
SpecificationAnthropic Claude Sonnet 4.6Google Gemini 3.8 Flash
MakerAnthropicGoogle
WeightsNo public weights listedNo public weights listed
ReleasedFebruary 17, 2026September 2, 2026
Context window1M1.05M
Input $/Mtok$3.00$0.75
Output $/Mtok$15.00$3.75
Coding index57.361.6
Independent measurements behind it56
Cost per solved task$1.68$2.74
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Sonnet 4.6 better than Gemini 3.8 Flash for coding?

Pick Gemini 3.8 Flash for coding: it scores 61.6 on the Vibe Coding Index against 57.3 for Claude Sonnet 4.6. Pick Claude Sonnet 4.6 for a lower cost per solved task ($1.68 against $2.74) and work measured by Code migration (Vals AI) or Design Arena: agents building Android apps, where it leads.

Which is cheaper, Claude Sonnet 4.6 or Gemini 3.8 Flash?

Claude Sonnet 4.6 costs $3.00 per million input tokens and $15.00 per million output tokens; Gemini 3.8 Flash costs $0.75 and $3.75. Per solved SWE-bench Verified task, Claude Sonnet 4.6 costs $1.68 and Gemini 3.8 Flash $2.74.

Which has the bigger context window, Claude Sonnet 4.6 or Gemini 3.8 Flash?

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

How many benchmarks is the Claude Sonnet 4.6 vs Gemini 3.8 Flash comparison based on?

102 benchmarks have a result for both models as of October 22, 2026. Claude Sonnet 4.6's coding index rests on 5 independent benchmarks and Gemini 3.8 Flash's on 6. 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-4-6-vs-gemini-3-8-flash" title="Claude Sonnet 4.6 vs Gemini 3.8 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-4-6-vs-gemini-3-8-flash">LLMBenchmark.ai, Claude Sonnet 4.6 vs Gemini 3.8 Flash</a></p>