Enter opens the highlighted result. Esc closes.

Gemma 2 27B vs Gemma 3 4B

Gemma 3 4B costs 8.7x less per output token than Gemma 2 27B ($0.075 vs $0.65 per million). Updated October 21, 2026; 27 benchmarks have a result for both.

Gemma 2 27BGoogle
Coding
No data
Overall
No data
Output $/M
$0.65
3
Gemma 3 4BGoogle
Coding
No data
Overall
22.6
Output $/M
$0.075
24
vs boards won of 27 shared

Gemma 2 27B or Gemma 3 4B: which to pick

Neither model has a coding score yet, so the two cannot be ranked on coding.

Pick Gemma 2 27B for work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.

Shared results
27
Gemma 2 27B only
9
Gemma 3 4B only
15
Like-for-like categories
6 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
Gemma 2 27B not benchmarked, Gemma 3 4B not benchmarked.
Widest category
Knowledge, 17.1 points apart on average over 4 shared benchmarks.
Widest single gap
LMArena Text: medicine and healthcare: Gemma 2 27B 1198 against Gemma 3 4B 1342, 24.0 points apart on a 0 to 100 scale.
Output price
Gemma 2 27B $0.65 against Gemma 3 4B $0.075 per million output tokens, 8.7x apart.
Context window
Gemma 2 27B takes 8K tokens, Gemma 3 4B 131K.

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
CategoryGemma 2 27BBarsGemma 3 4BTies
Coding02
Intelligence10
Reasoning13
Math03
Knowledge04
General112
All shared boards324
CodingLike-for-likeSix of these boards feed the Vibe Coding Index02
Coding benchmarks for Gemma 2 27B and Gemma 3 4B
BenchmarkGemma 2 27BGemma 3 4BLeader
AA Coding IndexNot measured2.7Only Gemma 3 4B measured
LiveCodeBench (Artificial Analysis run)Not measured11.2%Only Gemma 3 4B measured
Terminal-Bench Hard (Artificial Analysis run)Not measured0.8%Only Gemma 3 4B measured
LMArena Text: coding12111230Gemma 3 4B
LMArena Text: software and IT12281269Gemma 3 4B
SciCodeNot measured0.0%Only Gemma 3 4B measured
Neither model has a result on the other 33 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Gemma 2 27B and Gemma 3 4B
BenchmarkGemma 2 27BGemma 3 4BLeader
AA Intelligence IndexNot measured4.8Only Gemma 3 4B measured
Epoch Capabilities Index122.1115.9Gemma 2 27B
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index2 boards, none shared
Agentic work benchmarks for Gemma 2 27B and Gemma 3 4B
BenchmarkGemma 2 27BGemma 3 4BLeader
τ²-Bench TelecomNot measured5.0%Only Gemma 3 4B measured
Berkeley Function Calling Leaderboard (BFCL)Not measured19.6%Only Gemma 3 4B measured
Neither model has a result on the other 39 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index13
Reasoning benchmarks for Gemma 2 27B and Gemma 3 4B
BenchmarkGemma 2 27BGemma 3 4BLeader
GPQA Diamond (Artificial Analysis run)Not measured29.1%Only Gemma 3 4B measured
Humanity's Last Exam (Artificial Analysis run)Not measured5.3%Only Gemma 3 4B measured
GPQA Diamond (Epoch AI run)36.5%23.2%Gemma 2 27B
LMArena Text: hard prompts11981253Gemma 3 4B
LMArena Text: expert11711223Gemma 3 4B
LMArena Text: hard prompts in English12061253Gemma 3 4B
Kagi LLM BenchmarkNot measured25.2%Only Gemma 3 4B measured
Neither model has a result on the other 15 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index03
Math benchmarks for Gemma 2 27B and Gemma 3 4B
BenchmarkGemma 2 27BGemma 3 4BLeader
AA Math IndexNot measured12.7Only Gemma 3 4B measured
AIME 2025 (Artificial Analysis run)Not measured12.7%Only Gemma 3 4B measured
OTIS Mock AIME1.4%7.5%Gemma 3 4B
MATH level 527.9%Not measuredOnly Gemma 2 27B measured
LMArena Text: math12121239Gemma 3 4B
LMArena Text: mathematical work12211256Gemma 3 4B
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index04
Knowledge benchmarks for Gemma 2 27B and Gemma 3 4B
BenchmarkGemma 2 27BGemma 3 4BLeader
LegalBench (Vals AI)68.0%Not measuredOnly Gemma 2 27B measured
MMLU Pro (Artificial Analysis run)Not measured41.7%Only Gemma 3 4B measured
MMLU75.7%Not measuredOnly Gemma 2 27B measured
LMArena Text: science12281306Gemma 3 4B
LMArena Text: medicine and healthcare11981342Gemma 3 4B
LMArena Text: legal and government12411327Gemma 3 4B
LMArena Text: business and finance12081311Gemma 3 4B
Neither model has a result on the other 11 boards here
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Web design benchmarks for Gemma 2 27B and Gemma 3 4B
BenchmarkGemma 2 27BGemma 3 4BLeader
Neither model has a result on 9 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index112
General benchmarks for Gemma 2 27B and Gemma 3 4B
BenchmarkGemma 2 27BGemma 3 4BLeader
IFBenchNot measured28.3%Only Gemma 3 4B measured
Long context reasoning (AA-LCR)Not measured6.7%Only Gemma 3 4B measured
DTBench48.0%50.9%Gemma 3 4B
LMCA7.1%2.8%Gemma 2 27B
LMArena Text12311291Gemma 3 4B
LMArena Text: instruction following12061239Gemma 3 4B
LMArena Text: creative writing12401270Gemma 3 4B
LMArena Text: English12421300Gemma 3 4B
LMArena Text: non-English12171273Gemma 3 4B
LMArena Text: Chinese1221Not measuredOnly Gemma 2 27B measured
LMArena Text: German12091281Gemma 3 4B
LMArena Text: Japanese1175Not measuredOnly Gemma 2 27B measured
LMArena Text: Korean1174Not measuredOnly Gemma 2 27B measured
LMArena Text: French1248Not measuredOnly Gemma 2 27B measured
LMArena Text: Spanish1228Not measuredOnly Gemma 2 27B measured
LMArena Text: Russian12341294Gemma 3 4B
LMArena Text: Polish1277Not measuredOnly Gemma 2 27B measured
LMArena Text: multi-turn12241255Gemma 3 4B
LMArena Text: longer queries12301273Gemma 3 4B
LMArena Text: writing and language12491288Gemma 3 4B
LMArena Text: entertainment and media12121233Gemma 3 4B
Neither model has a result on the other 25 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Gemma 2 27B and Gemma 3 4B
BenchmarkGemma 2 27BGemma 3 4BLeader
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

