Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Gemma 4 31B vs Gemma 4 E4B

Google · released

Wins 7 of 8 areas

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

Google · released

Wins 0 of 8 areas

—

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

Scores updated · 36 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 4 31B$0.17 to read · $0.40 to write$0.57Price from Artificial Analysis
Gemma 4 E4B$0.02 to read · $0.10 to write$0.12Price from Artificial Analysis

Gemma 4 E4B costs 79% 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+46.7points aheadGemma 4 31B89.2Gemma 4 E4B42.5
  • Command-line tasks in a real terminalTerminal-Bench 2.1+41.5points aheadGemma 4 31B43.4Gemma 4 E4B1.9
  • Finds one of eight look-alike replies in a long chatMRCR v2 8 needle 128k (average)+41points aheadGemma 4 31B66.4Gemma 4 E4B25.4

Where Gemma 4 E4B pulls ahead

Every test, side by side

All 36 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

FactsEven

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 31.475.644.2+31.4

Full following instructions ranking

Other results18 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 4 31B or Gemma 4 E4B?

Gemma 4 31B wins seven of the eight areas we test: coding, agents, reasoning, images and charts, math, long documents and following instructions. Gemma 4 E4B wins none, but costs 79% less. They are level on facts.

Which is better for coding?

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

Which is cheaper?

Gemma 4 31B costs $0.17 per million input tokens and $0.40 per million output tokens; Gemma 4 E4B costs $0.02 and $0.10. That makes Gemma 4 E4B about 79% cheaper for the same work.

How do you compare the two?

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