Topic 1 of 5 · 4 min read
Why multi-agent runs multiply tokens
Goal: Estimate a multi-agent run's token use from the number of agents, context per agent and turns, and compare it with one agent.
A multi-agent run costs more than the sum of its parts, because every agent pays for its own context on every turn, and the lead pays again to read what the workers send back. Anthropic reported that agents use about 4x the tokens of a chat, and multi-agent systems about 15x. Treat that as a warning, not a forecast: your multiplier depends on your design.
Check yourself · 1 of 3
A worker agent runs 10 turns, and on turn 2 it fetches a 20k-token web page. Roughly how often is that page billed as input?
Why it matters
Most model APIs bill input and output tokens, and an agent loop resends its whole conversation on each turn. Cost grows with turns times context size, not with the number of questions asked. Adding agents multiplies that product.
Where the tokens go
- Fixed prefix per agent. Each worker gets its own system prompt, tool definitions and brief. Eight workers means eight copies.
- Re-reading on every turn. Turn 10 of a worker resends turns 1 to 9. A worker that runs 12 turns reads its early context 12 times.
- Tool output. A web page, a file or a search result lands in context once and is then re-read on every later turn.
- Reports back to the lead. The lead reads every worker report, and the lead's context grows with each one.
- Retries and duplicated work. Two workers that search the same sources pay twice for the same pages.
A back-of-envelope estimate
Per agent: (prefix + average context) x turns. Add the lead's reads. Example: one agent with 6k prefix and a context that grows to 30k over 10 turns reads roughly 10 x (6k + 15k average) = 210k input tokens. Five workers doing a similar job read about 1.05M, plus the lead planning and reading five 3k reports. The run is five times the input of the single agent before any extra coordination turns.
Before and after
Weak estimate: "Each worker is a small task, so the run costs about the same as one agent." This ignores that each worker starts with its own prefix and loops on its own context.
Better: write the formula, fill in agents, prefix, average context, turns, and compare with the single-agent run on the same task. Then decide if the extra tokens buy something, such as parallel speed or a cleaner context for the lead.
What goes wrong
- Counting tasks, not turns. Ten short workers with 15 turns each cost far more than ten with 3.
- Ignoring tool output. One 20k-token page fetched on turn 2 is billed again on every turn after it.
- Estimating from one lucky run. Measure several runs. Retries and loops make the tail much more expensive than the median.
- Forgetting output tokens. Output is priced higher per token than input, and verbose workers write a lot of it.
Examples
Single agent versus three workers
| Single agent | Lead + 3 workers | |
|---|---|---|
| Prefix per agent | 6k | 6k x 4 agents |
| Turns | 12 | 4 + 3 x 8 |
| Avg context | 18k | 12k per worker, 10k lead |
| Input read | about 290k | about 570k |
Same task, about double the input tokens. The design is only worth it if the three workers run in parallel and the answer is better or faster.
One big fetch
A worker fetches a 25k-token page on turn 2 and then runs 9 more turns. That page is read 9 more times, about 225k input tokens for one fetch. Truncating the page to the 2k tokens the worker needs cuts that to about 18k.
Key points
- Cost scales with agents times turns times context, so adding agents multiplies the bill instead of adding to it.
- Every worker pays for its own system prompt, tool definitions and brief, and the lead pays again to read each report.
- Tool output stays in context and is re-read on every later turn, so one large page is billed many times.
- Anthropic's data put agents at about 4x and multi-agent systems at about 15x the tokens of a chat; measure your own multiplier.
- Estimate with a formula before you build, then compare with measured runs, including the expensive tail.
Common mistakes
- Estimating cost from the number of subtasks instead of agents times turns times context.
- Treating the 15x figure as a constant instead of measuring your own runs.
- Ignoring that tool output is re-read on every later turn.
- Budgeting for the median run when retries make the tail several times larger.
Check yourself · 2 of 3
Which cost is paid once per agent rather than once per run?
Check yourself · 3 of 3
A single agent used 200k input tokens on a task. You plan one lead and four workers, each similar in size to the single agent. What is the sensible first estimate of input?
Practice items, not counted towards your mastery.
Start here
- How we built our multi-agent research system (Anthropic) (opens in a new tab)ArticleFree
Reports that agents use about 4x and multi-agent systems about 15x the tokens of chat, and that value must justify it.
- Prompt caching (Claude docs) (opens in a new tab)DocsFree
How cache writes and reads are priced, and how a shared prefix is reused across calls.
- Batch API (OpenAI) (opens in a new tab)DocsFree
Asynchronous batch jobs for work that can wait, at a lower price than live calls.
More for this topic
- Manage costs effectively (Claude Code docs) (opens in a new tab)DocsFree
Notes on why agent teams use more tokens, and how to track them.