CompareLLM.ai
Live
Leaderboard
Models
Compare
Best of & Stacks
Research & News
…
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.

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

Pairwise benchmark snapshot · Aug 16, 2026

Claude Sonnet 5 vs Grok 4 benchmark

In this head-to-head showdown, Claude Sonnet 5 delivers higher overall intelligence and human-preferred responses (Elo 1,556 vs 1,488), while Claude Sonnet 5 leads in SWE-bench software engineering benchmarks (73.8%), while Claude Sonnet 5 is more budget-friendly at $10/1M per 1M output tokens. Review the complete breakdown below to determine which model best fits your performance and budget requirements.

Executive Comparison Verdict

Bottom Line: Claude Sonnet 5 holds the advantage over Grok 4 in overall benchmark performance and human evaluation rankings. Choose Claude Sonnet 5 for demanding workloads, or review the breakdown below to compare coding and pricing metrics.
Share Analysis:
WhatsAppTelegramXLinkedInReddit

Verified Head-to-Head Advantage Breakdown

9 direct benchmark disciplines evaluated across capability, speed, and cost

Claude Sonnet 5 (9)Grok 4 (0)
Claude Sonnet 5
9 of 9 Wins
✓Preference Elo✓LiveBench✓SWE-bench✓GPQA Diamond✓Time to first token✓Output speed✓Input price✓Output price✓Context window
Grok 4
0 of 9 Wins
Competitive baseline across remaining benchmarks
Anthropic
Leads 9 of 9 metrics
Claude Sonnet 5

Anthropic workhorse. Official $2/$10 per 1M tokens made permanent on Aug 10 2026.

Sonnet 5Elo 1,556$10/1M out
xAI
Grok 4

Previous xAI flagship.

Grok 4.0Elo 1,488$15/1M out

Claude 5 Series Lineage & Sibling Variants

3 models

Currently comparing Claude Sonnet 5 vs Grok 4. Alternative family tiers available.

Active: Claude Sonnet 5
Claude Opus 5$25Claude Fable 5$50
Top Rival Showdowns for Claude Sonnet 5
All Matchups
Compare vs:vs GPT-5vs Gemini 3 Provs Grok 4.6vs DeepSeek V4 Provs Qwen 3 Max
Preference LeaderClaude Sonnet 5 Wins

Claude Sonnet 5

Δ 68 Arena Elo pts

Throughput LeaderClaude Sonnet 5 Wins

Claude Sonnet 5

118 tok/s

Value per Dollar LeaderClaude Sonnet 5 Wins

Claude Sonnet 5

$10 / 1M output

Capability Percentiles

Relative percentile scores computed across all active models in the benchmark catalog.

Multi-Dimensional Capability Radar

Leaders Matchup Capability Radar

Comparing top Western standard models with China's leading frontier rival across 6 skill dimensions. Tap any spoke or dot to inspect.

Tap any node to inspect
Percentile 0–100
Head-to-Head Comparison

Overall Matchup Breakdown

Category wins across reasoning intelligence, generation speed, and token cost.

Claude Sonnet 5 (10)vsGrok 4 (0)
Claude Sonnet 5: 10W (100%)Overall: Claude Sonnet 5Grok 4: 0W (0%)
← Claude Sonnet 5Grok 4 →
🏆Claude Sonnet 5(5/5)

Intelligence & Reasoning

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

Benchmark
Claude Sonnet 5vsGrok 4
Preference Elo
1,556vs1,488+68
Coding Elo
1,562vs—
SWE-bench
73.8%vs58.6%+15.2%
LiveBench
70.4%vs64.1%+6.3%
GPQA Diamond
82.8%vs79%+3.8%
Claude Sonnet 5: 5WGrok 4: 0W
🏆Claude Sonnet 5(2/2)

Speed & Latency

Generation throughput and time to first token responsiveness

