Comparison

Claude Sonnet 5 vs Opus 4.8: Which to Code With

The counterintuitive part first: Claude Sonnet 5 is the cheaper model per token, and it can still cost you more per task than the flagship Opus 4.8. Here is what shipped, what the benchmarks actually say, and how to pick between them for real coding work.

Editorial hero illustration for Claude Sonnet 5 vs Opus 4.8: Which to Code With

Get the latest on AI, LLMs & developer tools

New MCP servers, model updates, and guides like this one — delivered weekly.

Short answer: keep Opus 4.8 for correctness-critical agentic coding and your hardest, longest runs. It scores higher on hard coding and, once you turn effort up, it is cheaper per task. Use Sonnet 5 for high-throughput, medium-effort, latency-sensitive, and knowledge-work jobs, and as the sensible default if you are on a Free or Pro plan without Opus. The trap is treating "cheaper per token" as "cheaper to run." On launch day it was not.

What Shipped

Anthropic released Claude Sonnet 5 (codename "Fennec") on June 30, 2026 and made it the default model for Free and Pro users, with Max, Team, and Enterprise plans getting access too. The API id is claude-sonnet-5. It shipped day one across the Claude API, Claude Code, Cursor, VS Code, and GitHub Copilot, and Claude Code v2.1.197 makes it the default there. Anthropic pitches it as "the most agentic Sonnet yet," built to plan, drive browsers and terminals, and run multi-step work on its own.

The important new control is effort. Sonnet 5 exposes adjustable effort levels through /effort, with tiers up to "Extra High" (xhigh). That dial is the whole controversy below, so keep it in mind.

Model:            Claude Sonnet 5 (codename "Fennec")
API id:           claude-sonnet-5
Released:         2026-06-30
Default for:      Free + Pro (Max / Team / Enterprise also get access)
Default in:       Claude Code v2.1.197
Context window:   1M tokens (reported, via Claude Code v2.1.197 notes)
Effort control:   /effort  --  tiers up to "Extra High" (xhigh)
Day-one surfaces: Claude API, Claude Code, Cursor, VS Code, GitHub Copilot

Pricing is the headline Anthropic wanted. Sonnet 5 launched at a steep discount to Opus 4.8, with an intro rate that runs through August 31, 2026 and a higher standard rate after that.

ModelInput / MTokOutput / MTok
Sonnet 5 (intro, through Aug 31, 2026)$2$10
Sonnet 5 (standard, from Sep 1, 2026)$3$15
Opus 4.8$5$25

On paper Sonnet 5 is about 40% cheaper per token than Opus at standard rates, and about 60% cheaper during the intro. Hold that number loosely. Per-token price is not per-task cost, and the gap between the two is the story of this launch.

Benchmark Table

Here is the honest read on Anthropic's own numbers: Opus 4.8 still beats Sonnet 5 on the hard coding, terminal, and computer-use evals. Sonnet 5 surpasses Opus on exactly one benchmark in the launch set, GDPval-AA v2 knowledge work, and even there the margin is three points on an Elo-style scale. So Sonnet 5 is near-Opus on knowledge work and still-behind-Opus on the hardest coding.

BenchmarkSonnet 5Opus 4.8Sonnet 4.6What it measures
SWE-bench Pro63.2%69.2%58.1%Agentic coding on hard, real-repo issues.
Terminal-Bench 2.180.4%82.7%67.0%Terminal-driven, multi-step agentic tool use.
OSWorld-Verified81.2%78.5%Live computer use. No Opus 4.8 figure published in this set.
Humanity's Last Exam (with tools)57.4%57.9%Hard reasoning with tool access. Effectively a tie.
GDPval-AA v21,6181,6151,395Knowledge work, higher is better. Sonnet 5's only win.

The generation-over-generation jump is real: Sonnet 5 is a large upgrade over Sonnet 4.6 on every row. The cross-model story is the one people misread. Yes, Sonnet 5's 63.2% on SWE-bench Pro slots above GPT-5.5 (about 58.6%) and Gemini 3.1 Pro (about 54.2%). But that framing quietly skips the fact that the flagship Opus 4.8 is still ahead of all of them on hard coding.

The Cost-Per-Task Problem

The launch-day story was not the benchmarks. It was cost per task. Sonnet 5 ships a new tokenizer and does more autonomous thinking, so it generates far more tokens to finish the same job. The cheaper per-token rate gets eaten by the higher token count.

