Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Gemma 3 27B vs Phi 4

Google · released

Wins 2 of 5 areas

Long documents · Following instructions

Microsoft · released

Wins 3 of 5 areas

Coding · Reasoning · Facts

Phi 4 is the stronger all-rounder.Gemma 3 27B is cheaper and better at long documents.

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

Where each one wins

Tests won in each of the five areas where both have results. Each piece is one test, so a longer bar means more evidence; grey means the two scored within a point of each other.

Long documents and following instructions rest on a single test each.

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
Phi 4$0.13 to read · $0.50 to write$0.63Price from Artificial Analysis

Gemma 3 27B costs 62% 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 Phi 4 pulls ahead

  • Graduate-level biology, physics and chemistry questionsGPQA Diamond+14.7points aheadPhi 457.5Gemma 3 27B42.8
  • Avoids making up answers it doesn't knowAA-Omniscience · Non-hallucination+10.9points aheadPhi 418.8Gemma 3 27B7.9
  • Code for real scientific research problemsSciCode+2.7points aheadPhi 426Gemma 3 27B23.3

Where Gemma 3 27B pulls ahead

  • Follows unfamiliar, precisely checkable instructionsIFBench+8.3points aheadGemma 3 27B31.8Phi 423.5

Every test, side by side

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

CodingPhi 4

Full coding ranking

ReasoningPhi 4

Full reasoning ranking

FactsPhi 4

Full facts ranking

Long documentsGemma 3 27B
  • AA-LCRGemma 3 27B by 7.37.30+7.3

Full long documents ranking

Following instructionsGemma 3 27B
  • IFBenchGemma 3 27B by 8.331.823.5+8.3

Full following instructions ranking

Other results14 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 Phi 4?

Phi 4 wins three of the five areas where both have results: coding, reasoning and facts. Gemma 3 27B wins long documents and following instructions, and costs 62% less.

Which is better for coding?

Phi 4. It wins 1 of the 2 coding tests both models report; Gemma 3 27B wins none, and 1 is a tie.

Which is cheaper?

Gemma 3 27B costs $0.08 per million input tokens and $0.16 per million output tokens; Phi 4 costs $0.13 and $0.50. That makes Gemma 3 27B about 62% cheaper for the same work.

How do you compare the two?

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