CompareLLM
CompareLLM.ai
Live
Leaderboard
Quality & Reasoning
Overall Arena EloPrimary

LMSYS crowd human preference ranking

Coding Elo & SWE-benchCode

Real GitHub issue software solve rate

LiveBench Reasoning

Contamination-free automated tests

GPQA Diamond

PhD-level science & domain knowledge

Text-to-Image LeaderboardArena

FLUX.2, GPT Image 2, Nano Banana, Midjourney

Speed & Token Cost
Throughput (tok/s)Speed

Output generation token rate

Time to First Token (TTFT)

Response latency for voice & chat loops

Output Price ($/1M tokens)

Cost per million generated tokens

Live Pareto Frontier Scatter

Quality vs Cost efficiency boundary

Models
Model Classes
Frontier ModelsProprietary

Opus 4.5, GPT-5, Gemini 2.0 Pro

Open-Weight CatalogApache/MIT

Llama 3.3, DeepSeek, Qwen 2.5

🇨🇳 Chinese LLMsCN

DeepSeek V3, Qwen, GLM-5, MiniMax

Browse All 40+ Models
Top Providers
Anthropic

Claude Opus 4.5, Sonnet 4.5, Haiku

OpenAI

GPT-5, GPT-4.5, GPT-4o, o3

DeepSeek

DeepSeek V3, R1 Reasoning

Google

Gemini 2.0 Pro, Flash, Thinking

Compare
Popular Head-to-Head ShowdownsView all 48+ pairs →
Claude Opus 5 vs GPT-5.6 Sol

Flagship frontier titan duel

Sonnet 5 vs 🇨🇳 DeepSeek V4

East vs West coding favorite

🇨🇳 Qwen3.8 vs 🇺🇸 Llama 4 Scout

Latest open-weights clash

GPT-5.6 Sol vs GPT-5

Generational upgrade (1 step back)

Opus 5 vs Opus 4.5

Anthropic generational delta

🎨 FLUX.2 Max vs GPT Image 2

Text-to-Image frontier leader

Open Interactive Comparison Matrix
Best of & Stacks
Best LLM Lists (2026)
Best Coding LLM

SWE-bench verified repository tests

Best Cheap LLM

Sub-$1/1M token value powerhouses

Fastest Low-Latency LLM

Sub-200ms TTFT for voice & live chat

Claude vs GPT Benchmark

Anthropic vs OpenAI head-to-head

Stack Engine Presets
Cheap Coding Agents

Budget repo bots with high SWE-bench

Lowest-Latency Chat

Fast interactive support loops

Open-Weight Reasoning

Self-hostable reasoning power

Explore All 11 Presets
Research & News
Intelligence & Telemetry
News & Benchmark BriefingsDispatches

Verified model promotions & price shifts

Hourly Benchmark ChangelogLive

Dated ingest audit trail with exact diffs

Evaluation Methodology

Standardized scoring formulas & harnesses

What is Arena Elo?

Understanding blind pairwise human ratings

…
CompareLLM
CompareLLM.ai
Precision Benchmarks

Programmatic, dated AI model benchmarks, head-to-head comparisons, and Stack Engine presets.

Daily ingest · 06:00 UTC

Analytics & Benchmarks

  • AI Model Leaderboard
  • Head-to-Head Compare Hub
  • Models Directory
  • Stack Engine Presets
  • Frontier Models
  • Open Weights Catalog

Guides & Intent Lists

  • Best LLM Lists (2026)
  • Best Coding LLM
  • Best Cheap LLM
  • Fastest Low-Latency LLM
  • Claude vs GPT Benchmark
  • What is Elo?
  • Methodology Guides
  • News & Dispatches

Transparency & API

  • Evaluation Methodology
  • Benchmark Changelog
  • Public JSON API
  • llms.txt Specification
  • Privacy Policy
  • Sign In / Account

© 2026 CompareLLM. Public benchmark data aggregated from Arena Elo, LiveBench, SWE-bench & OpenRouter.

Every score has a dated snapshot.

Display Currency:
  1. Home
  2. Comparisons
  3. Claude Sonnet 4 vs Grok 3

Pairwise benchmark snapshot · Aug 17, 2026

Claude Sonnet 4 vs Grok 3 benchmark

