Coding
Directional only- Claude 3.5 Sonnet
- 49.0
- Grok 4.20
- 67.1
- Weighted basis
- 1 vs 2 rows
- Reading
- Directional only
Model comparison
Updated July 29, 2026. Public scores include evidence status and uncertainty. They are not guarantees for a specific workload.
Grok 4.20 has the higher public score estimate, 53.88 versus 46.9, but the 90% score intervals overlap. Treat that as a lead, not a settled winner.
1 results are shared. Category rows based on different benchmark sets are marked directional and do not name a winner.
Recommendations appear only when a shared evidence basis or an explicit operating constraint supports the call. Secondary and unsupported use cases stay disclosed below the initial list.
Prompts that approach the documented context limit
Grok 4.20
Grok 4.20 has the larger documented context window.
Confidence: documented
1K fresh input + 500 output tokens
Grok 4.20
Grok 4.20 has the lower estimated token cost for this stated workload. Costs use the listed standard API rates.
Confidence: listed-rates
50K fresh input + 3K output tokens
Grok 4.20
Grok 4.20 has the lower estimated token cost for this stated workload. Costs use the listed standard API rates.
Confidence: listed-rates
Code generation, repair, and software-engineering tasks
Not enough matched evidence
The category averages use different weighted benchmark sets, so they are directional rather than like-for-like.
Confidence: limited
Tool use, computer use, and multi-step task completion
Not enough matched evidence
No shared weighted benchmark basis supports a winner.
Confidence: limited
200K cached + 20K fresh input + 10K output tokens
Not enough matched evidence
The page does not recommend a cost winner because at least one model cannot fit the stated workload in one request. Claude 3.5 Sonnet does not fit this workload in one request. Claude 3.5 Sonnet has no published cached-input rate, so cached tokens use its listed input rate. Grok 4.20 has no published cached-input rate, so cached tokens use its listed input rate.
Confidence: rate-fallback
Shared results can support a head-to-head reading. Results present for only one model describe coverage, not superiority.
1 category uses different evidence sets. Those rows remain visible for coverage context but do not name a winner.
Each row states whether both averages use the same weighted benchmark set. Directional and not-comparable rows remain visible, but they never receive a winner in this template.
| Category | Claude 3.5 Sonnet | Grok 4.20 | Weighted basis | Reading |
|---|---|---|---|---|
| Coding | 49.0 | 67.1 | Directional only1 vs 2 rows | Directional only |
| Agentic | Not measured | 47.1 | Not comparable0 vs 1 rows | Not comparable |
| Reasoning | Not measured | 53.3 | Not comparable0 vs 1 rows | Not comparable |
| Knowledge | 59.4 | Not measured | Not comparable1 vs 0 rows | Not comparable |
| Math | 1.6 | Not measured | Not comparable2 vs 0 rows | Not comparable |
| Multilingual | Not measured | Not measured | Not comparable0 vs 0 rows | Not comparable |
| Multimodal | Not measured | 70.1 | Not comparable0 vs 2 rows | Not comparable |
| Instruction following | Not measured | Not measured | Not comparable0 vs 0 rows | Not comparable |
Only shared public evidence is shown. Sparse evidence stays a ruled list rather than being closed into a radar shape.
Too few matched category axes support a radar. The ruled list below shows only shared benchmark results; positions use each benchmark’s normalized display scale when available.
SWE-bench Verified
Coding
Three fixed token mixes turn per-token rates into comparable decisions. Each scenario states context fit and whether cached input had to fall back to the published list-input rate.
1K fresh input + 500 output tokens
Grok 4.20 has the lower modeled cost
Costs use the listed standard API rates.
50K fresh input + 3K output tokens
Grok 4.20 has the lower modeled cost
Costs use the listed standard API rates.
200K cached + 20K fresh input + 10K output tokens
Claude 3.5 Sonnet does not fit this workload in one request. Claude 3.5 Sonnet has no published cached-input rate, so cached tokens use its listed input rate. Grok 4.20 has no published cached-input rate, so cached tokens use its listed input rate.
Sourced differences are shown directly. Missing facts stay explicit instead of being inferred from a model name or family.
Maximum documented context; output-token limits may be lower.
Claude 3.5 Sonnet
200K
Grok 4.20
2M
Claude 3.5 Sonnet
Not sourced
Grok 4.20
Not sourced
A missing cached-input rate falls back to the listed input rate only in the stated workload estimate.
Claude 3.5 Sonnet
Not published
Grok 4.20
Not published
Claude 3.5 Sonnet
Not sourced
Grok 4.20
Not sourced
Claude 3.5 Sonnet
Not sourced
Grok 4.20
Not sourced
Claude 3.5 Sonnet
Not sourced
Grok 4.20
Not sourced
Claude 3.5 Sonnet
Non-Reasoning
Grok 4.20
Reasoning
Claude 3.5 Sonnet
Proprietary
Grok 4.20
Proprietary
Claude 3.5 Sonnet
Proprietary
Grok 4.20
Proprietary
Claude 3.5 Sonnet
2024-06-01
Grok 4.20
2026-03-10
Run the same representative tasks against both endpoints before changing production traffic.
The full public result ledger is available for audit without forcing a wide desktop table onto a phone.
SWE-bench Verified
Grok 4.20 leads this result
LiveCodeBench Pro
Not directly comparable
SWE-bench Pro
Not directly comparable
Vibe Code Bench
Not directly comparable
GPQA
Not directly comparable
GPQA-D
Not directly comparable
HLE w/o tools
Not directly comparable
HealthBench Hard
Not directly comparable
MedXpertQA (Text)
Not directly comparable
MMMU-Pro
Not directly comparable
CharXiv
Not directly comparable
ERQA
Not directly comparable
SimpleVQA
Not directly comparable
MedXpertQA (MM)
Not directly comparable
Grok 4.20 has the higher public score estimate, 53.88 versus 46.9, but the 90% score intervals overlap. The higher estimate is not a decisive winner because the uncertainty ranges overlap.
The current coding averages use different weighted benchmark sets, so BenchLM does not name a winner from them. Read the shared benchmark rows directly and test the models on the same task set.
The published evidence does not provide a shared weighted agentic tasks basis for both models, so BenchLM does not name a agentic tasks winner.
For the stated presets, chat costs $0.0105 on Claude 3.5 Sonnet and $0.005 on Grok 4.20; repository review costs $0.195 and $0.118; the cache-heavy agent loop costs $0.81 and $0.5. Claude 3.5 Sonnet does not fit this workload in one request. Claude 3.5 Sonnet has no published cached-input rate, so cached tokens use its listed input rate. Grok 4.20 has no published cached-input rate, so cached tokens use its listed input rate.
Grok 4.20 has the larger documented context window: 2M, compared with 200K.
Last updated July 29, 2026
One weekly email when material rank, price, or benchmark evidence changes make this matchup worth revisiting.
Read a sample issueJoin 2,000+ readers.