Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Gemma 3 27B vs Gemma 4 31B

Google · released

Wins 0 of 8 areas

—

Google · released

Wins 8 of 8 areas

Coding · Agents · Reasoning · Facts · Images and charts · Math · Long documents · Following instructions

Gemma 4 31B is the stronger all-rounder.Gemma 3 27B is cheaper.

Scores updated · 37 tests both models report · How we compare

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.

Gemma 3 27B$0.08 to read · $0.16 to write$0.24Price from deepinfra
Gemma 4 31B$0.17 to read · $0.40 to write$0.57Price from Artificial Analysis

Gemma 3 27B costs 58% less for the same work.

The biggest differences

The tests each model wins by the widest margin, up to three each. Scores are out of 100.

Where Gemma 4 31B pulls ahead

  • US invitational high-school math exam problemsAIME 2026+68.4points aheadGemma 4 31B89.2Gemma 3 27B20.8
  • Reasons across sets of long documentsAA-LCR+62.4points aheadGemma 4 31B69.7Gemma 3 27B7.3
  • Finds one of eight look-alike replies in a long chatMRCR v2 8 needle 128k (average)+52.9points aheadGemma 4 31B66.4Gemma 3 27B13.5

Where Gemma 3 27B pulls ahead

No clear win on a test scored out of 100.

Every test, side by side

All 37 tests both models report. The winning score is in its model's colour; marks a score checked independently.

CodingGemma 4 31B

Full coding ranking

AgentsGemma 4 31B

Full agents ranking

ReasoningGemma 4 31B

Full reasoning ranking

FactsGemma 4 31B

Full facts ranking

Images and chartsGemma 4 31B

Full images and charts ranking

MathGemma 4 31B

Full math ranking

Long documentsGemma 4 31B

Full long documents ranking

Following instructionsGemma 4 31B
  • IFBenchGemma 4 31B by 43.831.875.6+43.8

Full following instructions ranking

Other results15 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.

Questions people ask

Which is better, Gemma 3 27B or Gemma 4 31B?

Gemma 4 31B wins all eight areas we test: coding, agents, reasoning, facts, images and charts, math, long documents and following instructions. Gemma 3 27B wins none, but costs 58% less.

Which is better for coding?

Gemma 4 31B. It wins 5 of the 5 coding tests both models report; Gemma 3 27B wins none.

Which is cheaper?

Gemma 3 27B costs $0.08 per million input tokens and $0.16 per million output tokens; Gemma 4 31B costs $0.17 and $0.40. That makes Gemma 3 27B about 58% cheaper for the same work.

How do you compare the two?

We use the 37 benchmark tests both models have published scores on. The verdict counts the 22 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 15 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.