This page compares Claude Sonnet 4 (Anthropic) and Grok 3 (xAI) using the latest snapshots we have as of Aug 17, 2026. On preference Elo, Claude Sonnet 4 is ahead by 50 points (1,455 vs 1,405; lmarena (Aug 17, 2026)). On SWE-bench coding, Claude Sonnet 4 resolves 62.8% versus 51.4% (swebench (Aug 17, 2026)). Claude Sonnet 4 streams faster (92 tok/s) while Claude Sonnet 4 is the cheaper output token ($15/1M). Claude Sonnet 4 has the larger context window (1M tokens). Every cell below is a dated snapshot from a named public source — we do not invent missing scores, and we do not run SWE-bench ourselves.

Quick answer

Claude Sonnet 4 vs Grok 3 is a dated snapshot, not a lab score. Claude Sonnet 4 leads preference Elo (1,455 vs 1,405). Claude Sonnet 4 leads SWE-bench coding. Claude Sonnet 4 is the cheaper output token. Elo is crowd preference, not an exam. Pick the column that matches the job.
Share Analysis:
WhatsAppTelegramX / PostLinkedInReddit

Anthropic

Claude Sonnet 4

First Sonnet 4 generation. Bridge between 3.5/3.7 and Sonnet 5.

Elo 1,455$15/1M out

xAI

Grok 3

Previous xAI generation before Grok 4. Kept for grok 3 vs grok 4.

Elo 1,405$15/1M out

Swap or Add Any Model to this Matchup

Instant pairwise benchmark recalculation across 400+ LLMs

Model A
Model B
Quick vs:vs Claude Opus 4.5vs Claude Opus 4.6vs Claude Sonnet 4.5vs Claude 3.7 Sonnet

Interactive Comparison Diagram

Matchup Breakdown

Tug-of-War Matchup Matrix

Category wins across intelligence, speed, and pricing efficiency.

Claude Sonnet 4 (8)vsGrok 3 (0)
Claude Sonnet 4: 8W (100%)Overall: Claude Sonnet 4Grok 3: 0W (0%)
← Claude Sonnet 42 tiesGrok 3 →
Claude Sonnet 4 (5/5)

Intelligence & Reasoning

Preference Elo, Coding proficiency, SWE-bench & LiveBench accuracy

Preference Elo
1,455vs1,405
Coding Elo
1,468vs—
SWE-bench
62.8%vs51.4%
LiveBench
63.2%vs60.2%
GPQA Diamond
76.4%vs74.2%
Claude Sonnet 4: 5WGrok 3: 0W
Claude Sonnet 4 (2/2)

Speed & Latency

Generation throughput and time to first token responsiveness

Output speed
92 tok/svs88 tok/s
Time to first token
220 msvs250 ms
Claude Sonnet 4: 2WGrok 3: 0W
Claude Sonnet 4 (1/3)

Pricing & Capacity

Cost per million tokens and max context window length

Output price
$15/1Mvs$15/1M
Input price
$3/1Mvs$3/1M
Context window
1Mvs131k
Claude Sonnet 4: 1WGrok 3: 0W
Capability Matchup Radar

Multi-Dimensional Capability Radar

Each spoke is a skill. Farther from the center is better (0–100th percentile). Tap any dot to inspect details.

Tap any node to inspect
Percentile 0–100
Dimensional AdvantageClaude Sonnet 4 5/6
Preference Elo

Claude Sonnet 4

50 pts advantage

Throughput Speed

Claude Sonnet 4

4 tok/s faster

Token Price Efficiency

Claude Sonnet 4

Same price

Full Benchmark Score Matrix

—
Elo
High is better
+4%1,455
EloHigh is better
1,405
Code Elo
High is better
1,468
Code EloHigh is better
—
LiveBench
High is better
+5%63.2%
LiveBenchHigh is better
60.2%
SWE-bench
High is better
+22%62.8%
SWE-benchHigh is better
51.4%
GPQA
High is better
+3%76.4%
GPQAHigh is better
74.2%
TTFT
Low is better
+14%220 ms
TTFTLow is better
250 ms
Speed
High is better
+5%92 tok/s
SpeedHigh is better
88 tok/s
In $
Low is better
$3.00 / 1M
In $Low is better
$3.00 / 1M
Out $
Low is better
$15.00 / 1M
Out $Low is better
$15.00 / 1M
Context
High is better
+663%1M
ContextHigh is better
131k
Interactive Simulator (USD)

Workload Cost & Savings Calculator

Simulate monthly production API costs in USD (US Dollar).

