Model guide

Claude Sonnet 5 for Coding: The Workhorse With a 1M Context

Anthropic's new mid-tier default replaced Sonnet 4.6 on June 30 with a 1M window as standard, a new tokenizer, and intro pricing that makes it, right now, the cheapest serious coding model you can buy. Here is where it fits.

By Kylian Migot · Updated July 2026 · 6 min read

Quick answer

Claude Sonnet 5 is Anthropic's mid-tier workhorse, released June 30, 2026 as the replacement for Sonnet 4.6. It ships 1M tokens (default) context at $3 in / $15 out per MTok, with intro pricing of $2 in / $10 out per MTok through August 31, 2026. In Claude Code you select it with /model sonnet.
What it is
The mid-tier default, replacing Sonnet 4.6
Price
$3 in / $15 out per MTok (Intro pricing $2/$10 through Aug 31, 2026)
Context
1M tokens (default)
In Claude Code
/model sonnet
01

What Is Claude Sonnet 5?

Claude Sonnet 5 went generally available on June 30, 2026, replacing Sonnet 4.6 as the middle tier of the Claude lineup, below Opus 4.8 and Fable 5, above Haiku 4.5. The API identifier is claude-sonnet-5, and the headline change is the window: 1M tokens (default), a size previous generations reserved for the expensive tiers, now standard at mid-tier pricing.

Sonnet has always been the tier most code actually ships on, and Sonnet 5 leans into that role: fast enough for tight edit-test loops, big enough to hold a real repo in context, and priced so that running several of them in parallel is not a budget conversation. Where it sits against the rest of the family is mapped in the best Claude model for coding.

02

Specs and Pricing

SpecClaude Sonnet 5
VendorAnthropic
API identifierclaude-sonnet-5
ReleasedJune 30, 2026
List price$3 in / $15 out per MTok
Intro price$2 in / $10 out per MTok through Aug 31, 2026
Context window1M tokens (default)
TierWorkhorse (replaces Sonnet 4.6)
Claude Code/model sonnet

Data verified July 18, 2026 against Anthropic's published pricing and docs. Anthropic has not yet published SWE-bench scores for Sonnet 5 that we can verify, so this page carries no benchmark table, when verified numbers land, they will appear here and on the models hub.

Ship your first agent today

Download AIDEN free and point it at your existing Claude Code or Codex setup. No credit card, running in minutes.

Download AIDEN free

Free to start · macOS 12+ · No credit card required

03

The New Tokenizer: Re-Measure Your Budgets

Sonnet 5 uses a new tokenizer, which sounds like a footnote and is not. The same source file tokenizes to a different count than it did under Sonnet 4.6, which means three things drift: cost projections built on 4.6-era token counts, context-fit heuristics ("this repo fits in N tokens"), and any per-story token budgets you enforce in CI or in an orchestrator.

04

The Rational Default for Routine Stories

The case for Sonnet 5 is not that it is the smartest Claude, it is that most stories in a sprint do not need the smartest Claude. Where it is the right pick:

Routine feature work

Well-specified stories, tests, and refactors with a clear plan. Fast enough for tight edit-test loops with human review.

Parallel agent fleets

When five or ten agents run at once, cost dominates model choice. At intro pricing, a whole fleet of Sonnets costs less than one Fable session.

Whole-repo context

1M tokens (default) holds a large codebase plus its specs in one session, at a price where you can afford to actually fill it.

Fast iteration with review

Quick loops where a human checks the diff anyway, paying flagship rates for work you will review line-by-line is waste.

The fleet case is where the economics get interesting. Running multiple Claude Code sessions in parallel multiplies every per-token price by the fleet size, which is why AIDEN boards commonly route routine story cards to Sonnet by default and reserve Opus for the cards that are flagged hard.

05

When Sonnet Isn't Enough

Sonnet 5 is noticeably behind Opus and Fable on hard multi-step reasoning, that is the honest trade for the price. The tells are consistent: stories that require holding a subtle invariant across many files, debugging where the cause is far from the symptom, and long autonomous runs that must recover from their own wrong turns. When a Sonnet session starts circling, re-attempting the same fix or contradicting its own earlier reasoning, that is the signal to move the story up a tier, not to re-prompt harder.

The next tier up is Opus 4.8 at $5 in / $25 out per MTok, Anthropic's recommended starting point for complex agentic coding, and above that Fable 5 at $10 in / $50 out per MTok for the genuinely hard work. The full decision rule across all three tiers is in Opus vs Sonnet vs Haiku.

FAQ

What is Claude Sonnet 5?
Claude Sonnet 5 is Anthropic's mid-tier workhorse model, released on June 30, 2026 as the replacement for Sonnet 4.6. It ships a 1M-token context window as standard, uses a new tokenizer, and costs $3 in / $15 out per MTok at list. The API identifier is claude-sonnet-5.
How much does Claude Sonnet 5 cost?
List price is $3 in / $15 out per MTok, but intro pricing of $2 in / $10 out per MTok runs through August 31, 2026. During the intro window it is the cheapest serious coding model available from either major vendor. For comparison, Claude Opus 4.8 costs $5 in / $25 out per MTok.
Does Claude Sonnet 5 have a 1M context window?
Yes, and that is the headline change: 1M tokens (default), at mid-tier pricing. Previous Claude generations reserved windows that large for the top tiers; Sonnet 5 makes a large-repo context session an everyday-priced operation.
What changed versus Sonnet 4.6?
Two things matter in practice. The 1M context window is now standard rather than an upsell, and Sonnet 5 uses a new tokenizer, so the same codebase tokenizes to different counts than under Sonnet 4.6. If you had token budgets, context-size heuristics, or cost projections tuned against 4.6, re-measure them, do not carry the old numbers forward.
Claude Sonnet 5 vs Opus 4.8: which should I use for coding?
Use Sonnet 5 for routine, well-specified stories and high-volume parallel agent fleets, it is fast, cheap, and holds a whole repo in context. Use Opus 4.8 ($5 in / $25 out per MTok) when the story needs hard multi-step reasoning: Sonnet 5 is noticeably behind Opus and Fable on that axis, and Anthropic recommends Opus as the starting point for complex agentic coding.

Keep reading

Route the right model to the right story.

AIDEN runs your Claude Code and Codex CLIs on one kanban board, BYOK and local-first, so Sonnet 5 carries the routine columns while Opus takes the hard stories. Free for one project.

macOS 12+ · Bring your own Claude Code or Codex · Your code stays local