Benchmark
Claude Sonnet 5vsGrok 4
Output speed
118 tok/svs98 tok/s+20 tok/s
Time to first token
175 msvs230 ms+55 ms
Claude Sonnet 5: 2WGrok 4: 0W
🏆Claude Sonnet 5(3/3)

Pricing & Capacity

Cost per million tokens and max context window length

Benchmark
Claude Sonnet 5vsGrok 4
Output price
$10/1Mvs$15/1M+$5/1M
Input price
$2/1Mvs$3/1M+$1/1M
Context window
1Mvs256k+744k
Claude Sonnet 5: 3WGrok 4: 0W

Side-by-Side Benchmark Matrix

Preference Elo+68
Claude Sonnet 51,556
seed-bootstrap · Aug 16, 2026
Grok 41,488
seed-bootstrap · Aug 1, 2026
Coding Elo
Claude Sonnet 51,562
seed-bootstrap · Aug 16, 2026
Grok 4—
LiveBench+6.3%
Claude Sonnet 570.4%
seed-bootstrap · Aug 16, 2026
Grok 464.1%
seed-bootstrap · Aug 1, 2026
SWE-bench+15.2%
Claude Sonnet 573.8%
seed-bootstrap · Aug 16, 2026
Grok 458.6%
seed-bootstrap · Aug 1, 2026
GPQA Diamond+3.8%
Claude Sonnet 582.8%
seed-bootstrap · Aug 16, 2026
Grok 479%
seed-bootstrap · Aug 1, 2026
Time to first token+55 ms
Claude Sonnet 5175 ms
seed-bootstrap · Aug 16, 2026
Grok 4230 ms
seed-bootstrap · Aug 1, 2026
Output speed+20 tok/s
Claude Sonnet 5118 tok/s
seed-bootstrap · Aug 16, 2026
Grok 498 tok/s
seed-bootstrap · Aug 1, 2026
Input price+$1/1M
Claude Sonnet 5$2/1M
seed-bootstrap · Aug 16, 2026
Grok 4$3/1M
seed-bootstrap · Aug 1, 2026
Output price+$5/1M
Claude Sonnet 5$10/1M
seed-bootstrap · Aug 16, 2026
Grok 4$15/1M
seed-bootstrap · Aug 1, 2026
Context window+744k
Claude Sonnet 51M
seed-bootstrap · Aug 16, 2026
Grok 4256k
seed-bootstrap · Aug 1, 2026
BenchmarkClaude Sonnet 5Grok 4Advantage Delta
Preference Elo
1,556
seed-bootstrap · Aug 16, 2026
1,488
seed-bootstrap · Aug 1, 2026
+68
Coding Elo
1,562
seed-bootstrap · Aug 16, 2026
——
LiveBench
70.4%
seed-bootstrap · Aug 16, 2026
64.1%
seed-bootstrap · Aug 1, 2026
+6.3%
SWE-bench
73.8%
seed-bootstrap · Aug 16, 2026
58.6%
seed-bootstrap · Aug 1, 2026
+15.2%
GPQA Diamond
82.8%
seed-bootstrap · Aug 16, 2026
79%
seed-bootstrap · Aug 1, 2026
+3.8%
Time to first token
175 ms
seed-bootstrap · Aug 16, 2026
230 ms
seed-bootstrap · Aug 1, 2026
+55 ms
Output speed
118 tok/s
seed-bootstrap · Aug 16, 2026
98 tok/s
seed-bootstrap · Aug 1, 2026
+20 tok/s
Input price
$2/1M
seed-bootstrap · Aug 16, 2026
$3/1M
seed-bootstrap · Aug 1, 2026
+$1/1M
Output price
$10/1M
seed-bootstrap · Aug 16, 2026
$15/1M
seed-bootstrap · Aug 1, 2026
+$5/1M
Context window
1M
seed-bootstrap · Aug 16, 2026
256k
seed-bootstrap · Aug 1, 2026
+744k
Interactive Simulator (USD)

