Enter opens the highlighted result. Esc closes.

Claude Sonnet 4.5 vs Gemini 3.8 Flash

Gemini 3.8 Flash leads Claude Sonnet 4.5 on coding, 61.6 to 39.5 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; 74 benchmarks have a result for both.

Claude Sonnet 4.5Anthropic
Coding
39.5
Overall
49.5
Output $/M
$15.00
2
Gemini 3.8 FlashGoogle
Coding
61.6
Overall
69.0
Output $/M
$3.75
72
vs boards won of 74 shared

Claude Sonnet 4.5 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 39.5 for Claude Sonnet 4.5.

Pick Claude Sonnet 4.5 for a lower cost per solved task ($1.16 against $2.74) and work measured by SAGE (Vals AI) or MedScribe (Vals AI), where it leads.

Shared results
74
Claude Sonnet 4.5 only
21
Gemini 3.8 Flash only
54
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.5 39.5 from 3 benchmarks, Gemini 3.8 Flash 61.6 from 6 benchmarks.
Widest category
Coding, 24.6 points apart on average over 10 shared benchmarks.
Widest single gap
ARC-AGI-2: Claude Sonnet 4.5 13.6% against Gemini 3.8 Flash 89.2%, 75.6 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 4.5 $15.00 against Gemini 3.8 Flash $3.75 per million output tokens, 4.0x apart.
Context window
Claude Sonnet 4.5 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.5BarsGemini 3.8 FlashTies
Coding010
Intelligence02
Agentic work06
Reasoning010
Math06
Knowledge011
Web design08
General219
All shared boards272
CodingLike-for-likeSix of these boards feed the Vibe Coding Index010
Coding benchmarks for Claude Sonnet 4.5 and Gemini 3.8 Flash
BenchmarkClaude Sonnet 4.5Gemini 3.8 FlashLeader
SWE-bench Verified74.8%Not measuredOnly Claude Sonnet 4.5 measured
SWE-bench Multilingual67.0%Not measuredOnly Claude Sonnet 4.5 measured
LiveBench codingNot measured82.2%Only Gemini 3.8 Flash measured
LMArena WebDev13941585Gemini 3.8 Flash
AA Coding Index52.176.3Gemini 3.8 Flash
LiveCodeBench (Vals AI)73.0%89.5%Gemini 3.8 Flash
SWE-bench Verified (Vals AI)70.0%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)22.6%78.7%Gemini 3.8 Flash
Code migration (Vals AI)Not measured36.5%Only Gemini 3.8 Flash measured
ProgramBench (Vals AI)Not measured1.0%Only Gemini 3.8 Flash measured
IOI (Vals AI)Not measured56.9%Only Gemini 3.8 Flash measured
Terminal-Bench 2.1 (Vals AI)Not measured81.3%Only Gemini 3.8 Flash measured
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)Not measured58.0%Only Gemini 3.8 Flash measured
CyberBench (Vals AI)Not measured43.8%Only Gemini 3.8 Flash measured
SciCodeNot measured56.6%Only Gemini 3.8 Flash measured
Terminal-Bench46.5%Not measuredOnly Claude Sonnet 4.5 measured
FrontierCodeNot measured41.2%Only Gemini 3.8 Flash measured
FrontierSWENot measured19.6%Only Gemini 3.8 Flash measured
GSO-Bench14.7%Not measuredOnly Claude Sonnet 4.5 measured
WeirdML47.7%84.8%Gemini 3.8 Flash
Cybench60.0%Not measuredOnly Claude Sonnet 4.5 measured
ALE-BenchNot measured1269.7Only Gemini 3.8 Flash measured
LMArena Text: coding14881508Gemini 3.8 Flash
LMArena Text: software and IT14731507Gemini 3.8 Flash
LMArena WebDev: React13861577Gemini 3.8 Flash
LMArena WebDev: HTML13991616Gemini 3.8 Flash
LMArena WebDev: from an imageNot measured1593Only Gemini 3.8 Flash measured
SciCodeNot measured12.3%Only Gemini 3.8 Flash measured
Neither model has a result on the other 8 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Claude Sonnet 4.5 and Gemini 3.8 Flash
BenchmarkClaude Sonnet 4.5Gemini 3.8 FlashLeader
AA Intelligence Index20.740.9Gemini 3.8 Flash
Epoch Capabilities Index146.7157.4Gemini 3.8 Flash
Agentic workLike-for-likePublic boards, shown as published, kept out of the index06
Agentic work benchmarks for Claude Sonnet 4.5 and Gemini 3.8 Flash
BenchmarkClaude Sonnet 4.5Gemini 3.8 FlashLeader
AA Agentic Index15.840.2Gemini 3.8 Flash
Design Arena: agents building web apps10601238Gemini 3.8 Flash
Design Arena: agents building full-stack apps10501244Gemini 3.8 Flash
Design Arena: agents building mobile apps11371236Gemini 3.8 Flash
Design Arena: agents building Android appsNot measured1078Only Gemini 3.8 Flash measured
Design Arena: agents building Godot gamesNot measured1273Only Gemini 3.8 Flash measured
Design Arena: PowerPoint slidesNot measured1153Only Gemini 3.8 Flash measured
Design Arena: spreadsheetsNot measured1022Only Gemini 3.8 Flash measured
LiveBench researchNot measured79.1%Only Gemini 3.8 Flash measured
LiveBench browserNot measured64.0%Only Gemini 3.8 Flash measured
LiveBench long agenticNot measured30.1%Only Gemini 3.8 Flash measured
SREBench (Vals AI)Not measured11.1%Only Gemini 3.8 Flash measured
Finance Agent (Vals AI)Not measured61.4%Only Gemini 3.8 Flash measured
Tax Agent Bench (Vals AI)Not measured32.1%Only Gemini 3.8 Flash measured
Legal Research Bench (Vals AI)Not measured38.9%Only Gemini 3.8 Flash measured
Harvey's Legal Agent Benchmark (Vals AI)Not measured12.1%Only Gemini 3.8 Flash measured
Excel Modeling Benchmark (Vals AI)Not measured72.2%Only Gemini 3.8 Flash measured
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
APEX-AgentsNot measured64.3%Only Gemini 3.8 Flash measured
METR time horizons67.4%Not measuredOnly Claude Sonnet 4.5 measured
Remote Labor Index2.1%5.8%Gemini 3.8 Flash
GDPval42.5%Not measuredOnly Claude Sonnet 4.5 measured
DeepResearch Bench52.6%Not measuredOnly Claude Sonnet 4.5 measured
OSWorld62.9%Not measuredOnly Claude Sonnet 4.5 measured
Vending-Bench 2$3,839$5,094Gemini 3.8 Flash
Berkeley Function Calling Leaderboard (BFCL)73.2%Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 11 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index010
Reasoning benchmarks for Claude Sonnet 4.5 and Gemini 3.8 Flash
BenchmarkClaude Sonnet 4.5Gemini 3.8 FlashLeader
GPQA Diamond81.6%94.4%Gemini 3.8 Flash
LiveBench reasoningNot measured89.3%Only Gemini 3.8 Flash measured
MysteryMechanism (Vals AI)Not measured36.5%Only Gemini 3.8 Flash measured
MMMU Pro (Vals AI)79.3%89.1%Gemini 3.8 Flash
GPQA Diamond (Artificial Analysis run)Not measured95.3%Only Gemini 3.8 Flash measured
Humanity's Last Exam (Artificial Analysis run)Not measured47.8%Only Gemini 3.8 Flash measured
GPQA Diamond (Epoch AI run)82.3%95.4%Gemini 3.8 Flash
ARC-AGI63.7%98.5%Gemini 3.8 Flash
ARC-AGI-213.6%89.2%Gemini 3.8 Flash
SimpleBench54.3%Not measuredOnly Claude Sonnet 4.5 measured
Chess puzzles10.0%58.0%Gemini 3.8 Flash
Mystery game puzzles17.0%47.0%Gemini 3.8 Flash
EBR-bench2.4%Not measuredOnly Claude Sonnet 4.5 measured
VPCT39.8%Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: hard prompts14621509Gemini 3.8 Flash
LMArena Text: expert14831526Gemini 3.8 Flash
LMArena Text: hard prompts in English14711504Gemini 3.8 Flash
LMArena Vision: diagramsNot measured1345Only Gemini 3.8 Flash measured
LMArena Vision: homeworkNot measured1351Only Gemini 3.8 Flash measured
Kagi LLM Benchmark57.9%Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 2 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index06
Math benchmarks for Claude Sonnet 4.5 and Gemini 3.8 Flash
BenchmarkClaude Sonnet 4.5Gemini 3.8 FlashLeader
AIME88.2%Not measuredOnly Claude Sonnet 4.5 measured
MGSM (Vals AI)94.3%Not measuredOnly Claude Sonnet 4.5 measured
OTIS Mock AIME77.8%98.9%Gemini 3.8 Flash
FrontierMath, tiers 1 to 323.9%68.4%Gemini 3.8 Flash
FrontierMath, tier 42.4%22.0%Gemini 3.8 Flash
ProofBench19.0%48.0%Gemini 3.8 Flash
MATH level 597.7%Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: math14491532Gemini 3.8 Flash
LMArena Text: mathematical work14621519Gemini 3.8 Flash
Neither model has a result on the other 4 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index011
Knowledge benchmarks for Claude Sonnet 4.5 and Gemini 3.8 Flash
BenchmarkClaude Sonnet 4.5Gemini 3.8 FlashLeader
MMLU Pro87.4%90.2%Gemini 3.8 Flash
LegalBench (Vals AI)84.1%87.0%Gemini 3.8 Flash
CaseLaw (Vals AI)62.2%Not measuredOnly Claude Sonnet 4.5 measured
CorpFin (Vals AI)62.0%Not measuredOnly Claude Sonnet 4.5 measured
TaxEval (Vals AI)73.3%74.5%Gemini 3.8 Flash
MortgageTax (Vals AI)64.0%65.3%Gemini 3.8 Flash
MedQA (Vals AI)94.7%Not measuredOnly Claude Sonnet 4.5 measured
MedCode (Vals AI)44.1%48.1%Gemini 3.8 Flash
SimpleQA Verified30.7%69.7%Gemini 3.8 Flash
LMArena Text: science14481523Gemini 3.8 Flash
LMArena Text: medicine and healthcare14441508Gemini 3.8 Flash
LMArena Text: legal and government14511497Gemini 3.8 Flash
LMArena Text: business and finance14401479Gemini 3.8 Flash
FACTS Benchmark Suite40.6%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 index08
Web design benchmarks for Claude Sonnet 4.5 and Gemini 3.8 Flash
BenchmarkClaude Sonnet 4.5Gemini 3.8 FlashLeader
Design Arena: websites11891300Gemini 3.8 Flash
Design Arena: UI components11701316Gemini 3.8 Flash
Design Arena: game dev11661304Gemini 3.8 Flash
Design Arena: data viz11671270Gemini 3.8 Flash
Design Arena: 3D11571294Gemini 3.8 Flash
Design Arena: all code categories11821303Gemini 3.8 Flash
Design Arena: SVG11151296Gemini 3.8 Flash
Design Arena: ASCII art12051262Gemini 3.8 Flash
LiveBench designNot measured72.7%Only Gemini 3.8 Flash measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index219
General benchmarks for Claude Sonnet 4.5 and Gemini 3.8 Flash
BenchmarkClaude Sonnet 4.5Gemini 3.8 FlashLeader
Vals IndexNot measured56.0%Only Gemini 3.8 Flash measured
LiveBench data analysisNot measured54.0%Only Gemini 3.8 Flash measured
Public Benefits Bench (Vals AI)Not measured65.3%Only Gemini 3.8 Flash measured
SAGE (Vals AI)36.1%35.1%Claude Sonnet 4.5
MedScribe (Vals AI)84.5%84.5%Claude Sonnet 4.5
Long context reasoning (AA-LCR)Not measured84.0%Only Gemini 3.8 Flash measured
DTBench83.2%95.7%Gemini 3.8 Flash
LMCA38.8%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
LMArena Text14381499Gemini 3.8 Flash
LMArena Text: instruction following14591492Gemini 3.8 Flash
LMArena Text: creative writing14421488Gemini 3.8 Flash
LMArena VisionNot measured1315Only Gemini 3.8 Flash measured
LMArena Text: English14501498Gemini 3.8 Flash
LMArena Text: non-English14251491Gemini 3.8 Flash
LMArena Text: Chinese14601553Gemini 3.8 Flash
LMArena Text: German14271501Gemini 3.8 Flash
LMArena Text: Japanese13901507Gemini 3.8 Flash
LMArena Text: Korean14021464Gemini 3.8 Flash
LMArena Text: French14591496Gemini 3.8 Flash
LMArena Text: Spanish14581487Gemini 3.8 Flash
LMArena Text: Russian14371514Gemini 3.8 Flash
LMArena Text: Polish14231497Gemini 3.8 Flash
LMArena Text: multi-turn14651503Gemini 3.8 Flash
LMArena Text: longer queries14751507Gemini 3.8 Flash
LMArena Text: writing and language14421494Gemini 3.8 Flash
LMArena Text: entertainment and media14281480Gemini 3.8 Flash
LMArena Vision: EnglishNot measured1318Only Gemini 3.8 Flash measured
LMArena Vision: ChineseNot measured1416Only Gemini 3.8 Flash measured
LMArena Vision: reading textNot measured1333Only Gemini 3.8 Flash measured
LMArena Vision: humorNot measured1321Only Gemini 3.8 Flash measured
LMArena Vision: creative writingNot measured1299Only Gemini 3.8 Flash measured
LMArena Document1450Not measuredOnly Claude Sonnet 4.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 4.5 and Gemini 3.8 Flash
BenchmarkClaude Sonnet 4.5Gemini 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.5$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.5$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.5$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.5 and Gemini 3.8 Flash
SpecificationAnthropic Claude Sonnet 4.5Google Gemini 3.8 Flash
MakerAnthropicGoogle
WeightsNo public weights listedNo public weights listed
ReleasedSeptember 29, 2025September 2, 2026
Context window1M1.05M
Input $/Mtok$3.00$0.75
Output $/Mtok$15.00$3.75
Coding index39.561.6
Independent measurements behind it36
Cost per solved task$1.16$2.74
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Sonnet 4.5 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 39.5 for Claude Sonnet 4.5. Pick Claude Sonnet 4.5 for a lower cost per solved task ($1.16 against $2.74) and work measured by SAGE (Vals AI) or MedScribe (Vals AI), where it leads.

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

Claude Sonnet 4.5 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.5 costs $1.16 and Gemini 3.8 Flash $2.74.

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

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

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

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