Enter opens the highlighted result. Esc closes.

Phi 4 vs Qwen3 30B A3B

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

Phi 4Microsoft
Coding
No data
Overall
5.9
Output $/M
$0.14
0
Qwen3 30B A3BQwen
Coding
No data
Overall
7.6
Output $/M
$0.50
41
vs boards won of 42 shared, 1 tied

Decision reading

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

Phi 4 has the edge where output tokens cost 3.6x less, and where what matters is LiveCodeBench (Artificial Analysis run) or Terminal-Bench Hard (Artificial Analysis run), where it leads.

Shared results
42
Phi 4 only
3
Qwen3 30B A3B only
10
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
Phi 4 not benchmarked, Qwen3 30B A3B not benchmarked.
Widest category
Math, 38.8 points apart on average over 5 shared benchmarks.
Widest single gap
AIME 2025 (Artificial Analysis run): Phi 4 18.0% against Qwen3 30B A3B 72.3%, 54.3 points apart on a 0 to 100 scale.
Output price
Phi 4 $0.14 against Qwen3 30B A3B $0.50 per million output tokens, 3.6x apart.
Context window
Phi 4 takes 16K tokens, Qwen3 30B A3B 41K.

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
CategoryPhi 4BarsQwen3 30B A3BTies
Coding04
Intelligence02
Agentic work01
Reasoning06
Math05
Knowledge05
General0181 tie
All shared boards0411 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index04
Coding benchmarks for Phi 4 and Qwen3 30B A3B
BenchmarkPhi 4Qwen3 30B A3BLeader
LiveCodeBench (Artificial Analysis run)23.1%50.6%Qwen3 30B A3B
Terminal-Bench Hard (Artificial Analysis run)3.8%6.8%Qwen3 30B A3B
WeirdMLNot measured29.8%Only Qwen3 30B A3B measured
LMArena Text: coding12311337Qwen3 30B A3B
LMArena Text: software and IT12281340Qwen3 30B A3B
Neither model has a result on the other 33 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Phi 4 and Qwen3 30B A3B
BenchmarkPhi 4Qwen3 30B A3BLeader
AA Intelligence Index5.97.6Qwen3 30B A3B
Epoch Capabilities Index130.5137.3Qwen3 30B A3B
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
Agentic work benchmarks for Phi 4 and Qwen3 30B A3B
BenchmarkPhi 4Qwen3 30B A3BLeader
τ²-Bench Telecom0.0%26.0%Qwen3 30B A3B
BALROG11.6%Not measuredOnly 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 index06
Reasoning benchmarks for Phi 4 and Qwen3 30B A3B
BenchmarkPhi 4Qwen3 30B A3BLeader
GPQA Diamond (Artificial Analysis run)57.5%61.6%Qwen3 30B A3B
Humanity's Last Exam (Artificial Analysis run)3.8%6.2%Qwen3 30B A3B
GPQA Diamond (Epoch AI run)56.1%61.7%Qwen3 30B A3B
LMArena Text: hard prompts12201314Qwen3 30B A3B
LMArena Text: expert12031314Qwen3 30B A3B
LMArena Text: hard prompts in English12301329Qwen3 30B A3B
Neither model has a result on the other 15 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index05
Math benchmarks for Phi 4 and Qwen3 30B A3B
BenchmarkPhi 4Qwen3 30B A3BLeader
AA Math Index18.072.3Qwen3 30B A3B
AIME 2025 (Artificial Analysis run)18.0%72.3%Qwen3 30B A3B
OTIS Mock AIME13.8%62.8%Qwen3 30B A3B
MATH level 564.9%Not measuredOnly Phi 4 measured
LMArena Text: math12461355Qwen3 30B A3B
LMArena Text: mathematical work12541363Qwen3 30B A3B
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index05
Knowledge benchmarks for Phi 4 and Qwen3 30B A3B
BenchmarkPhi 4Qwen3 30B A3BLeader
MMLU Pro (Artificial Analysis run)71.4%77.7%Qwen3 30B A3B
MMLU84.8%Not measuredOnly Phi 4 measured
LMArena Text: science12061321Qwen3 30B A3B
LMArena Text: medicine and healthcare12021318Qwen3 30B A3B
LMArena Text: legal and government12411314Qwen3 30B A3B
LMArena Text: business and finance11991309Qwen3 30B A3B
Neither model has a result on the other 11 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index5 boards, none shared
Web design benchmarks for Phi 4 and Qwen3 30B A3B
BenchmarkPhi 4Qwen3 30B A3BLeader
Design Arena: websitesNot measured955Only Qwen3 30B A3B measured
Design Arena: UI componentsNot measured946Only Qwen3 30B A3B measured
Design Arena: game devNot measured898Only Qwen3 30B A3B measured
Design Arena: data vizNot measured967Only Qwen3 30B A3B measured
Design Arena: all code categoriesNot measured942Only Qwen3 30B A3B measured
Neither model has a result on the other 4 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index018
General benchmarks for Phi 4 and Qwen3 30B A3B
BenchmarkPhi 4Qwen3 30B A3BLeader
IFBench23.5%41.5%Qwen3 30B A3B
Long context reasoning (AA-LCR)0.0%0.0%Tie
DTBenchNot measured60.3%Only Qwen3 30B A3B measured
LMCANot measured15.8%Only Qwen3 30B A3B measured
Fiction.LiveBenchNot measured40.6%Only Qwen3 30B A3B measured
Creative writing (Lech Mazur)62.6%75.3%Qwen3 30B A3B
LMArena Text12171317Qwen3 30B A3B
LMArena Text: instruction following12011283Qwen3 30B A3B
LMArena Text: creative writing11811271Qwen3 30B A3B
LMArena Text: English12311335Qwen3 30B A3B
LMArena Text: non-English11971295Qwen3 30B A3B
LMArena Text: Chinese12121347Qwen3 30B A3B
LMArena Text: German12221307Qwen3 30B A3B
LMArena Text: Japanese11581254Qwen3 30B A3B
LMArena Text: Korean11511261Qwen3 30B A3B
LMArena Text: French12241352Qwen3 30B A3B
LMArena Text: Spanish12341317Qwen3 30B A3B
LMArena Text: Russian12091291Qwen3 30B A3B
LMArena Text: PolishNot measured1299Only Qwen3 30B A3B measured
LMArena Text: multi-turn12061307Qwen3 30B A3B
LMArena Text: longer queries12171312Qwen3 30B A3B
LMArena Text: writing and language11981290Qwen3 30B A3B
LMArena Text: entertainment and media11621258Qwen3 30B A3B
Neither model has a result on the other 23 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Phi 4 and Qwen3 30B A3B
BenchmarkPhi 4Qwen3 30B A3BLeader
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

