Enter opens the highlighted result. Esc closes.

Gemma 3 4B vs Qwen3.8 27B

Qwen3.8 27B leads Gemma 3 4B on the Artificial Analysis Intelligence Index, 33.7 to 4.8, and Gemma 3 4B costs 34.0x less per output token ($0.075 vs $2.55 per million). Updated October 22, 2026; 30 benchmarks have a result for both.

Gemma 3 4BGoogle
Coding
No data
Overall
22.6
Output $/M
$0.075
0
Qwen3.8 27BQwen
Coding
74.2
Overall
59.6
Output $/M
$2.55
30
vs boards won of 30 shared

Gemma 3 4B or Qwen3.8 27B: which to pick

Only Qwen3.8 27B has a coding score, 74.2 on the Vibe Coding Index; Gemma 3 4B has none, so the two cannot be ranked on coding.

Pick Gemma 3 4B for output tokens 34.0x cheaper ($0.075 vs $2.55 per million).

Shared results
30
Gemma 3 4B only
12
Qwen3.8 27B only
55
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 3 4B not benchmarked, Qwen3.8 27B 74.2 from 4 benchmarks.
Widest category
Coding, 47.5 points apart on average over 3 shared benchmarks.
Widest single gap
Long context reasoning (AA-LCR): Gemma 3 4B 6.7% against Qwen3.8 27B 82.0%, 75.3 points apart on a 0 to 100 scale.
Output price
Gemma 3 4B $0.075 against Qwen3.8 27B $2.55 per million output tokens, 34.0x apart.
Context window
Gemma 3 4B takes 131K tokens, Qwen3.8 27B 1M.

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 3 4BBarsQwen3.8 27BTies
Coding03
Intelligence02
Reasoning05
Math02
Knowledge04
General014
All shared boards030
CodingLike-for-likeSix of these boards feed the Vibe Coding Index03
Coding benchmarks for Gemma 3 4B and Qwen3.8 27B
BenchmarkGemma 3 4BQwen3.8 27BLeader
LiveBench codingNot measured86.8%Only Qwen3.8 27B measured
LMArena WebDevNot measured1593Only Qwen3.8 27B measured
AA Coding Index2.768.1Qwen3.8 27B
LiveCodeBench (Vals AI)Not measured84.0%Only Qwen3.8 27B measured
SWE-bench Verified (Vals AI)Not measured86.0%Only Qwen3.8 27B measured
Vibe Code Bench (Vals AI)Not measured64.8%Only Qwen3.8 27B measured
Code migration (Vals AI)Not measured14.2%Only Qwen3.8 27B measured
ProgramBench (Vals AI)Not measured0.0%Only Qwen3.8 27B measured
IOI (Vals AI)Not measured39.1%Only Qwen3.8 27B measured
Terminal-Bench 2.1 (Vals AI)Not measured58.4%Only Qwen3.8 27B measured
SkillsBench (Vals AI)Not measured38.1%Only Qwen3.8 27B measured
CyberBench (Vals AI)Not measured67.8%Only Qwen3.8 27B measured
LiveCodeBench (Artificial Analysis run)11.2%Not measuredOnly Gemma 3 4B measured
SciCodeNot measured46.6%Only Qwen3.8 27B measured
Terminal-Bench Hard (Artificial Analysis run)0.8%Not measuredOnly Gemma 3 4B measured
LMArena Text: coding12301483Qwen3.8 27B
LMArena Text: software and IT12691478Qwen3.8 27B
LMArena WebDev: ReactNot measured1602Only Qwen3.8 27B measured
LMArena WebDev: HTMLNot measured1570Only Qwen3.8 27B measured
LMArena WebDev: from an imageNot measured1577Only Qwen3.8 27B measured
SciCode0.0%Not measuredOnly Gemma 3 4B measured
Neither model has a result on the other 18 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Gemma 3 4B and Qwen3.8 27B
BenchmarkGemma 3 4BQwen3.8 27BLeader
AA Intelligence Index4.833.7Qwen3.8 27B
Epoch Capabilities Index115.9151.7Qwen3.8 27B
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index12 boards, none shared
Agentic work benchmarks for Gemma 3 4B and Qwen3.8 27B
BenchmarkGemma 3 4BQwen3.8 27BLeader
AA Agentic IndexNot measured45.8Only Qwen3.8 27B measured
LiveBench researchNot measured59.4%Only Qwen3.8 27B measured
LiveBench browserNot measured32.0%Only Qwen3.8 27B measured
LiveBench long agenticNot measured27.9%Only Qwen3.8 27B measured
Finance Agent (Vals AI)Not measured48.5%Only Qwen3.8 27B measured
Tax Agent Bench (Vals AI)Not measured30.9%Only Qwen3.8 27B measured
Legal Research Bench (Vals AI)Not measured36.1%Only Qwen3.8 27B measured
Excel Modeling Benchmark (Vals AI)Not measured59.7%Only Qwen3.8 27B measured
Terminal-Bench-Science (Vals AI)Not measured0.0%Only Qwen3.8 27B measured
τ²-Bench Telecom5.0%Not measuredOnly Gemma 3 4B measured
APEX-AgentsNot measured47.5%Only Qwen3.8 27B measured
Berkeley Function Calling Leaderboard (BFCL)19.6%Not measuredOnly Gemma 3 4B measured
Neither model has a result on the other 29 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index05
Reasoning benchmarks for Gemma 3 4B and Qwen3.8 27B
BenchmarkGemma 3 4BQwen3.8 27BLeader
GPQA DiamondNot measured88.9%Only Qwen3.8 27B measured
LiveBench reasoningNot measured80.0%Only Qwen3.8 27B measured
MMMU Pro (Vals AI)Not measured83.9%Only Qwen3.8 27B measured
GPQA Diamond (Artificial Analysis run)29.1%90.5%Qwen3.8 27B
Humanity's Last Exam (Artificial Analysis run)5.3%33.9%Qwen3.8 27B
GPQA Diamond (Epoch AI run)23.2%Not measuredOnly Gemma 3 4B measured
ARC-AGINot measured87.5%Only Qwen3.8 27B measured
ARC-AGI-2Not measured42.4%Only Qwen3.8 27B measured
LMArena Text: hard prompts12531459Qwen3.8 27B
LMArena Text: expert12231479Qwen3.8 27B
LMArena Text: hard prompts in English12531461Qwen3.8 27B
LMArena Vision: diagramsNot measured1285Only Qwen3.8 27B measured
LMArena Vision: homeworkNot measured1295Only Qwen3.8 27B measured
Kagi LLM Benchmark25.2%Not measuredOnly Gemma 3 4B measured
Neither model has a result on the other 8 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index02
Math benchmarks for Gemma 3 4B and Qwen3.8 27B
BenchmarkGemma 3 4BQwen3.8 27BLeader
AA Math Index12.7Not measuredOnly Gemma 3 4B measured
AIME 2025 (Artificial Analysis run)12.7%Not measuredOnly Gemma 3 4B measured
OTIS Mock AIME7.5%Not measuredOnly Gemma 3 4B measured
ProofBenchNot measured16.0%Only Qwen3.8 27B measured
LMArena Text: math12391455Qwen3.8 27B
LMArena Text: mathematical work12561458Qwen3.8 27B
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 3 4B and Qwen3.8 27B
BenchmarkGemma 3 4BQwen3.8 27BLeader
MMLU ProNot measured84.3%Only Qwen3.8 27B measured
LegalBench (Vals AI)Not measured82.4%Only Qwen3.8 27B measured
TaxEval (Vals AI)Not measured70.8%Only Qwen3.8 27B measured
MortgageTax (Vals AI)Not measured64.9%Only Qwen3.8 27B measured
MedCode (Vals AI)Not measured28.7%Only Qwen3.8 27B measured
MMLU Pro (Artificial Analysis run)41.7%Not measuredOnly Gemma 3 4B measured
LMArena Text: science13061467Qwen3.8 27B
LMArena Text: medicine and healthcare13421437Qwen3.8 27B
LMArena Text: legal and government13271447Qwen3.8 27B
LMArena Text: business and finance13111438Qwen3.8 27B
Neither model has a result on the other 8 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
Web design benchmarks for Gemma 3 4B and Qwen3.8 27B
BenchmarkGemma 3 4BQwen3.8 27BLeader
LiveBench designNot measured75.9%Only Qwen3.8 27B measured
Neither model has a result on the other 8 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index014
General benchmarks for Gemma 3 4B and Qwen3.8 27B
BenchmarkGemma 3 4BQwen3.8 27BLeader
LiveBench data analysisNot measured76.6%Only Qwen3.8 27B measured
SAGE (Vals AI)Not measured52.4%Only Qwen3.8 27B measured
MedScribe (Vals AI)Not measured83.8%Only Qwen3.8 27B measured
IFBench28.3%Not measuredOnly Gemma 3 4B measured
Long context reasoning (AA-LCR)6.7%82.0%Qwen3.8 27B
DTBench50.9%88.0%Qwen3.8 27B
LMCA2.8%41.4%Qwen3.8 27B
Surface Evolver BenchNot measured45.0%Only Qwen3.8 27B measured
LMArena Text12911440Qwen3.8 27B
LMArena Text: instruction following12391436Qwen3.8 27B
LMArena Text: creative writing12701383Qwen3.8 27B
LMArena VisionNot measured1269Only Qwen3.8 27B measured
LMArena Text: English13001448Qwen3.8 27B
LMArena Text: non-English12731428Qwen3.8 27B
LMArena Text: ChineseNot measured1501Only Qwen3.8 27B measured
LMArena Text: German12811443Qwen3.8 27B
LMArena Text: JapaneseNot measured1387Only Qwen3.8 27B measured
LMArena Text: KoreanNot measured1384Only Qwen3.8 27B measured
LMArena Text: FrenchNot measured1465Only Qwen3.8 27B measured
LMArena Text: SpanishNot measured1449Only Qwen3.8 27B measured
LMArena Text: Russian12941415Qwen3.8 27B
LMArena Text: PolishNot measured1439Only Qwen3.8 27B measured
LMArena Text: multi-turn12551440Qwen3.8 27B
LMArena Text: longer queries12731448Qwen3.8 27B
LMArena Text: writing and language12881405Qwen3.8 27B
LMArena Text: entertainment and media12331393Qwen3.8 27B
LMArena Vision: EnglishNot measured1267Only Qwen3.8 27B measured
LMArena Vision: ChineseNot measured1326Only Qwen3.8 27B measured
LMArena Vision: reading textNot measured1281Only Qwen3.8 27B measured
LMArena Vision: humorNot measured1235Only Qwen3.8 27B measured
LMArena Vision: creative writingNot measured1237Only Qwen3.8 27B measured
Neither model has a result on the other 15 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Gemma 3 4B and Qwen3.8 27B
BenchmarkGemma 3 4BQwen3.8 27BLeader
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 3 4B$0.0001Fits in one request
Qwen3.8 27B$0.0017Fits in one request

