# Claude Code context window: size and cost

Source: https://quotaplug.com/guides/claude-code-context-window
Updated: 2026-12-02

> The Claude Code context window is how much conversation the model can see at once. As of December 2026, Sonnet 5 and later, Opus 4.7 and later, Haiku 5.5 and Fable models have 1M tokens by default, while older models use 200K. Bigger windows cost more per step when they fill, because Claude Code re-sends everything inside the window on each request.

A bigger context window sounds like pure upside. In Claude Code it is also a bigger bill, because everything inside the window is re-read on every step.

## Claude Code context window sizes

Per Anthropic's model configuration docs (December 2026):

- **1M by default:** Fable models, Sonnet 5 and later, Haiku 5.5 and Opus 4.7 and later.

- **1M only through the `[1m]` variant:** Opus 4.6 and Sonnet 4.6 (`opus[1m]`, `sonnet[1m]`). Availability depends on plan, and some require usage credits.

- **200K otherwise.**

On the API, the 1M window uses standard pricing with no premium above 200K, except Haiku 5.5, which costs more per token for prompts longer than 100K.

The window is the ceiling. How much of it a conversation actually uses is what decides your cost. See [auto compact](https://quotaplug.com/guides/claude-code-auto-compact) for how Claude Code shrinks conversations on its own.

## What fills the window

Run `/context` to see it. The usual suspects:

- The system prompt and built-in tool definitions (fixed).

- Your project and personal instruction files, loaded every session.

- Names and descriptions of connected tools and agents.

- Your prompts and Claude's replies, including thinking.

- Every file Claude read and every tool result, such as test and build output.

The last two grow without limit. A single file read or log can add tens of thousands of tokens, and it stays in the window for the rest of the session.

## Why a bigger window costs more per step

Claude Code sends the full conversation with every request. With prompt caching it is re-read at the cache rate, 10% of the input price. At Opus 5.5 list price ($4 per million input), that is $0.40 per million cached tokens. The bill per step scales directly with how full the window is: a conversation carrying several times more history pays several times more to re-read it, even for a tiny question.

A task of 100 steps in a full-window conversation re-reads far more than the same task after a fresh start. In the founder's heaviest November 2026 week, 62% of spend was re-reading oversized conversations, and the biggest had grown to nearly a million tokens. Cache misses make it worse: if you pause longer than the cache lifetime, the next message reprocesses the full context.

That is why Anthropic's own cost guidance singles out long sessions as a driver of usage.

## Is a 1M window worth using?

A big window is a capability, not a target. It is valuable when the task truly needs a lot in view: a large refactor across many files, reading a long spec alongside the code, or debugging something that spans many logs. It is wasteful when the window fills with stale output from tasks that are long finished.

The practical stance: let the window be large, and keep the *used* part earning its place. Anthropic reached a similar conclusion. Its own default for 1M models is tuned "to lower the cost of long sessions", and you can opt back into the full window if your work needs it.

Quota audit, no account: `npx quotaplug audit` shows where your Claude plan goes. [How the audit works](https://quotaplug.com/audit).

## What this means for your plan

Your Pro, Max or Ultra plan is not billed in tokens or dollars, but the limit drains on the same drivers: how large the conversation is, how many steps it takes, which model runs and how much runs in the background. The window size you see in the docs is the ceiling. What decides whether a week lasts is how much of it your sessions drag along on every step.

Most people never see this number while they work. You can check it with `/context` in one conversation, or see the whole picture across your last 7 days with the audit below.

## Why QuotaPlug handles this for you

You will check `/context` for a week, then stop. The biggest bloat arrives mid-task, as a log or a file read that no setting anticipated.

**QuotaPlug is a usage optimizer for Claude Code that makes a Claude Pro, Max or Ultra plan last 2 to 4 times longer. Same model, same effort level, same quality, and no changes to how you prompt. It installs in one command and runs locally.**

It watches for context bloat and handles it automatically, in the background. Check how big your conversations got last week:

```bash
npx quotaplug audit
```

The audit needs no account and runs locally. Plans are on the [pricing page](https://quotaplug.com/pricing).

## Frequently asked questions

### How big is the Claude Code context window?

As of December 2026, 1M tokens by default on Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later. Opus 4.6 and Sonnet 4.6 reach 1M through the `[1m]` variants, otherwise 200K.

### Is the 1M context window included in a subscription?

It depends on the model and plan. For models with a native 1M window it is part of the model. For Opus 4.6 and Sonnet 4.6, some plans need usage credits for 1M. Check the model configuration docs for your plan.

### How do I check how full my context window is?

Run `/context` in Claude Code. For a 7-day view across all your conversations, run `npx quotaplug audit`.

### Does a bigger context window make Claude Code cost more?

Per step, yes, if you fill it. Every request re-sends the whole conversation, so a fuller window costs proportionally more at the same model and cache rate.

### Do I need to manage the window myself with QuotaPlug?

No. QuotaPlug handles it automatically, with the same model, effort level and quality.

## Keep reading

[Claude Code auto compact: what it does and why timing costs youSettings and setup](https://quotaplug.com/guides/claude-code-auto-compact)[Claude Code statusline: see context and usage liveSettings and setup](https://quotaplug.com/guides/claude-code-statusline)[How to reduce Claude Code token usageCost and savings](https://quotaplug.com/guides/reduce-claude-code-token-usage)[CLAUDE.md and token cost: what it is and what it costs youSettings and setup](https://quotaplug.com/guides/claude-md-best-practices)[Why is Claude Code so expensive?Cost and savings](https://quotaplug.com/guides/why-is-claude-code-so-expensive)