Artificial Analysis lit the fuse with a single number: Sonnet 5 costs about $2.29 per task on its Intelligence Index, roughly twice Sonnet 4.6 and roughly 15% more than Opus 4.8. In their words, it is one of the most costly models to run, behind only Claude Fable 5.

Theo amplified it to a wide audience, and the line that stuck was blunt: Sonnet 5 cost more than Opus 4.8 on the Intelligence Index, and generated almost twice the tokens per task.

This is where the effort dial bites. The most-upvoted skeptic thread on r/ClaudeAI asked directly whether Sonnet 5 is worse than Opus at the same price at high and xhigh, and it pulled 636 upvotes and 217 comments. The recurring finding: Sonnet 5 at high or xhigh is both more expensive and less capable than Opus 4.8 at low or medium. One user reported a task that took 17 minutes and 9% of their usage on Sonnet 5, which Opus 4.8 finished in 3 minutes for less. Top comments were harsh: "no point to use it on high/xhigh" and "it's on the new tokenizer so uses 30% more tokens."

It is not all bad news. A separate early-impressions thread (191 upvotes) reported Sonnet 5 fixing a bug Opus had been stuck on for days, calling it "Opus-level intelligence for Sonnet pricing." Both things are true. The model is genuinely strong, and it can still run up a bigger bill than the flagship if you point the effort dial at the ceiling.

The Harness Caveat

Before you take any single number to the bank: benchmark scores are harness-dependent. The scaffolding wrapped around a model, the retries, the tools, the prompt, moves results more than most tables admit. The cleanest illustration comes from morphllm's Scale SEAL standardized ranking, which scores Opus 4.8 at 51.9% on SWE-bench Pro against the 69.2% Anthropic reports. That is a roughly 17-point swing from eval setup alone, on the same model.

SWE-bench Pro, Opus 4.8Reported score
Anthropic's own harness69.2%
morphllm Scale SEAL (standardized)51.9%
Swing from eval setup alone~17 points

The practical takeaway: any cross-vendor claim you read, including the ones in this article, carries an implicit "in this harness." GPT-5.5, for example, is reported to lead terminal and agentic coding at around 82.7% to 83.4% on Terminal-Bench versus Sonnet 5's 80.4%, but there is version ambiguity (2.0 vs 2.1) baked into that comparison, so treat the exact figure as soft. Trust the pattern, not the decimal. Better still, re-run the evals that match your own stack.

When to Use Which

Sonnet 5 is best understood as a Sonnet 4.6 replacement, not an Opus competitor. Its home is cheaper, medium-effort, high-volume work, especially subagent fan-out where you spin up many parallel workers. It also feels genuinely fast, which matters for tight interactive loops. Here is the decision, stated plainly.

Reach for OPUS 4.8 when:
  - correctness is non-negotiable (agentic code you will ship)
  - the task is your hardest reasoning or longest-horizon run
  - you were going to run at high / xhigh effort anyway
    -> Opus is cheaper PER TASK and scores higher there

Reach for SONNET 5 when:
  - high-throughput, medium-effort, bulk work (subagent fan-out)
  - latency matters more than the last few points of accuracy
  - the job is knowledge work, not the hardest coding
  - you are on Free / Pro without Opus access
  - you want a drop-in Sonnet 4.6 upgrade, not an Opus swap

Two cautions live inside that list. First, the new tokenizer is a stealth price hike of roughly 30% in token terms, so re-benchmark your own bills before you assume the cheaper rate means cheaper months. Second, the viral chart everyone shared is agentic search, not general coding, so do not over-generalize a single win into "Sonnet 5 beats Opus." If you are wiring Sonnet 5 into an agent, the right MCP servers for Claude Code matter more to real throughput than the last benchmark point.

Enterprise users report the upside clearly. Cursor's Sualeh Asif said agents "stay on plan, follow our conventions, and ship clean multi-step changes, at an efficient cost." Zapier's Daniel Shepard said a two-part automation that "used to stall halfway" now "completes end to end." Cursor also shipped it day one and posted its own CursorBench number.

FAQ

Is Claude Sonnet 5 cheaper than Opus 4.8?

Per token, yes: about 40% cheaper at standard rates and about 60% cheaper during the intro period through August 31, 2026. Per task, not always. Artificial Analysis measured Sonnet 5 at $2.29 per task on its Intelligence Index, roughly 15% more than Opus 4.8, because Sonnet 5's new tokenizer and heavier autonomous work generate close to twice the tokens.