Monthly Volume50M tokens/mo
Quick Presets:
Token Ratio (In vs Out)70% In / 30% Out
RAG / Search (10% out)Coding / Chat (50% out)
Claude Sonnet 4$330.00 / mo
In: $105Out: $225
Grok 3$330.00 / mo
In: $105Out: $225

Key Selection Recommendations

  • 1
    Claude Sonnet 4:Pick Claude Sonnet 4 when repo-level coding accuracy is the constraint.
  • 2
    Claude Sonnet 4:Pick Claude Sonnet 4 when time-to-first-token matters more than peak Elo.
  • 3
    Claude Sonnet 4:Pick Claude Sonnet 4 for million-token RAG or long-document jobs.

Recommended Workload Routing

Repo / coding agentsClaude Sonnet 4

Higher SWE-bench (62.8%).

High-volume chatClaude Sonnet 4

Lower output list price ($15/1M).

Voice / low-latency UIClaude Sonnet 4

Lower TTFT (220 ms).

Long-document RAGClaude Sonnet 4

Larger window (1M).

Screenshots / visionClaude Sonnet 4

Both accept images. Defaulting to the higher-Elo side (Claude Sonnet 4).

Target WorkloadRecommended PickEvaluation Rationale
Repo / coding agentsClaude Sonnet 4Higher SWE-bench (62.8%).
High-volume chatClaude Sonnet 4Lower output list price ($15/1M).
Voice / low-latency UIClaude Sonnet 4Lower TTFT (220 ms).
Long-document RAGClaude Sonnet 4Larger window (1M).
Screenshots / visionClaude Sonnet 4Both accept images. Defaulting to the higher-Elo side (Claude Sonnet 4).
Community Sentiment

Cast Your Matchup Vote

0 total votes

Community Discussions (0)

Sign in to cast your verified vote, bookmark models, and participate in benchmark discussions.Sign In to Post

No comments posted on this matchup yet. Be the first to share an evaluation note!

Share card

The real PNG is generated at /compare/claude-sonnet-4-vs-grok-3/opengraph-image for crawlers.

PNG

CompareLLM Matrix

Verified head-to-head card

LIVE
VS
Anthropic

Claude Sonnet 4

Elo 1,455
LiveBench63.2%
SWE-bench62.8%
Speed92 tok/s
Output cost$15/1M
xAI

Grok 3

Elo 1,405
LiveBench60.2%
SWE-bench51.4%
Speed88 tok/s
Output cost$15/1M

Frequently Asked Questions

Which is better overall, Claude Sonnet 4 or Grok 3?
Claude Sonnet 4 has the higher preference Elo in our latest snapshot (1,455). “Better” still depends on coding, price, and latency — see the table.
Which is better at coding, Claude Sonnet 4 or Grok 3?
Claude Sonnet 4 leads SWE-bench at 62.8% vs 51.4%. SWE-bench is one harness, not your repo.
Which is cheaper to run in production?
Claude Sonnet 4 output tokens are $15/1M versus $15/1M. Input prices and retry rates still move the real bill.
Which is faster, Claude Sonnet 4 or Grok 3?
Claude Sonnet 4 has the lower time-to-first-token (220 ms vs 250 ms). Tokens/sec is a separate column if you care about long completions.
Which has the larger context window?
Claude Sonnet 4 accepts 1M tokens versus 131k.
Can I self-host either model?
Neither model is marked open-weights here. You are comparing hosted APIs.
Are these scores from CompareLLM’s own evals?
No. V1 aggregates public leaderboards (and optional first-party latency pings). Each cell names its source and date. Read /methodology.
What does preference Elo mean on this page?
Preference Elo is a crowd vote from LMArena / Arena. People see two hidden answers and pick the one they like more. The model that wins more often gets a higher Elo. That means people preferred it — not that it passed a school test. It is not SWE-bench, not accuracy, and not a number we invent. Claude Sonnet 4 and Grok 3 Elo cells are dated snapshots from the named source — we do not compute Arena ourselves.

Similar Head-to-Head Comparisons

All Claude Sonnet 4 matchups →|All Grok 3 matchups →
Claude Sonnet 4 vs Claude 3.7 Sonnet (previous sonnet)Claude Sonnet 4 vs Claude Sonnet 4.5 (next sonnet)Grok 3 vs Grok 4 (next grok)Claude Sonnet 5 vs Claude Sonnet 4Claude Opus 4.5 vs Claude Sonnet 4Claude Opus 4.6 vs Claude Sonnet 4