Enter opens the highlighted result. Esc closes.

GPT-4 vs GPT-5

GPT-5 leads GPT-4 on the Artificial Analysis Intelligence Index, 23.0 to 6.7, and GPT-5 costs 6.0x less per output token ($10.00 vs $60.00 per million). Updated October 22, 2026; 37 benchmarks have a result for both.

GPT-4OpenAI
Coding
No data
Overall
No data
Output $/M
$60.00
0
GPT-5OpenAI
Coding
38.8
Overall
51.5
Output $/M
$10.00
37
vs boards won of 37 shared

GPT-4 or GPT-5: which to pick

Only GPT-5 has a coding score, 38.8 on the Vibe Coding Index; GPT-4 has none, so the two cannot be ranked on coding.

Compare them on price, context and the boards below.

Shared results
37
GPT-4 only
8
GPT-5 only
76
Like-for-like categories
6 of 9

Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.

Which one for your work

Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.

At a glance

Coding index
GPT-4 not benchmarked, GPT-5 38.8 from 3 benchmarks.
Widest category
Reasoning, 41.7 points apart on average over 4 shared benchmarks.
Widest single gap
SWE-bench Verified: GPT-4 22.4% against GPT-5 74.4%, 52.0 points apart on a 0 to 100 scale.
Output price
GPT-4 $60.00 against GPT-5 $10.00 per million output tokens, 6.0x apart.
Context window
GPT-4 takes 8K tokens, GPT-5 400K.

Benchmark by benchmark

First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.