Is Sonnet 5 better than Opus 4.8 at coding?

Not on the hardest coding. On Anthropic's own harness, Opus 4.8 leads SWE-bench Pro (69.2% vs 63.2%) and Terminal-Bench 2.1 (82.7% vs 80.4%). Sonnet 5 surpasses Opus 4.8 on exactly one reported eval: GDPval-AA v2 knowledge work (1,618 vs 1,615).

Should I run Sonnet 5 on high or xhigh effort?

Usually no. Community testing found Sonnet 5 at high or xhigh can be both more expensive and less capable than Opus 4.8 at low or medium. If you were going to spend on high-effort runs anyway, Opus 4.8 is the better buy. Keep Sonnet 5 at medium effort for bulk work.

What is Sonnet 5's pricing?

Intro pricing through August 31, 2026 is $2 per million input tokens and $10 per million output tokens. Standard pricing from September 1, 2026 is $3 input and $15 output. Opus 4.8 is $5 input and $25 output.

When should I use Sonnet 5 instead of Opus 4.8?

Use Sonnet 5 for high-throughput, medium-effort, latency-sensitive, or knowledge-work tasks, for subagent fan-out, and as the default when you are on a Free or Pro plan without Opus access. Treat it as a Sonnet 4.6 upgrade, not an Opus replacement.

Why does Sonnet 5 cost more per task if each token is cheaper?

Because it generates far more tokens. A new tokenizer plus heavier autonomous thinking mean roughly twice the tokens of Opus 4.8 per task, so the total bill can be larger even at a lower per-token price. Rohan Paul put it plainly: Sonnet 5 works harder and thinks more, so the final bill becomes bigger even though each token is cheaper.

Does Sonnet 5 have a 1M token context window?

Reported yes, via the Claude Code v2.1.197 release notes. Treat the 1M figure as reported rather than a headline-confirmed spec until the model docs restate it.

Glossary

The terms that keep coming up in the Sonnet 5 versus Opus 4.8 debate, in plain language.

TermWhat it means
Per-token priceWhat you pay per million tokens (MTok). Sonnet 5 is lower than Opus 4.8 on this number.
Per-task costTotal tokens a model burns to finish one task multiplied by price. This is the number that lands on your bill, and it does not always follow per-token price.
Effort levelSonnet 5's quality-versus-latency-versus-cost dial, set with /effort. Higher effort means more thinking and more tokens.
xhigh (Extra High)The top effort tier. More reasoning, more tokens, more cost per task. The center of the launch-day controversy.
TokenizerHow text is split into tokens. Sonnet 5 ships a new one that produces more tokens for the same work, reported at roughly 30% more.
SWE-bench ProA hard agentic coding benchmark on real repositories with large diffs. Opus 4.8 leads it.
Terminal-Bench 2.1A terminal and agentic tool-use benchmark inside an agent harness.
OSWorld-VerifiedA live computer-use benchmark that scores real desktop task completion.
GDPval-AA v2A knowledge-work evaluation scored on an Elo-style scale. Sonnet 5's one benchmark win over Opus 4.8.
Intelligence IndexArtificial Analysis's cross-model evaluation. It is where the $2.29-per-task figure for Sonnet 5 comes from.
Harness / scaffoldingThe agent framework wrapped around a raw model. Changing it swings scores hard, which is why cross-vendor tables need a disclaimer.
SubagentsParallel worker agents spun up for fan-out work. This is where cheap, medium-effort Sonnet 5 fits best.

Verdict

Sonnet 5 is a strong model and a clear upgrade over Sonnet 4.6, but it did not dethrone Opus 4.8 for hard coding, and it is not automatically the cheaper choice. The counterintuitive truth of this launch is that a model with a lower sticker price can cost more to finish the same task, because it burns more tokens getting there. If your work is correctness-critical, long-horizon, or you were going to crank effort to high or xhigh, Opus 4.8 is both stronger and cheaper per task, so use it. If your work is high-volume, medium-effort, latency-sensitive, or knowledge-work, or you simply do not have Opus access, Sonnet 5 is the right default and a genuine bargain at medium effort. Pick by the workload, watch the per-task bill, not the per-token price, and re-run the evals that match your own stack.

Sources and Links

Grouped by type. Official first, then press, then community. All figures above are drawn from these.

Official

Press

Community

Get the latest on AI, LLMs & developer tools

New MCP servers, model updates, and guides like this one — delivered weekly.

Sponsored AI assistant. Recommendations may be paid.