Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Claude Sonnet 5 vs Gemini 3.1 Pro

Anthropic · released

Wins 4 of 8 areas

Coding · Agents · Math · Long documents

Google · released

Wins 4 of 8 areas

Reasoning · Facts · Images and charts · Following instructions

The two are evenly matched.Claude Sonnet 5 is better at coding and math; Gemini 3.1 Pro at reasoning and facts.

Scores updated · 51 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.

Claude Sonnet 5$2.00 to read · $10.00 to write$12Price from Anthropic's own price page
Gemini 3.1 Pro$2.00 to read · $12.00 to write$14Price from Google's own price page

Claude Sonnet 5 costs 14% less for the same work.

The biggest differences

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

Where Claude Sonnet 5 pulls ahead

  • Finds one of eight look-alike replies in a long chatMRCR v2 8 needle 128k (average)+55.2points aheadClaude Sonnet 581.5Gemini 3.1 Pro26.3
  • Real work tasks from 44 professionsGDPVal+33.6points aheadClaude Sonnet 548.3Gemini 3.1 Pro14.7
  • Customer-service tasks in a simulated bankτ-Bench V3 · Banking+15.9points aheadClaude Sonnet 537.3Gemini 3.1 Pro21.4

Where Gemini 3.1 Pro pulls ahead

  • Short factual questions, answered correctlySimpleQA Verified+39.8points aheadGemini 3.1 Pro73.5Claude Sonnet 533.7
  • Common-sense trick questionsSimpleBench+19points aheadGemini 3.1 Pro79.6Claude Sonnet 560.6
  • Follows detailed instructions exactlyLiveBench · Instruction Following+15.2points aheadGemini 3.1 Pro79.1Claude Sonnet 563.9

Every test, side by side

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

CodingClaude Sonnet 5

Full coding ranking

AgentsClaude Sonnet 5

Full agents ranking

ReasoningGemini 3.1 Pro

Full reasoning ranking

FactsGemini 3.1 Pro

Full facts ranking

Images and chartsGemini 3.1 Pro

Full images and charts ranking

MathClaude Sonnet 5

Full math ranking

Long documentsClaude Sonnet 5

Full long documents ranking

Following instructionsGemini 3.1 Pro

Full following instructions ranking

Other results20 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, Claude Sonnet 5 or Gemini 3.1 Pro?

Claude Sonnet 5 and Gemini 3.1 Pro each win four of the eight areas we test. Claude Sonnet 5 wins coding, agents, math and long documents; Gemini 3.1 Pro wins reasoning, facts, images and charts and following instructions. Claude Sonnet 5 costs 14% less.

Which is better for coding?

Claude Sonnet 5. It wins 7 of the 8 coding tests both models report; Gemini 3.1 Pro wins 1.

Which is cheaper?

Claude Sonnet 5 costs $2.00 per million input tokens and $10.00 per million output tokens; Gemini 3.1 Pro costs $2.00 and $12.00. That makes Claude Sonnet 5 about 14% cheaper for the same work.

How do you compare the two?

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