Enter opens the highlighted result. Esc closes.

GPT-5 Nano vs Phi 4

Updated October 21, 2026. 41 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

GPT-5 NanoOpenAI
Coding
No data
Overall
13.0
Output $/M
$0.40
41
Phi 4Microsoft
Coding
No data
Overall
5.9
Output $/M
$0.14
0
vs boards won of 41 shared

Decision reading

Neither model has a coding score yet, so the two cannot be ranked on coding.

GPT-5 Nano has the edge where the context window is larger, 400K against 16K tokens.

Shared results
41
GPT-5 Nano only
44
Phi 4 only
4
Like-for-like categories
7 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

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-5 Nano not benchmarked, Phi 4 not benchmarked.
Widest category
Math, 42.2 points apart on average over 6 shared benchmarks.
Widest single gap
OTIS Mock AIME: GPT-5 Nano 81.1% against Phi 4 13.8%, 67.4 points apart on a 0 to 100 scale.
Output price
GPT-5 Nano $0.40 against Phi 4 $0.14 per million output tokens, 2.9x apart.
Context window
GPT-5 Nano takes 400K tokens, Phi 4 16K.

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-5 NanoBarsPhi 4Ties
Coding40
Intelligence20
Agentic work10
Reasoning60
Math60
Knowledge50
General170
All shared boards410
CodingLike-for-likeSix of these boards feed the Vibe Coding Index40
Coding benchmarks for GPT-5 Nano and Phi 4
BenchmarkGPT-5 NanoPhi 4Leader
SWE-bench Verified34.8%Not measuredOnly GPT-5 Nano measured
LiveCodeBench (Vals AI)70.2%Not measuredOnly GPT-5 Nano measured
LiveCodeBench (Artificial Analysis run)78.9%23.1%GPT-5 Nano
Terminal-Bench Hard (Artificial Analysis run)17.4%3.8%GPT-5 Nano
Terminal-Bench21.8%Not measuredOnly GPT-5 Nano measured
WeirdML38.1%Not measuredOnly GPT-5 Nano measured
LMArena Text: coding13511231GPT-5 Nano
LMArena Text: software and IT13451228GPT-5 Nano
Neither model has a result on the other 30 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GPT-5 Nano and Phi 4
BenchmarkGPT-5 NanoPhi 4Leader
AA Intelligence Index13.05.9GPT-5 Nano
Epoch Capabilities Index139.2130.5GPT-5 Nano
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GPT-5 Nano and Phi 4
BenchmarkGPT-5 NanoPhi 4Leader
τ²-Bench Telecom36.5%0.0%GPT-5 Nano
BALROGNot measured11.6%Only Phi 4 measured
Neither model has a result on the other 37 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
Reasoning benchmarks for GPT-5 Nano and Phi 4
BenchmarkGPT-5 NanoPhi 4Leader
GPQA Diamond63.4%Not measuredOnly GPT-5 Nano measured
MMMU Pro (Vals AI)70.9%Not measuredOnly GPT-5 Nano measured
GPQA Diamond (Artificial Analysis run)67.6%57.5%GPT-5 Nano
Humanity's Last Exam (Artificial Analysis run)9.5%3.8%GPT-5 Nano
GPQA Diamond (Epoch AI run)69.4%56.1%GPT-5 Nano
ARC-AGI20.7%Not measuredOnly GPT-5 Nano measured
ARC-AGI-22.6%Not measuredOnly GPT-5 Nano measured
Chess puzzles22.0%Not measuredOnly GPT-5 Nano measured
Mystery game puzzles9.0%Not measuredOnly GPT-5 Nano measured
VPCT37.2%Not measuredOnly GPT-5 Nano measured
LMArena Text: hard prompts13281220GPT-5 Nano
LMArena Text: expert13211203GPT-5 Nano
LMArena Text: hard prompts in English13381230GPT-5 Nano
LMArena Vision: diagrams1141Not measuredOnly GPT-5 Nano measured
LMArena Vision: homework1157Not measuredOnly GPT-5 Nano measured
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index60
Math benchmarks for GPT-5 Nano and Phi 4
BenchmarkGPT-5 NanoPhi 4Leader
AIME81.2%Not measuredOnly GPT-5 Nano measured
MATH 500 (Vals AI)93.8%Not measuredOnly GPT-5 Nano measured
MGSM (Vals AI)89.3%Not measuredOnly GPT-5 Nano measured
AA Math Index83.718.0GPT-5 Nano
AIME 2025 (Artificial Analysis run)83.7%18.0%GPT-5 Nano
OTIS Mock AIME81.1%13.8%GPT-5 Nano
FrontierMath, tiers 1 to 320.0%Not measuredOnly GPT-5 Nano measured
FrontierMath, tier 42.4%Not measuredOnly GPT-5 Nano measured
ProofBench12.0%Not measuredOnly GPT-5 Nano measured
MATH level 595.2%64.9%GPT-5 Nano
LMArena Text: math13171246GPT-5 Nano
LMArena Text: mathematical work13261254GPT-5 Nano
Neither model has a result on the other 1 board here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index50
Knowledge benchmarks for GPT-5 Nano and Phi 4
BenchmarkGPT-5 NanoPhi 4Leader
MMLU Pro76.1%Not measuredOnly GPT-5 Nano measured
LegalBench (Vals AI)50.1%Not measuredOnly GPT-5 Nano measured
CaseLaw (Vals AI)52.6%Not measuredOnly GPT-5 Nano measured
TaxEval (Vals AI)67.4%Not measuredOnly GPT-5 Nano measured
MortgageTax (Vals AI)53.6%Not measuredOnly GPT-5 Nano measured
MedQA (Vals AI)93.3%Not measuredOnly GPT-5 Nano measured
MedCode (Vals AI)30.4%Not measuredOnly GPT-5 Nano measured
MMLU Pro (Artificial Analysis run)78.0%71.4%GPT-5 Nano
SimpleQA Verified11.7%Not measuredOnly GPT-5 Nano measured
MMLUNot measured84.8%Only Phi 4 measured
LMArena Text: science13181206GPT-5 Nano
LMArena Text: medicine and healthcare13351202GPT-5 Nano
LMArena Text: legal and government12981241GPT-5 Nano
LMArena Text: business and finance13111199GPT-5 Nano
Neither model has a result on the other 3 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
Web design benchmarks for GPT-5 Nano and Phi 4
BenchmarkGPT-5 NanoPhi 4Leader
Design Arena: websites1101Not measuredOnly GPT-5 Nano measured
Design Arena: UI components1067Not measuredOnly GPT-5 Nano measured
Design Arena: game dev1045Not measuredOnly GPT-5 Nano measured
Design Arena: data viz1056Not measuredOnly GPT-5 Nano measured
Design Arena: 3D966Not measuredOnly GPT-5 Nano measured
Design Arena: all code categories1084Not measuredOnly GPT-5 Nano measured
Neither model has a result on the other 3 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index170
General benchmarks for GPT-5 Nano and Phi 4
BenchmarkGPT-5 NanoPhi 4Leader
SAGE (Vals AI)30.4%Not measuredOnly GPT-5 Nano measured
MedScribe (Vals AI)72.9%Not measuredOnly GPT-5 Nano measured
IFBench67.6%23.5%GPT-5 Nano
Long context reasoning (AA-LCR)45.0%0.0%GPT-5 Nano
DTBench62.7%Not measuredOnly GPT-5 Nano measured
LMCA7.9%Not measuredOnly GPT-5 Nano measured
Fiction.LiveBench44.4%Not measuredOnly GPT-5 Nano measured
Creative writing (Lech Mazur)Not measured62.6%Only Phi 4 measured
LMArena Text13201217GPT-5 Nano
LMArena Text: instruction following13061201GPT-5 Nano
LMArena Text: creative writing12491181GPT-5 Nano
LMArena Vision1159Not measuredOnly GPT-5 Nano measured
LMArena Text: English13211231GPT-5 Nano
LMArena Text: non-English13131197GPT-5 Nano
LMArena Text: Chinese13561212GPT-5 Nano
LMArena Text: German13271222GPT-5 Nano
LMArena Text: Japanese12271158GPT-5 Nano
LMArena Text: Korean12691151GPT-5 Nano
LMArena Text: FrenchNot measured1224Only Phi 4 measured
LMArena Text: Spanish13601234GPT-5 Nano
LMArena Text: Russian12961209GPT-5 Nano
LMArena Text: Polish1314Not measuredOnly GPT-5 Nano measured
LMArena Text: multi-turn13111206GPT-5 Nano
LMArena Text: longer queries13121217GPT-5 Nano
LMArena Text: writing and language12831198GPT-5 Nano
LMArena Text: entertainment and media12681162GPT-5 Nano
LMArena Vision: English1170Not measuredOnly GPT-5 Nano measured
LMArena Vision: Chinese1176Not measuredOnly GPT-5 Nano measured
LMArena Vision: reading text1152Not measuredOnly GPT-5 Nano measured
LMArena Vision: humor1110Not measuredOnly GPT-5 Nano measured
Neither model has a result on the other 16 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GPT-5 Nano and Phi 4
BenchmarkGPT-5 NanoPhi 4Leader
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-5 Nano$0.0003Fits in one request
Phi 4$0.0001Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

GPT-5 Nano$0.0037Fits in one request
Phi 4$0.0039Exceeds the context window

GPT-5 Nano costs less

Agent loop

200K input + 10K output tokens

GPT-5 Nano$0.014Fits in one request
Phi 4$0.015Exceeds the context window

GPT-5 Nano 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-5 Nano and Phi 4
SpecificationOpenAI GPT-5 NanoMicrosoft Phi 4
MakerOpenAIMicrosoft
WeightsNo public weights listedOpen weights
ReleasedAugust 7, 2025January 10, 2025
Context window400K16K
Input $/Mtok$0.05$0.07
Output $/Mtok$0.40$0.14
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved task$0.109Not computable
SourceOpenRouter listingOpenRouter listing

Questions

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

Neither model has a coding score yet, so the two cannot be ranked on coding. GPT-5 Nano has the edge where the context window is larger, 400K against 16K tokens.

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

GPT-5 Nano costs $0.05 per million input tokens and $0.40 per million output tokens; Phi 4 costs $0.07 and $0.14. Cost per solved task is known for GPT-5 Nano only.

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

GPT-5 Nano, with 400K tokens against 16K.

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

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

Compare next