Claude Sonnet 5 vs Gemini 3.8 Flash
Wins 1 of 8 areas
Math
Wins 6 of 8 areas
Coding · Agents · Reasoning · Facts · Images and charts · Following instructions
Gemini 3.8 Flash is the stronger all-rounder.Claude Sonnet 5 is better at math.
Scores updated · 42 tests both models report · How we compare
Where each one wins
Tests won in each of the eight areas we test. Each piece is one test, so a longer bar means more evidence; grey means the two scored within a point of each other.
- ReasoningHard problems that need careful thinking04Gemini 3.8 Flash4 of 5 tests · 1 tie
- CodingWriting and fixing software23Gemini 3.8 Flash3 of 5 tests
- AgentsCarrying out multi-step tasks on its own12Gemini 3.8 Flash2 of 3 tests
- FactsGetting facts right instead of making them up12Gemini 3.8 Flash2 of 3 tests
- Images and chartsUnderstanding pictures, charts and video12Gemini 3.8 Flash2 of 3 tests
- Following instructionsDoing exactly what it is asked01Gemini 3.8 Flash1 of 1 test
- MathCompetition and research-level math21Claude Sonnet 52 of 3 tests
- Long documentsFinding answers in very long texts00Even0 each · 1 tie
Long documents and following instructions rest on a single test each.
What it costs
Prices per million tokens, roughly 750,000 words. The bars show the cost of a million tokens read plus a million written.
Gemini 3.8 Flash costs 63% less for the same work.
The biggest differences
The three tests each model wins by the widest margin. Scores are out of 100.
Where Gemini 3.8 Flash pulls ahead
- Short factual questions, answered correctlySimpleQA Verified+36points ahead
- Common-sense trick questionsSimpleBench+21.8points ahead
- Follows detailed instructions exactlyLiveBench · Instruction Following+17.5points ahead
Where Claude Sonnet 5 pulls ahead
- Avoids making up answers it doesn't knowAA-Omniscience · Non-hallucination+15.8points ahead
- Programming problems, refreshed regularlyLiveBench · Coding+8.2points ahead
- Extremely hard research-level math problemsFrontierMath Tier 4+7.3points ahead
Every test, side by side
All 42 tests both models report. The winning score is in its model's colour; marks a score checked independently.
CodingGemini 3.8 Flash
- LiveBench · CodingClaude Sonnet 5 by 8.280.772.5+8.2
- Terminal-Bench 2.1Gemini 3.8 Flash by 7.180.587.6+7.1
- LiveBench · Agentic CodingClaude Sonnet 5 by 5.259.454.2+5.2
- LMArena · WebDevGemini 3.8 Flash by 43 rating points15401583+43 rating
- SciCodeGemini 3.8 Flash by 2.354.356.6+2.3
AgentsGemini 3.8 Flash
- τ-Bench V3 · BankingGemini 3.8 Flash by 7.637.344.9+7.6
- Terminal-Bench 4.0Gemini 3.8 Flash by 5.614.119.7+5.6
- GDPValClaude Sonnet 5 by 1.448.246.8+1.4
ReasoningGemini 3.8 Flash
- SimpleBenchGemini 3.8 Flash by 21.860.682.4+21.8
- Humanity's Last ExamGemini 3.8 Flash by 6.541.347.8+6.5
- GPQA DiamondGemini 3.8 Flash by 4.291.195.3+4.2
- CritPtGemini 3.8 Flash by 1.416.918.3+1.4
- LiveBench · Reasoningtie88.789.3tie
FactsGemini 3.8 Flash
- SimpleQA VerifiedGemini 3.8 Flash by 3633.769.7+36
- AA-Omniscience · Non-hallucinationClaude Sonnet 5 by 15.860.644.8+15.8
- AA-Omniscience · AccuracyGemini 3.8 Flash by 14.54054.6+14.5
Images and chartsGemini 3.8 Flash
- MMMU-ProGemini 3.8 Flash by 8.377.385.6+8.3
- LMArena · VisionGemini 3.8 Flash by 44 rating points12721316+44 rating
- CharXiv (RQ)Claude Sonnet 5 by 2.188.386.2+2.1
MathClaude Sonnet 5
- FrontierMath Tier 4Claude Sonnet 5 by 7.329.321.9+7.3
- FrontierMath Tiers 1-3 (v2)Gemini 3.8 Flash by 2.865.668.4+2.8
- LiveBench · MathematicsClaude Sonnet 5 by 1.392.991.6+1.3
Following instructionsGemini 3.8 Flash
- LiveBench · Instruction FollowingGemini 3.8 Flash by 17.563.981.4+17.5
Other results18 tests, not counted
Tests outside the eight areas. They are not counted above: several are summary scores built from other tests, or the same test under another name.
- GDP (Surge AI)Claude Sonnet 5 by 60.681.621+60.6
- HLE-VerifiedGemini 3.8 Flash by 23.93154.9+23.9
- DeepSWE 1.1Gemini 3.8 Flash by 19.75473.7+19.7
- LVBenchGemini 3.8 Flash by 18.668.587.1+18.6
- livebench_data_analysisClaude Sonnet 5 by 17.771.754+17.7
- OSWorld 2.0 (partial)Gemini 3.8 Flash by 16.442.659+16.4
- AA-OmniscienceGemini 3.8 Flash by 13.116.429.6+13.1
- livebench_languageGemini 3.8 Flash by 12.87587.8+12.8
- HealthBenchClaude Sonnet 5 by 10.859.248.4+10.8
- GDPval-AA v2Claude Sonnet 5 by 73 rating points16181545+73 rating
- Terminal-Bench 4.0Gemini 3.8 Flash by 7.312.419.7+7.3
- GDP.PDF (All pass rate)Gemini 3.8 Flash by 72835+7
- HealthBench ProfessionalClaude Sonnet 5 by 6.157.851.7+6.1
- Artificial Analysis Coding IndexGemini 3.8 Flash by 4.871.576.3+4.8
- GDPval-AA v2 EloClaude Sonnet 5 by 39 rating points15841545+39 rating
- AA Agentic IndexClaude Sonnet 5 by 3.244.341.1+3.2
- AA IntelligenceGemini 3.8 Flash by 2.738.240.9+2.7
- GDPval-AA 2.1tie14491444tie
Questions people ask
Which is better, Claude Sonnet 5 or Gemini 3.8 Flash?
Gemini 3.8 Flash wins six of the eight areas we test: coding, agents, reasoning, facts, images and charts and following instructions. Claude Sonnet 5 wins math. They are level on long documents.
Which is better for coding?
Gemini 3.8 Flash. It wins 3 of the 5 coding tests both models report; Claude Sonnet 5 wins 2.
Which is cheaper?
Claude Sonnet 5 costs $2.00 per million input tokens and $10.00 per million output tokens; Gemini 3.8 Flash costs $0.75 and $3.75. That makes Gemini 3.8 Flash about 63% cheaper for the same work.
How do you compare the two?
We use the 42 benchmark tests both models have published scores on. The verdict counts the 24 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 18 are listed but not counted, because several are summary scores or repeat a test. Each score is the one shown on the model's own page.