Boards won, where both have a result
CategoryGPT-4BarsGPT-5Ties
Coding04
Intelligence02
Reasoning04
Math02
Knowledge05
General020
All shared boards037
CodingLike-for-likeSix of these boards feed the Vibe Coding Index04
Coding benchmarks for GPT-4 and GPT-5
BenchmarkGPT-4GPT-5Leader
Aider polyglotNot measured88.0%Only GPT-5 measured
SWE-bench Verified22.4%74.4%GPT-5
SWE-bench Lite39.7%Not measuredOnly GPT-4 measured
SWE-bench (full test set)12.5%Not measuredOnly GPT-4 measured
LMArena WebDevNot measured1418Only GPT-5 measured
AA Coding Index13.137.8GPT-5
LiveCodeBench (Vals AI)Not measured85.9%Only GPT-5 measured
SWE-bench Verified (Vals AI)Not measured69.0%Only GPT-5 measured
Vibe Code Bench (Vals AI)Not measured20.1%Only GPT-5 measured
LiveCodeBench (Artificial Analysis run)Not measured84.6%Only GPT-5 measured
Terminal-Bench Hard (Artificial Analysis run)Not measured37.9%Only GPT-5 measured
Terminal-BenchNot measured49.6%Only GPT-5 measured
GSO-BenchNot measured6.9%Only GPT-5 measured
WeirdMLNot measured60.7%Only GPT-5 measured
ALE-BenchNot measured807.6Only GPT-5 measured
LMArena Text: coding12091436GPT-5
LMArena Text: software and IT11951420GPT-5
LMArena WebDev: HTMLNot measured1427Only GPT-5 measured
SciCodeNot measured0.0%Only GPT-5 measured
Neither model has a result on the other 20 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for GPT-4 and GPT-5
BenchmarkGPT-4GPT-5Leader
AA Intelligence Index6.723.0GPT-5
Epoch Capabilities Index125.7150.0GPT-5
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index7 boards, none shared
Agentic work benchmarks for GPT-4 and GPT-5
BenchmarkGPT-4GPT-5Leader
τ²-Bench TelecomNot measured86.5%Only GPT-5 measured
METR time horizonsNot measured69.6%Only GPT-5 measured
Remote Labor IndexNot measured1.7%Only GPT-5 measured
GDPvalNot measured34.8%Only GPT-5 measured
BALROGNot measured32.8%Only GPT-5 measured
DeepResearch BenchNot measured49.6%Only GPT-5 measured
BrowseComp-PlusNot measured80.0%Only GPT-5 measured
Neither model has a result on the other 34 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index04
Reasoning benchmarks for GPT-4 and GPT-5
BenchmarkGPT-4GPT-5Leader
GPQA DiamondNot measured85.6%Only GPT-5 measured
MMMU Pro (Vals AI)Not measured81.5%Only GPT-5 measured
GPQA Diamond (Artificial Analysis run)34.9%85.4%GPT-5
Humanity's Last Exam (Artificial Analysis run)Not measured28.5%Only GPT-5 measured
GPQA Diamond (Epoch AI run)Not measured86.2%Only GPT-5 measured
ARC-AGINot measured65.7%Only GPT-5 measured
ARC-AGI-2Not measured9.9%Only GPT-5 measured
SimpleBenchNot measured56.7%Only GPT-5 measured
Chess puzzlesNot measured36.0%Only GPT-5 measured
Mystery game puzzlesNot measured23.0%Only GPT-5 measured
EBR-benchNot measured12.7%Only GPT-5 measured
VPCTNot measured66.0%Only GPT-5 measured
BIG-Bench Hard75.1%Not measuredOnly GPT-4 measured
LMArena Text: hard prompts12001415GPT-5
LMArena Text: expert11491419GPT-5
LMArena Text: hard prompts in English12091419GPT-5
LMArena Vision: diagramsNot measured1252Only GPT-5 measured
LMArena Vision: homeworkNot measured1278Only GPT-5 measured
Kagi LLM BenchmarkNot measured72.7%Only GPT-5 measured
Neither model has a result on the other 3 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index02
Math benchmarks for GPT-4 and GPT-5
BenchmarkGPT-4GPT-5Leader
AIMENot measured93.4%Only GPT-5 measured
MATH 500 (Vals AI)Not measured96.0%Only GPT-5 measured
MGSM (Vals AI)Not measured92.8%Only GPT-5 measured
AA Math IndexNot measured94.3Only GPT-5 measured
AIME 2025 (Artificial Analysis run)Not measured94.3%Only GPT-5 measured
OTIS Mock AIMENot measured91.4%Only GPT-5 measured
FrontierMath, tiers 1 to 3Not measured55.4%Only GPT-5 measured
FrontierMath, tier 4Not measured22.0%Only GPT-5 measured
ProofBenchNot measured18.0%Only GPT-5 measured
MATH level 5Not measured98.1%Only GPT-5 measured
GSM8K92.0%Not measuredOnly GPT-4 measured
LMArena Text: math12301407GPT-5
LMArena Text: mathematical work12281405GPT-5
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index05
Knowledge benchmarks for GPT-4 and GPT-5
BenchmarkGPT-4GPT-5Leader
MMLU ProNot measured86.5%Only GPT-5 measured
LegalBench (Vals AI)Not measured86.0%Only GPT-5 measured
CaseLaw (Vals AI)Not measured66.5%Only GPT-5 measured
CorpFin (Vals AI)Not measured61.1%Only GPT-5 measured
TaxEval (Vals AI)Not measured73.4%Only GPT-5 measured
MortgageTax (Vals AI)Not measured65.5%Only GPT-5 measured
MedQA (Vals AI)Not measured96.3%Only GPT-5 measured
MedCode (Vals AI)Not measured49.6%Only GPT-5 measured
MMLU Pro (Artificial Analysis run)56.2%87.1%GPT-5
SimpleQA VerifiedNot measured50.1%Only GPT-5 measured
MMLU86.4%Not measuredOnly GPT-4 measured
GeoBenchNot measured81.0%Only GPT-5 measured
AI2 Reasoning Challenge96.3%Not measuredOnly GPT-4 measured
LMArena Text: science11771416GPT-5
LMArena Text: medicine and healthcare11451413GPT-5
LMArena Text: legal and government11911431GPT-5
LMArena Text: business and finance11451400GPT-5
FACTS Benchmark SuiteNot measured56.5%Only GPT-5 measured
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for GPT-4 and GPT-5
BenchmarkGPT-4GPT-5Leader
Design Arena: websitesNot measured1184Only GPT-5 measured
Design Arena: UI componentsNot measured1177Only GPT-5 measured
Design Arena: game devNot measured1185Only GPT-5 measured
Design Arena: data vizNot measured1221Only GPT-5 measured
Design Arena: 3DNot measured1055Only GPT-5 measured
Design Arena: all code categoriesNot measured1167Only GPT-5 measured
Design Arena: SVGNot measured1188Only GPT-5 measured
Design Arena: ASCII artNot measured1141Only GPT-5 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index020
General benchmarks for GPT-4 and GPT-5
BenchmarkGPT-4GPT-5Leader
SAGE (Vals AI)Not measured43.7%Only GPT-5 measured
MedScribe (Vals AI)Not measured83.7%Only GPT-5 measured
IFBench33.2%73.1%GPT-5
Long context reasoning (AA-LCR)Not measured78.2%Only GPT-5 measured
DTBench62.7%90.7%GPT-5
LMCA17.1%40.0%GPT-5
Fiction.LiveBenchNot measured97.2%Only GPT-5 measured
Creative writing (Lech Mazur)Not measured86.0%Only GPT-5 measured
HellaSwag95.3%Not measuredOnly GPT-4 measured
WinoGrande87.5%Not measuredOnly GPT-4 measured
LMArena Text12061406GPT-5
LMArena Text: instruction following12011388GPT-5
LMArena Text: creative writing11911365GPT-5
LMArena VisionNot measured1232Only GPT-5 measured
LMArena Text: English12201409GPT-5
LMArena Text: non-English11941397GPT-5
LMArena Text: Chinese11841422GPT-5
LMArena Text: German11981416GPT-5
LMArena Text: Japanese11371409GPT-5
LMArena Text: Korean10871360GPT-5
LMArena Text: French12201409GPT-5
LMArena Text: Spanish11971399GPT-5
LMArena Text: Russian11951407GPT-5
LMArena Text: Polish12651431GPT-5
LMArena Text: multi-turn12061426GPT-5
LMArena Text: longer queries11901399GPT-5
LMArena Text: writing and language12191384GPT-5
LMArena Text: entertainment and media11841379GPT-5
LMArena Vision: EnglishNot measured1231Only GPT-5 measured
LMArena Vision: ChineseNot measured1267Only GPT-5 measured
LMArena Vision: reading textNot measured1246Only GPT-5 measured
LMArena Vision: humorNot measured1219Only GPT-5 measured
LMArena Vision: captioningNot measured1212Only GPT-5 measured
LMArena Vision: recognizing thingsNot measured1263Only GPT-5 measured
LMArena Vision: creative writingNot measured1210Only GPT-5 measured
Neither model has a result on the other 11 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GPT-4 and GPT-5
BenchmarkGPT-4GPT-5Leader
Neither model has a result on 5 boards here