Phi 4$0.0001Fits in one request
Qwen3 30B A3B$0.0004Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

Phi 4$0.0039Exceeds the context window
Qwen3 30B A3B$0.0075Exceeds the context window

Phi 4 costs less

Agent loop

200K input + 10K output tokens

Phi 4$0.015Exceeds the context window
Qwen3 30B A3B$0.029Exceeds the context window

Phi 4 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 Phi 4 and Qwen3 30B A3B
SpecificationMicrosoft Phi 4Qwen3 30B A3B
MakerMicrosoftQwen
WeightsOpen weightsOpen weights
ReleasedJanuary 10, 2025April 28, 2025
Context window16K41K
Input $/Mtok$0.07$0.12
Output $/Mtok$0.14$0.50
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Phi 4 better than Qwen3 30B A3B for coding?

Neither model has a coding score yet, so the two cannot be ranked on coding. Phi 4 has the edge where output tokens cost 3.6x less, and where what matters is LiveCodeBench (Artificial Analysis run) or Terminal-Bench Hard (Artificial Analysis run), where it leads.

Which is cheaper, Phi 4 or Qwen3 30B A3B?

Phi 4 costs $0.07 per million input tokens and $0.14 per million output tokens; Qwen3 30B A3B costs $0.12 and $0.50. Cost per solved task is known for neither of them.

Which has the bigger context window, Phi 4 or Qwen3 30B A3B?

Qwen3 30B A3B, with 41K tokens against 16K.

How many benchmarks is the Phi 4 vs Qwen3 30B A3B comparison based on?

42 benchmarks have a result for both models as of October 21, 2026. Phi 4's coding index rests on 0 independent benchmarks and Qwen3 30B A3B's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next