Workload Cost & Savings Calculator

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

Save up to 33% with Claude Sonnet 5
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 5$220.00 / mo
In: $70Out: $150
Grok 4$330.00 / mo
In: $105Out: $225
Estimated Cost Delta

Claude Sonnet 5 is estimated to save $110.00/month ($1,320/year).

Based on 50M tokens (30% gen)

Key Selection Recommendations

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

Recommended Workload Routing

Repo / coding agentsClaude Sonnet 5

Higher SWE-bench (73.8%).

High-volume chatClaude Sonnet 5

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

Voice / low-latency UIClaude Sonnet 5

Lower TTFT (175 ms).

Long-document RAGClaude Sonnet 5

Larger window (1M).

Screenshots / visionClaude Sonnet 5

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

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

Related Editorial Dispatches & Benchmark Notes

View all news
compareAug 10, 2026

Sonnet vs Opus in 2026: same family, different invoice

Usually Sonnet 5 vs Opus 5. Coding delta versus output $/1M. The workhorse question.

priceAug 10, 2026

Claude Sonnet 5 at $2/$10: the 2026 Anthropic workhorse

Aug 10 2026 made the $2/$10 list permanent. Sonnet is the default Claude unless the repo is actually on fire.

launchFeb 18, 2026

Claude Sonnet 4.5 is the previous workhorse — still a valid vs baseline

Most of Opus 4.5 coding at a mid-tier price. Sonnet 5 replaced it as the buy; 4.5 remains a compare baseline.

launchJul 10, 2025

Grok 4 remains the previous xAI flagship on this catalog

2025-07 row. 4.6 is the buy. We keep 4 so upgrade pairs and old inbound links resolve.

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!

Social Share Card Preview

Dynamic OpenGraph banner generated at /compare/claude-sonnet-5-vs-grok-4/opengraph-image

Save PNG

CompareLLM AI Matrix

Verified Head-to-Head Telemetry

LIVE BENCHMARK
VS
Anthropic

Claude Sonnet 5

Elo 1,556
SWE-bench73.8%
Speed (tok/s)118 tok/s
Input / 1M Tokens$2/1M
Output / 1M Tokens$10/1M
xAI

Grok 4

Elo 1,488
SWE-bench58.6%
Speed (tok/s)98 tok/s
Input / 1M Tokens$3/1M
Output / 1M Tokens$15/1M

Frequently Asked Questions

Which is better overall, Claude Sonnet 5 or Grok 4?
Claude Sonnet 5 has the higher preference Elo in our latest snapshot (1,556). “Better” still depends on coding, price, and latency — see the table.
Which is better at coding, Claude Sonnet 5 or Grok 4?
Claude Sonnet 5 leads SWE-bench at 73.8% vs 58.6%. SWE-bench is one harness, not your repo.
Which is cheaper to run in production?
Claude Sonnet 5 output tokens are $10/1M versus $15/1M. Input prices and retry rates still move the real bill.
Which is faster, Claude Sonnet 5 or Grok 4?
Claude Sonnet 5 has the lower time-to-first-token (175 ms vs 230 ms). Tokens/sec is a separate column if you care about long completions.
Which has the larger context window?
Claude Sonnet 5 accepts 1M tokens versus 256k.
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 5 and Grok 4 Elo cells are dated snapshots from the named source — we do not compute Arena ourselves.

Related news

  • compare · Aug 10, 2026

    Sonnet vs Opus in 2026: same family, different invoice

  • price · Aug 10, 2026

    Claude Sonnet 5 at $2/$10: the 2026 Anthropic workhorse

  • launch · Feb 18, 2026

    Claude Sonnet 4.5 is the previous workhorse — still a valid vs baseline

  • launch · Jul 10, 2025

    Grok 4 remains the previous xAI flagship on this catalog

Similar Head-to-Head Comparisons

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