Claude 3 Sonnet vs GPT-4

Performance benchmarks + pricing comparison — updated April 2026

Claude 3 Sonnet

Anthropic

First generation Sonnet. Balanced performance for general tasks.

Input$3.00/M
Output$15.00/M
Context200K tokens
Best ForGeneral-purpose coding and reasoning
Benchmark65/100

GPT-4

OpenAI

Original GPT-4. Most expensive OpenAI model, largely superseded by newer options.

Input$30.00/M
Output$60.00/M
Context8K tokens
Best ForLegacy applications requiring GPT-4 specifically
Benchmark68/100

Benchmark Performance Comparison

Third-party benchmark scores — higher is better. Data sourced from SWE-bench, LiveCodeBench, HumanEval, and BigCodeBench.

BenchmarkClaude 3 SonnetGPT-4Leader
Overall Score 65 68 GPT-4 leads by 3pts
SWE-bench Verified 58 60 GPT-4 leads by 2pts
LiveCodeBench 68 70 GPT-4 leads by 2pts
HumanEval 85 86 GPT-4 leads by 1pts
BigCodeBench 50 54 GPT-4 leads by 4pts

Cost Comparison by Scenario

Estimated cost per project with 30% cache hit rate. Actual costs may vary based on usage patterns.

ScenarioClaude 3 SonnetGPT-4Savings
Small Script (1K lines) $0.55 $2.85 Claude 3 Sonnet saves $2.29 (81%)
Medium Feature (10K lines) $4.05 $22.50 Claude 3 Sonnet saves $18.45 (82%)
Large Project (50K lines) $20.25 $112.50 Claude 3 Sonnet saves $92.25 (82%)
Code Review (5K lines) $0.90 $6.75 Claude 3 Sonnet saves $5.85 (87%)

Value Analysis (Price per Benchmark Score Point)

Lower is better — how much you pay for each point of benchmark performance.

ModelOverall ScorePrice per Score PointVerdict
Claude 3 Sonnet 65 $0.046/pt Better value
GPT-4 68 $0.441/pt Higher cost per point

Claude 3 Sonnet delivers the best value at $0.046 per score point.

Strengths & Weaknesses

Claude 3 Sonnet

  • + Reliable
  • + Good value
  • - Two generations behind

GPT-4

  • + Original breakthrough model
  • - Two generations behind
  • - Expensive

Verdict

Claude 3 Sonnet is cheaper at $3.00/M, but GPT-4 scores higher on benchmarks (68 vs 65).

Choose Claude 3 Sonnet for cost-sensitive projects, GPT-4 when performance matters most.

Compare with Other Models