Claude Sonnet 4 vs Gemini 2.5 Pro

Performance benchmarks + pricing comparison — updated April 2026

Claude Sonnet 4

Anthropic

Anthropic's balanced model for coding and general tasks. Best price-performance ratio in the Claude family.

Input$3.00/M
Output$15.00/M
Context200K tokens
Best ForDay-to-day coding, code review, documentation
Benchmark78/100

Gemini 2.5 Pro

Google

Google's most capable model. Strong coding, multimodal understanding, and very competitive pricing.

Input$1.25/M
Output$10.00/M
Context1M tokens
Best ForLong document analysis, coding, multimodal tasks

Cost Comparison by Scenario

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

ScenarioClaude Sonnet 4Gemini 2.5 ProSavings
Small Script (1K lines) $0.62 $0.34 Gemini 2.5 Pro saves $0.27 (44%)
Medium Feature (10K lines) $4.66 $2.44 Gemini 2.5 Pro saves $2.22 (48%)
Large Project (50K lines) $23.29 $12.19 Gemini 2.5 Pro saves $11.10 (48%)
Code Review (5K lines) $1.20 $0.47 Gemini 2.5 Pro saves $0.73 (61%)

Verdict

Gemini 2.5 Pro wins on both price and performance — $1.25/M input with a benchmark score of N/A/100.

For most developers, this is the clear choice between these two models.

Compare with Other Models