Gemma 3 27B vs GPT-4
Updated October 21, 2026. 36 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.
Decision reading
Pick GPT-4 for coding: it scores 22.4 on the Vibe Coding Index against 4.9 for Gemma 3 27B.
Pick Gemma 3 27B when output tokens cost 171.4x less, or when the context window is larger, 131K against 8K tokens.
- Shared results
- 36
- Gemma 3 27B only
- 26
- GPT-4 only
- 9
- Like-for-like categories
- 6 of 9
Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.
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.
Coding
Vibe Coding Index, four public coding benchmarks
GPT-4
GPT-4 scores 22.4 against 4.9.
One benchmark behind each score
Intelligence
AA Intelligence Index
GPT-4
GPT-4 leads, 6.7 against 4.9.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only Gemma 3 27B has a AA Agentic Index result, 0.1.
Directional only
Long documents
Listed context window
Gemma 3 27B
Gemma 3 27B takes 131K tokens against 8K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemma 3 27B
Gemma 3 27B $0.0003, GPT-4 $0.060 per turn.
List prices
At a glance
- Coding index
- Gemma 3 27B 4.9 from 1 benchmark, GPT-4 22.4 from 1 benchmark.
- Widest category
- Knowledge, 30.5 points apart on average over 5 shared benchmarks.
- Widest single gap
- LMArena Text: medicine and healthcare: Gemma 3 27B 1391 against GPT-4 1145, 41.0 points apart on a 0 to 100 scale.
- Output price
- Gemma 3 27B $0.35 against GPT-4 $60.00 per million output tokens, 171.4x apart.
- Context window
- Gemma 3 27B takes 131K tokens, GPT-4 8K.
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.
| Category | Gemma 3 27B | Bars | GPT-4 | Ties |
|---|---|---|---|---|
| Coding | 2 | 1 | ||
| Intelligence | 1 | 1 | ||
| Reasoning | 4 | 0 | ||
| Math | 2 | 0 | ||
| Knowledge | 5 | 0 | ||
| General | 17 | 3 | ||
| All shared boards | 31 | 5 |
CodingLike-for-likeFour of these boards feed the Vibe Coding Index21
| Benchmark | Gemma 3 27B | GPT-4 | Leader |
|---|---|---|---|
| Aider polyglot | 4.9% | Not measured | Only Gemma 3 27B measured |
| SWE-bench Verified | Not measured | 22.4% | Only GPT-4 measured |
| SWE-bench Lite | Not measured | 39.7% | Only GPT-4 measured |
| SWE-bench (full test set) | Not measured | 12.5% | Only GPT-4 measured |
| AA Coding Index | 10.1 | 13.1 | GPT-4 |
| LiveCodeBench (Artificial Analysis run) | 13.7% | Not measured | Only Gemma 3 27B measured |
| SciCode | 23.3% | Not measured | Only Gemma 3 27B measured |
| Terminal-Bench Hard (Artificial Analysis run) | 3.8% | Not measured | Only Gemma 3 27B measured |
| LMArena Text: coding | 1322 | 1209 | Gemma 3 27B |
| LMArena Text: software and IT | 1354 | 1195 | Gemma 3 27B |
| Neither model has a result on the other 28 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
| Benchmark | Gemma 3 27B | GPT-4 | Leader |
|---|---|---|---|
| AA Intelligence Index | 4.9 | 6.7 | GPT-4 |
| Epoch Capabilities Index | 130.0 | 125.7 | Gemma 3 27B |
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index2 boards, none shared
| Benchmark | Gemma 3 27B | GPT-4 | Leader |
|---|---|---|---|
| AA Agentic Index | 0.1 | Not measured | Only Gemma 3 27B measured |
| τ²-Bench Telecom | 10.5% | Not measured | Only Gemma 3 27B measured |
| Neither model has a result on the other 37 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index40
| Benchmark | Gemma 3 27B | GPT-4 | Leader |
|---|---|---|---|
| GPQA Diamond (Artificial Analysis run) | 42.8% | 34.9% | Gemma 3 27B |
| Humanity's Last Exam (Artificial Analysis run) | 4.4% | Not measured | Only Gemma 3 27B measured |
| GPQA Diamond (Epoch AI run) | 47.7% | Not measured | Only Gemma 3 27B measured |
| BIG-Bench Hard | Not measured | 75.1% | Only GPT-4 measured |
| LMArena Text: hard prompts | 1340 | 1200 | Gemma 3 27B |
| LMArena Text: expert | 1304 | 1149 | Gemma 3 27B |
| LMArena Text: hard prompts in English | 1353 | 1209 | Gemma 3 27B |
| LMArena Vision: diagrams | 1156 | Not measured | Only Gemma 3 27B measured |
| LMArena Vision: homework | 1160 | Not measured | Only Gemma 3 27B measured |
| Neither model has a result on the other 12 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | Gemma 3 27B | GPT-4 | Leader |
|---|---|---|---|
| AA Math Index | 20.7 | Not measured | Only Gemma 3 27B measured |
| AIME 2025 (Artificial Analysis run) | 20.7% | Not measured | Only Gemma 3 27B measured |
| OTIS Mock AIME | 22.5% | Not measured | Only Gemma 3 27B measured |
| MATH level 5 | 74.0% | Not measured | Only Gemma 3 27B measured |
| GSM8K | Not measured | 92.0% | Only GPT-4 measured |
| LMArena Text: math | 1312 | 1230 | Gemma 3 27B |
| LMArena Text: mathematical work | 1327 | 1228 | Gemma 3 27B |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index50
| Benchmark | Gemma 3 27B | GPT-4 | Leader |
|---|---|---|---|
| MMLU Pro (Artificial Analysis run) | 66.9% | 56.2% | Gemma 3 27B |
| MMLU | Not measured | 86.4% | Only GPT-4 measured |
| GeoBench | 52.0% | Not measured | Only Gemma 3 27B measured |
| AI2 Reasoning Challenge | Not measured | 96.3% | Only GPT-4 measured |
| LMArena Text: science | 1383 | 1177 | Gemma 3 27B |
| LMArena Text: medicine and healthcare | 1391 | 1145 | Gemma 3 27B |
| LMArena Text: legal and government | 1375 | 1191 | Gemma 3 27B |
| LMArena Text: business and finance | 1360 | 1145 | Gemma 3 27B |
| Neither model has a result on the other 9 boards here | |||
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Gemma 3 27B | GPT-4 | Leader |
|---|---|---|---|
| Neither model has a result on 9 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index173
| Benchmark | Gemma 3 27B | GPT-4 | Leader |
|---|---|---|---|
| IFBench | 31.8% | 33.2% | GPT-4 |
| Long context reasoning (AA-LCR) | 7.3% | Not measured | Only Gemma 3 27B measured |
| DTBench | 52.5% | 62.7% | GPT-4 |
| LMCA | 12.3% | 17.1% | GPT-4 |
| Fiction.LiveBench | 33.3% | Not measured | Only Gemma 3 27B measured |
| Creative writing (Lech Mazur) | 79.9% | Not measured | Only Gemma 3 27B measured |
| HellaSwag | Not measured | 95.3% | Only GPT-4 measured |
| WinoGrande | Not measured | 87.5% | Only GPT-4 measured |
| LMArena Text | 1358 | 1206 | Gemma 3 27B |
| LMArena Text: instruction following | 1321 | 1201 | Gemma 3 27B |
| LMArena Text: creative writing | 1345 | 1191 | Gemma 3 27B |
| LMArena Vision | 1165 | Not measured | Only Gemma 3 27B measured |
| LMArena Text: English | 1377 | 1220 | Gemma 3 27B |
| LMArena Text: non-English | 1334 | 1194 | Gemma 3 27B |
| LMArena Text: Chinese | 1346 | 1184 | Gemma 3 27B |
| LMArena Text: German | 1362 | 1198 | Gemma 3 27B |
| LMArena Text: Japanese | 1287 | 1137 | Gemma 3 27B |
| LMArena Text: Korean | 1308 | 1087 | Gemma 3 27B |
| LMArena Text: French | 1368 | 1220 | Gemma 3 27B |
| LMArena Text: Spanish | 1349 | 1197 | Gemma 3 27B |
| LMArena Text: Russian | 1349 | 1195 | Gemma 3 27B |
| LMArena Text: Polish | 1345 | 1265 | Gemma 3 27B |
| LMArena Text: multi-turn | 1345 | 1206 | Gemma 3 27B |
| LMArena Text: longer queries | 1333 | 1190 | Gemma 3 27B |
| LMArena Text: writing and language | 1347 | 1219 | Gemma 3 27B |
| LMArena Text: entertainment and media | 1320 | 1184 | Gemma 3 27B |
| LMArena Vision: English | 1188 | Not measured | Only Gemma 3 27B measured |
| LMArena Vision: Chinese | 1164 | Not measured | Only Gemma 3 27B measured |
| LMArena Vision: reading text | 1156 | Not measured | Only Gemma 3 27B measured |
| LMArena Vision: humor | 1166 | Not measured | Only Gemma 3 27B measured |
| LMArena Vision: captioning | 1151 | Not measured | Only Gemma 3 27B measured |
| LMArena Vision: recognizing things | 1196 | Not measured | Only Gemma 3 27B measured |
| LMArena Vision: creative writing | 1177 | Not measured | Only Gemma 3 27B measured |
| Neither model has a result on the other 13 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Gemma 3 27B | GPT-4 | Leader |
|---|---|---|---|
| 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 27B costs less
Repository review
50K input + 3K output tokens
Gemma 3 27B costs less
Agent loop
200K input + 10K output tokens
Gemma 3 27B 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.
| Specification | Google Gemma 3 27B | OpenAI GPT-4 |
|---|---|---|
| Maker | OpenAI | |
| Weights | Open weights | No public weights listed |
| Released | March 12, 2025 | May 28, 2023 |
| Context window | 131K | 8K |
| Input $/Mtok | $0.08 | $30.00 |
| Output $/Mtok | $0.35 | $60.00 |
| Coding index | 4.9 | 22.4 |
| Independent measurements behind it | 1 | 1 |
| Cost per solved task | Not computable | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Gemma 3 27B better than GPT-4 for coding?
Pick GPT-4 for coding: it scores 22.4 on the Vibe Coding Index against 4.9 for Gemma 3 27B. Pick Gemma 3 27B when output tokens cost 171.4x less, or when the context window is larger, 131K against 8K tokens.
Which is cheaper, Gemma 3 27B or GPT-4?
Gemma 3 27B costs $0.08 per million input tokens and $0.35 per million output tokens; GPT-4 costs $30.00 and $60.00. Cost per solved task is known for neither of them.
Which has the bigger context window, Gemma 3 27B or GPT-4?
Gemma 3 27B, with 131K tokens against 8K.
How many benchmarks is the Gemma 3 27B vs GPT-4 comparison based on?
36 benchmarks have a result for both models as of October 21, 2026. Gemma 3 27B's coding index rests on 1 independent benchmark and GPT-4's on 1. Where only one model has a result, the page says so instead of naming a winner.