Gemma 3 4B costs less

Repository review

50K input + 3K output tokens

Gemma 3 4B$0.0025Fits in one request
Qwen3.8 27B$0.029Fits in one request

Gemma 3 4B costs less

Agent loop

200K input + 10K output tokens

Gemma 3 4B$0.0097Exceeds the context window
Qwen3.8 27B$0.111Fits in one request

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 3 4B and Qwen3.8 27B
SpecificationGoogle Gemma 3 4BQwen3.8 27B
MakerGoogleQwen
WeightsOpen weightsOpen weights
ReleasedMarch 13, 2025August 14, 2026
Context window131K1M
Input $/Mtok$0.045$0.425
Output $/Mtok$0.075$2.55
Coding indexNot benchmarked74.2
Independent measurements behind it04
Cost per solved taskNot computable$1.26
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemma 3 4B better than Qwen3.8 27B for coding?

Only Qwen3.8 27B has a coding score, 74.2 on the Vibe Coding Index; Gemma 3 4B has none, so the two cannot be ranked on coding. Pick Gemma 3 4B for output tokens 34.0x cheaper ($0.075 vs $2.55 per million).

Which is cheaper, Gemma 3 4B or Qwen3.8 27B?

Gemma 3 4B costs $0.045 per million input tokens and $0.075 per million output tokens; Qwen3.8 27B costs $0.425 and $2.55. Cost per solved task is known for Qwen3.8 27B only.

Which has the bigger context window, Gemma 3 4B or Qwen3.8 27B?

Qwen3.8 27B, with 1M tokens against 131K.

How many benchmarks is the Gemma 3 4B vs Qwen3.8 27B comparison based on?

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

Compare next