Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Gemma 4 26B A4B vs Gemma 4 31B

Google · released

Wins 1 of 8 areas

Math

Google · released

Wins 6 of 8 areas

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

Gemma 4 31B is the stronger all-rounder.Gemma 4 26B A4B is cheaper and better at math.

Scores updated · 73 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 26B A4B$0.13 to read · $0.40 to write$0.53Price from Artificial Analysis
Gemma 4 31B$0.17 to read · $0.40 to write$0.57Price from Artificial Analysis

Gemma 4 26B A4B costs 6% 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

  • Fixes real GitHub issues in Python projectsSWE-bench Verified+34.6points aheadGemma 4 31B52Gemma 4 26B A4B17.4
  • Fixes real GitHub issues in many programming languagesSWE-bench Multilingual+34.4points aheadGemma 4 31B51.7Gemma 4 26B A4B17.3
  • Hard command-line tasks in a real terminalTerminal-Bench Hard+22.8points aheadGemma 4 31B36.4Gemma 4 26B A4B13.6

Where Gemma 4 26B A4B pulls ahead

  • Harvard-MIT high-school math contest problemsHMMT Feb. 2026+1.8points aheadGemma 4 26B A4B79Gemma 4 31B77.2
  • Reasoning about charts from research papersCharXiv (RQ)+1.1points aheadGemma 4 26B A4B69Gemma 4 31B67.9

Every test, side by side

All 73 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 26B A4B

Full math ranking

Long documentsGemma 4 31B

Full long documents ranking

Following instructionsGemma 4 31B
  • IFBenchGemma 4 31B by 3.272.475.6+3.2

Full following instructions ranking

Other results44 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 26B A4B or Gemma 4 31B?

Gemma 4 31B wins six of the eight areas we test: coding, agents, reasoning, images and charts, long documents and following instructions. Gemma 4 26B A4B wins math, and costs 6% less. They are level on facts.

Which is better for coding?

Gemma 4 31B. It wins 7 of the 8 coding tests both models report; Gemma 4 26B A4B wins none, and 1 is a tie.

Which is cheaper?

Gemma 4 26B A4B costs $0.13 per million input tokens and $0.40 per million output tokens; Gemma 4 31B costs $0.17 and $0.40. That makes Gemma 4 26B A4B about 6% cheaper for the same work.

How do you compare the two?

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