Model comparison

Gemma 4 31B IT vs Phi-4

Gemma 4 31B IT is the stronger model overall, scoring 43.5 to 31.2 on the Noometry Index. Phi-4 costs 1.7× less per token, which makes it the better buy when Gemma 4 31B IT's lead doesn't matter for your workload.

Last verified . 19 shared benchmarks.

Gemma 4 31B IT Google

43.5

Rank #90 Confirmed

Phi-4 Microsoft

31.2

Rank #279 Confirmed

Summary

  • They share 19 benchmarks with published results for both. Gemma 4 31B IT scores higher in 8 categories and Phi-4 in 0 categories; 8 gaps are clear of the uncertainty.
  • The widest gap is in math, where Gemma 4 31B IT leads 43.2 to 20.8.
  • The biggest single-benchmark swing is OTIS Mock AIME 2024-2025: 73.3% for Gemma 4 31B IT and 13.8% for Phi-4.
  • Phi-4 is cheaper at $0.07 / $0.14 per million input/output tokens, against $0.09 / $0.34 for Gemma 4 31B IT.
  • Gemma 4 31B IT accepts more context: 262K tokens versus 128K.

Side by side

Gemma 4 31B IT and Phi-4 specifications
Gemma 4 31B ITPhi-4
ProviderGoogleMicrosoft
Noometry Index43.531.2
Released2026-04-022024-12-11
WeightsOpenOpen
Context window262K128K
Max output33K4K
Input $ / M tokens$0.09$0.07
Output $ / M tokens$0.34$0.14
Results tracked3537

Sponsored placements are available on pages like this one. Advertise on Noometry

Category by category

Coding Gemma 4 31B IT leads

Gemma 4 31B IT: 42.3 (#108), Phi-4: 34.4 (#239)

Coding benchmarks
BenchmarkGemma 4 31B ITPhi-4
LMArena Coding14591231
LMArena WebDev1366—
SciCode43.4%—
WeirdML52.3%—
BigCodeBench Instruct—45.5%
LiveBench Coding—30.7%
BigCodeBench Complete—55.4%
ALE-Bench925.5—

Agentic & Tool Use Not comparable

Gemma 4 31B IT: —, Phi-4: 22.8 (#128)

Agentic & Tool Use benchmarks
BenchmarkGemma 4 31B ITPhi-4
Berkeley Function Calling Leaderboard—28.8%
BALROG—11.6%

Reasoning Gemma 4 31B IT leads

Gemma 4 31B IT: 27.2 (#122), Phi-4: 17.7 (#291)

Reasoning benchmarks
BenchmarkGemma 4 31B ITPhi-4
Chess Puzzles5%1%
LMArena Hard Prompts14481220
Epoch Capabilities Index142.74130.42
Kagi LLM Benchmark63.5%—
NYT Connections (extended)70.6%—
CritPt1.4%—
Thematic Generalization53%—
LiveBench Reasoning—47.8%
DTBench82.7%—
LiveBench Data Analysis—45.2%
LMCA39.3%—
Surface Evolver Bench30.6%—
LiveBench—41.6%

Math Gemma 4 31B IT leads

Gemma 4 31B IT: 43.2 (#81), Phi-4: 20.8 (#285)

Math benchmarks
BenchmarkGemma 4 31B ITPhi-4
OTIS Mock AIME 2024-202573.3%13.8%
LMArena Math14651246
LiveBench Math—42%
MATH Level 5—64.9%

Knowledge Gemma 4 31B IT leads

Gemma 4 31B IT: 37.9 (#151), Phi-4: 32.6 (#209)

Knowledge benchmarks
BenchmarkGemma 4 31B ITPhi-4
GPQA Diamond75.8%56.1%
Vectara Hallucination Rate7.4%3.7%
LMArena Expert14651203
SimpleQA Verified10.4%—
Confabulations—29.4%
MMLU—84.8%

Multimodal Not comparable

Gemma 4 31B IT: 41.6 (#34), Phi-4: —

Multimodal benchmarks
BenchmarkGemma 4 31B ITPhi-4
LMArena Vision1277—
LMArena Document1425—

Multilingual Gemma 4 31B IT leads

Gemma 4 31B IT: 53.8 (#57), Phi-4: 37.2 (#237)

Multilingual benchmarks
BenchmarkGemma 4 31B ITPhi-4
LMArena Non-English14311197
LMArena Chinese14761212
LMArena French14351224
LMArena Russian14601209
LMArena Spanish14441234
LMArena German—1222
LMArena Japanese—1158
LMArena Korean—1151

Instruction Following Gemma 4 31B IT leads

Gemma 4 31B IT: 75.5 (#61), Phi-4: 60.4 (#251)

Instruction Following benchmarks
BenchmarkGemma 4 31B ITPhi-4
LMArena Instruction Following14331201
LiveBench Instruction Following—58.4%

Long Context Gemma 4 31B IT leads

Gemma 4 31B IT: 44.2 (#71), Phi-4: 36.9 (#226)

Long Context benchmarks
BenchmarkGemma 4 31B ITPhi-4
LMArena Longer Query14461217

Writing & Preference Gemma 4 31B IT leads

Gemma 4 31B IT: 60.5 (#96), Phi-4: 40.5 (#244)

Writing & Preference benchmarks
BenchmarkGemma 4 31B ITPhi-4
LMArena Text14431217
LMArena Creative Writing14151182
LMArena Multi-Turn14521206
Short-Story Creative Writing—62.6%
EQ-Bench Creative Writing1368—
EQ-Bench 41120—
LiveBench Language—25.6%

Frequently asked questions

Is Gemma 4 31B IT better than Phi-4?

Gemma 4 31B IT is the stronger model overall, scoring 43.5 to 31.2 on the Noometry Index. Phi-4 costs 1.7× less per token, which makes it the better buy when Gemma 4 31B IT's lead doesn't matter for your workload.

Which is cheaper, Gemma 4 31B IT or Phi-4?

Phi-4 is cheaper. It lists at $0.07 per million input tokens and $0.14 per million output tokens; Gemma 4 31B IT lists at $0.09 and $0.34.

Is Gemma 4 31B IT or Phi-4 better for coding?

Gemma 4 31B IT scores higher on coding benchmarks: 42.3 versus 34.4 in the Noometry coding category.

Which has the bigger context window?

Gemma 4 31B IT does, with 262K tokens against 128K.

How many benchmarks do Gemma 4 31B IT and Phi-4 share?

19 benchmarks have published results for both models. Gemma 4 31B IT has 35 scored results on Noometry and Phi-4 has 37.

Related comparisons

Go deeper