Data story · coding

Best coding models in 2026: full ranking

The strongest coding models in the index, ranked by the average of SWE-bench Verified, HumanEval, LiveCodeBench.

What the data shows

GPT-5.2 Pro leads the coding group with an average of 87.7 across the selected benchmarks. The median for the group is 67.9.

Prices for the top 10 range from $19.42 to $21.39 per million input tokens.

How to read the ranking

  • Check the individual benchmark scores, not just the composite.
  • Test on your own examples; benchmark tasks differ from production tasks.
  • Compare price and latency for the top candidates.
  • Keep a fallback model for outages.

Best coding models

#ModelProviderInput / 1MOutput / 1MContextAvg score
1GPT-5.2 ProOpenAI$21.32$76.332,000,00089.6
2GPT-5.2 MaxOpenAI$21.39$90.691,000,00089.2
3Claude Opus 4.5 ProAnthropic$20.98$85.59200,00089.1
4Grok 4 ReasoningxAI$19.67$93.292,000,00087.8
5Claude Opus 4.5Anthropic$19.42$75.27400,00087.7
6Claude Sonnet 4.5 MaxAnthropic$19.90$95.471,000,00087.2
7GPT-5.2 ReasoningOpenAI$20.98$102.781,000,00087.5
8Claude Sonnet 4.5 ReasoningAnthropic$19.48$68.20400,00087.7
9o4 MaxOpenAI$19.51$93.982,000,00086.2
10Gemini 3 Pro ProGoogle DeepMind$19.80$108.61200,00087.3
11Gemini 3 ProGoogle DeepMind$18.24$82.932,000,00086.1
12GPT-5.2 VisionOpenAI$19.03$85.721,000,00087.4
13Claude Opus 4.5 ReasoningAnthropic$20.91$108.132,000,00088.2
14GPT-5.1 ProOpenAI$19.77$100.32200,00087.8
15GPT-5.2 TurboOpenAI$20.73$96.051,000,00087.4
16o4 ProOpenAI$19.37$70.191,000,00087.3
17Grok 4xAI$17.90$84.75200,00086.5
18Gemini 3 Pro MaxGoogle DeepMind$20.57$112.922,000,00087.9
19Claude Opus 4.5 MaxAnthropic$20.90$106.511,000,00087.8
20Grok 4 TurboxAI$19.21$87.371,000,00086.7
21GPT-5.2OpenAI$19.71$85.712,000,00088.0
22GPT-5.1 TurboOpenAI$19.19$89.832,000,00086.1
23Gemini 3 Pro TurboGoogle DeepMind$19.62$89.91400,00086.4
24o4 ReasoningOpenAI$19.69$103.531,000,00087.5
25o3 ProOpenAI$17.89$81.48400,00085.8
26GPT-5.1 ReasoningOpenAI$20.27$82.11400,00088.3
27o4 TurboOpenAI$19.34$82.192,000,00086.6
28Claude Sonnet 4.5Anthropic$17.84$70.50400,00086.0
29Grok 4 MaxxAI$19.70$98.292,000,00086.6
30Qwen3-Max ProAlibaba Cloud$18.87$84.39400,00086.2
31Gemini 3 Pro ReasoningGoogle DeepMind$19.69$98.36200,00087.5
32Claude Sonnet 4.5 ProAnthropic$18.73$82.291,000,00086.7
33o3 ReasoningOpenAI$18.07$70.65200,00085.3
34GPT-5.1 MaxOpenAI$20.50$103.982,000,00087.9
35Qwen3-Max MaxAlibaba Cloud$18.53$74.05400,00085.9
36Gemini 3 Pro VisionGoogle DeepMind$17.59$68.83200,00085.5
37Claude Opus 4.5 VisionAnthropic$17.70$74.84200,00085.9
38GPT-4.1 ProOpenAI$17.56$91.14400,00085.2
39Qwen3-Max ReasoningAlibaba Cloud$18.12$81.942,000,00085.9
40o4OpenAI$17.74$66.002,000,00085.4
41o4 VisionOpenAI$17.01$90.05200,00084.5
42GPT-5.1OpenAI$19.01$69.842,000,00086.0
43Grok 3 MaxxAI$17.66$89.122,000,00085.9
44Qwen3-Max TurboAlibaba Cloud$17.70$63.951,000,00084.7
45Claude 3.7 Sonnet MaxAnthropic$16.88$83.20128,00083.7
46Claude Sonnet 4.5 TurboAnthropic$18.37$81.651,000,00085.9
47DeepSeek-V3.2DeepSeek$5.88$24.701,000,00084.0
48Qwen3-MaxAlibaba Cloud$17.37$94.30400,00084.4
49Gemini 3 Flash ProGoogle DeepMind$17.71$86.50400,00084.8
50o3OpenAI$16.80$81.80400,00084.5

Methodology

This story uses the AI & LLM Index dataset: 600 models, 40 providers and 12 benchmarks. Prices are listed per million tokens. Scores are modelled estimates on a 0–100 scale and are not official benchmark results. Figures are rounded for readability.

Related

FAQ

What does the Best coding models in 2026: full ranking data show?

The strongest coding models in the index, ranked by the average of SWE-bench Verified, HumanEval, LiveCodeBench.

Are the numbers official?

No. Prices and scores are compiled for this demo index. Benchmark values are modelled estimates, not official results. Verify figures with the provider or benchmark owner before making decisions.

How should I use this ranking?

Use it to form a shortlist. Check the specific model pages, compare price and context, and test the shortlist on your own examples before committing.