What each workload costs

Three fixed token mixes at each model's listed price, so per-token rates become a bill.

Chat turn

1K input + 500 output tokens

GPT-4$0.060Fits in one request
GPT-5$0.0063Fits in one request

GPT-5 costs less

Repository review

50K input + 3K output tokens

GPT-4$1.68Exceeds the context window
GPT-5$0.092Fits in one request

GPT-5 costs less

Agent loop

200K input + 10K output tokens

GPT-4$6.60Exceeds the context window
GPT-5$0.350Fits in one request

GPT-5 costs less

Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.

Specification differences

The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.

Specifications of GPT-4 and GPT-5
SpecificationOpenAI GPT-4OpenAI GPT-5
MakerOpenAIOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedMay 28, 2023August 7, 2025
Context window8K400K
Input $/Mtok$30.00$1.25
Output $/Mtok$60.00$10.00
Coding indexNot benchmarked38.8
Independent measurements behind it03
Cost per solved taskNot computable$0.39
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-4 better than GPT-5 for coding?

Only GPT-5 has a coding score, 38.8 on the Vibe Coding Index; GPT-4 has none, so the two cannot be ranked on coding. Compare them on price, context and the boards below.

Which is cheaper, GPT-4 or GPT-5?

GPT-4 costs $30.00 per million input tokens and $60.00 per million output tokens; GPT-5 costs $1.25 and $10.00. Cost per solved task is known for GPT-5 only.

Which has the bigger context window, GPT-4 or GPT-5?

GPT-5, with 400K tokens against 8K.

How many benchmarks is the GPT-4 vs GPT-5 comparison based on?

37 benchmarks have a result for both models as of October 22, 2026. GPT-4's coding index rests on 0 independent benchmarks and GPT-5's on 3. Where only one model has a result, the page says so instead of naming a winner.

Compare next