Claude Sonnet 4.5 vs Granite 4.2 8B
Wins 4 of 6 areas
Coding · Agents · Reasoning · Long documents
Wins 1 of 6 areas
Following instructions
Claude Sonnet 4.5 is the stronger all-rounder.Granite 4.2 8B is cheaper and better at following instructions.
Scores updated · 24 tests both models report · How we compare
Where each one wins
Tests won in each of the six areas where both have results. Each piece is one test, so a longer bar means more evidence; grey means the two scored within a point of each other.
- CodingWriting and fixing software51Claude Sonnet 4.55 of 6 tests
- AgentsCarrying out multi-step tasks on its own20Claude Sonnet 4.52 of 3 tests · 1 tie
- ReasoningHard problems that need careful thinking20Claude Sonnet 4.52 of 3 tests · 1 tie
- Long documentsFinding answers in very long texts10Claude Sonnet 4.51 of 1 test
- Following instructionsDoing exactly what it is asked01Granite 4.2 8B1 of 1 test
- FactsGetting facts right instead of making them up11Even1 each
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.
Granite 4.2 8B costs 98% less for the same work.
The biggest differences
The three tests each model wins by the widest margin. Scores are out of 100.
Where Claude Sonnet 4.5 pulls ahead
- Command-line tasks in a real terminalTerminal-Bench 2.1+37.4points ahead
- Fixes real GitHub issues in many programming languagesSWE-bench Multilingual+36.2points ahead
- Fixes real GitHub issues in Python projectsSWE-bench Verified+30.5points ahead
Where Granite 4.2 8B pulls ahead
- Follows unfamiliar, precisely checkable instructionsIFBench+22points ahead
- Avoids making up answers it doesn't knowAA-Omniscience · Non-hallucination+17.1points ahead
- Recent programming contest problemsLiveCodeBench v6+9.2points ahead
Every test, side by side
All 24 tests both models report. The winning score is in its model's colour; marks a score checked independently.
CodingClaude Sonnet 4.5
- Terminal-Bench 2.1Claude Sonnet 4.5 by 37.455.818.4+37.4
- SWE-bench MultilingualClaude Sonnet 4.5 by 36.26730.8+36.2
- SWE-bench VerifiedClaude Sonnet 4.5 by 30.578.247.7+30.5
- SWE-bench ProClaude Sonnet 4.5 by 24.543.619.1+24.5
- SciCodeClaude Sonnet 4.5 by 14.245.731.5+14.2
- LiveCodeBench v6Granite 4.2 8B by 9.26473.2+9.2
AgentsClaude Sonnet 4.5
- GDPValClaude Sonnet 4.5 by 20.520.50+20.5
- τ-Bench V3 · BankingClaude Sonnet 4.5 by 16.924.57.6+16.9
- Terminal-Bench 4.0tie00tie
ReasoningClaude Sonnet 4.5
- GPQA DiamondClaude Sonnet 4.5 by 20.383.463.1+20.3
- Humanity's Last ExamClaude Sonnet 4.5 by 8.117.89.7+8.1
- CritPttie1.10.3tie
FactsEven
- AA-Omniscience · AccuracyClaude Sonnet 4.5 by 21.732.911.2+21.7
- AA-Omniscience · Non-hallucinationGranite 4.2 8B by 17.150.968+17.1
Long documentsClaude Sonnet 4.5
- AA-LCRClaude Sonnet 4.5 by 27.372.345+27.3
Following instructionsGranite 4.2 8B
- IFBenchGranite 4.2 8B by 2257.379.3+22
Other results8 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.
- Artificial Analysis Coding IndexClaude Sonnet 4.5 by 29.752.122.4+29.7
- AA-OmniscienceClaude Sonnet 4.5 by 17.1-0.1-17.2+17.1
- MMLU-ProClaude Sonnet 4.5 by 14.288.274+14.2
- AA Agentic IndexClaude Sonnet 4.5 by 13.817.53.7+13.8
- AA IntelligenceClaude Sonnet 4.5 by 9.620.711.1+9.6
- HMMT 2025Granite 4.2 8B by 3.774.678.3+3.7
- AIME25 no toolsClaude Sonnet 4.5 by 1.38886.7+1.3
- AIME 2025tie8786.7tie
Questions people ask
Which is better, Claude Sonnet 4.5 or Granite 4.2 8B?
Claude Sonnet 4.5 wins four of the six areas where both have results: coding, agents, reasoning and long documents. Granite 4.2 8B wins following instructions, and costs 98% less. They are level on facts.
Which is better for coding?
Claude Sonnet 4.5. It wins 5 of the 6 coding tests both models report; Granite 4.2 8B wins 1.
Which is cheaper?
Claude Sonnet 4.5 costs $3.00 per million input tokens and $15.00 per million output tokens; Granite 4.2 8B costs $0.06 and $0.25. That makes Granite 4.2 8B about 98% cheaper for the same work.
How do you compare the two?
We use the 24 benchmark tests both models have published scores on. The verdict counts the 16 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 8 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.