Model comparison

Claude Sonnet 4 vs Gemma 3 4B

Claude Sonnet 4 is the stronger model overall, scoring 40.8 to 28.1 on the Noometry Index. Gemma 3 4B costs 120× less per token, which makes it the better buy when Claude Sonnet 4's lead doesn't matter for your workload.

Last verified . 20 shared benchmarks.

Claude Sonnet 4 Anthropic

40.8

Rank #145 Confirmed

Gemma 3 4B Google

28.1

Rank #326 Confirmed

Summary

  • They share 20 benchmarks with published results for both. Claude Sonnet 4 scores higher in 8 categories and Gemma 3 4B in 1 category; 9 gaps are clear of the uncertainty.
  • The widest gap is in knowledge, where Claude Sonnet 4 leads 41.8 to 11.8.
  • The biggest single-benchmark swing is OTIS Mock AIME 2024-2025: 71.1% for Claude Sonnet 4 and 7.5% for Gemma 3 4B.
  • Gemma 3 4B is cheaper at $0.04 / $0.08 per million input/output tokens, against $3 / $15 for Claude Sonnet 4.
  • Claude Sonnet 4 accepts more context: 200K tokens versus 131K.
  • Gemma 3 4B has downloadable open weights; the other is API-only.

Side by side

Claude Sonnet 4 and Gemma 3 4B specifications
Claude Sonnet 4Gemma 3 4B
ProviderAnthropicGoogle
Noometry Index40.828.1
Released2025-05-222025-03-12
WeightsProprietaryOpen
Context window200K131K
Max output64K4K
Input $ / M tokens$3$0.04
Output $ / M tokens$15$0.08
Results tracked5822

Sponsored placements are available on pages like this one. Advertise on Noometry

Category by category

Coding Claude Sonnet 4 leads

Claude Sonnet 4: 43.5 (#88), Gemma 3 4B: 35.9 (#215)

Coding benchmarks
BenchmarkClaude Sonnet 4Gemma 3 4B
LMArena Coding14141230
SWE-bench Verified (bash only)64.9%—
Aider Polyglot61.3%—
SciCode40%—
GSO4.9%—
WeirdML46.1%—
ALE-Bench655.35—

Agentic & Tool Use Claude Sonnet 4 leads

Claude Sonnet 4: 38.5 (#31), Gemma 3 4B: 20.9 (#142)

Agentic & Tool Use benchmarks
BenchmarkClaude Sonnet 4Gemma 3 4B
Berkeley Function Calling Leaderboard—19.6%
TheAgentCompany33.1%—
Cybench35%—
DeepResearch Bench46.6%—
OSWorld43.9%—
METR Time Horizons62%—

Reasoning Claude Sonnet 4 leads

Claude Sonnet 4: 22.9 (#187), Gemma 3 4B: 13.2 (#335)

Reasoning benchmarks
BenchmarkClaude Sonnet 4Gemma 3 4B
Kagi LLM Benchmark73%25.2%
LMArena Hard Prompts13721253
DTBench77.1%50.9%
LMCA29%2.8%
Epoch Capabilities Index141.69116.02
ARC-AGI-25.9%—
SimpleBench45.5%—
ARC-AGI-140%—
CritPt0.3%—
Chess Puzzles—0%
EnigmaEval3.1%—
ForecastBench60.2—

Math Claude Sonnet 4 leads

Claude Sonnet 4: 43.3 (#80), Gemma 3 4B: 16.8 (#292)

Math benchmarks
BenchmarkClaude Sonnet 4Gemma 3 4B
OTIS Mock AIME 2024-202571.1%7.5%
LMArena Math13751239
Omni-MATH60.2%—
MATH Level 584.4%—
FrontierMath (Feb 2025 set)4.1%—
FrontierMath Tier 4 (v1)0%—

Knowledge Claude Sonnet 4 leads

Claude Sonnet 4: 41.8 (#108), Gemma 3 4B: 11.8 (#299)

Knowledge benchmarks
BenchmarkClaude Sonnet 4Gemma 3 4B
GPQA Diamond79.2%23.2%
Vectara Hallucination Rate10.3%6.4%
LMArena Expert13721223
Humanity's Last Exam7.8%—
MMLU-Pro84.3%—
Confabulations13.2%—
GPQA (HELM)70.6%—

Multimodal Not comparable

Claude Sonnet 4: 26.2 (#121), Gemma 3 4B: —

Multimodal benchmarks
BenchmarkClaude Sonnet 4Gemma 3 4B
LMArena Vision1191—
GeoBench37%—
VPCT34%—
MindCube44.8%—

Multilingual Claude Sonnet 4 leads

Claude Sonnet 4: 46.7 (#156), Gemma 3 4B: 42.5 (#194)

Multilingual benchmarks
BenchmarkClaude Sonnet 4Gemma 3 4B
LMArena Non-English13331273
LMArena German13311281
LMArena Russian13551294
LMArena Chinese1350—
LMArena French1363—
LMArena Japanese1302—
LMArena Korean1291—
LMArena Spanish1357—

Instruction Following Claude Sonnet 4 leads

Claude Sonnet 4: 71.7 (#145), Gemma 3 4B: 65.2 (#225)

Instruction Following benchmarks
BenchmarkClaude Sonnet 4Gemma 3 4B
LMArena Instruction Following13761239
IFEval84%—

Long Context Gemma 3 4B leads

Claude Sonnet 4: 33.7 (#259), Gemma 3 4B: 38.7 (#194)

Long Context benchmarks
BenchmarkClaude Sonnet 4Gemma 3 4B
LMArena Longer Query13981273
Fiction.LiveBench46.9%—

Writing & Preference Claude Sonnet 4 leads

Claude Sonnet 4: 57.1 (#132), Gemma 3 4B: 42.0 (#239)

Writing & Preference benchmarks
BenchmarkClaude Sonnet 4Gemma 3 4B
LMArena Text13511291
LMArena Creative Writing13451271
EQ-Bench Creative Writing14831068
LMArena Multi-Turn13761255
Short-Story Creative Writing81.4%—
WildBench83.8%—

Frequently asked questions

Is Claude Sonnet 4 better than Gemma 3 4B?

Claude Sonnet 4 is the stronger model overall, scoring 40.8 to 28.1 on the Noometry Index. Gemma 3 4B costs 120× less per token, which makes it the better buy when Claude Sonnet 4's lead doesn't matter for your workload.

Which is cheaper, Claude Sonnet 4 or Gemma 3 4B?

Gemma 3 4B is cheaper. It lists at $0.04 per million input tokens and $0.08 per million output tokens; Claude Sonnet 4 lists at $3 and $15.

Is Claude Sonnet 4 or Gemma 3 4B better for coding?

Claude Sonnet 4 scores higher on coding benchmarks: 43.5 versus 35.9 in the Noometry coding category.

Which has the bigger context window?

Claude Sonnet 4 does, with 200K tokens against 131K.

How many benchmarks do Claude Sonnet 4 and Gemma 3 4B share?

20 benchmarks have published results for both models. Claude Sonnet 4 has 58 scored results on Noometry and Gemma 3 4B has 22.

Related comparisons

Go deeper