Gemma 2 27B$0.0010Fits in one request
Gemma 3 4B$0.0001Fits in one request

Gemma 3 4B costs less

Repository review

50K input + 3K output tokens

Gemma 2 27B$0.034Exceeds the context window
Gemma 3 4B$0.0025Fits in one request

Gemma 3 4B costs less

Agent loop

200K input + 10K output tokens

Gemma 2 27B$0.137Exceeds the context window
Gemma 3 4B$0.0097Exceeds the context window

Gemma 3 4B 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 Gemma 2 27B and Gemma 3 4B
SpecificationGoogle Gemma 2 27BGoogle Gemma 3 4B
MakerGoogleGoogle
WeightsOpen weightsOpen weights
ReleasedJuly 13, 2024March 13, 2025
Context window8K131K
Input $/Mtok$0.65$0.045
Output $/Mtok$0.65$0.075
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemma 2 27B better than Gemma 3 4B for coding?

Neither model has a coding score yet, so the two cannot be ranked on coding. Pick Gemma 2 27B for work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.

Which is cheaper, Gemma 2 27B or Gemma 3 4B?

Gemma 2 27B costs $0.65 per million input tokens and $0.65 per million output tokens; Gemma 3 4B costs $0.045 and $0.075. Cost per solved task is known for neither of them.

Which has the bigger context window, Gemma 2 27B or Gemma 3 4B?

Gemma 3 4B, with 131K tokens against 8K.

How many benchmarks is the Gemma 2 27B vs Gemma 3 4B comparison based on?

27 benchmarks have a result for both models as of October 21, 2026. Gemma 2 27B's coding index rests on 0 independent benchmarks and Gemma 3 4B's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next