Chunk Size Calculator

Largest chunk size that fits your retrieval budget and top-k.

Runs in your browser — nothing is uploaded
Keep this well below the window — retrieval quality drops with very long contexts.

—

How to use Chunk Size Calculator

  1. Enter your values — the unit for each field is shown next to it.
  2. The result updates instantly as you type.
  3. Copy the results, or change inputs to compare scenarios.

Formula & assumptions

Chunk size = budget ÷ top-k − formatting overhead

  • Model prices as of 2026-09-30 from the Anthropic, OpenAI and Google pricing pages (standard rates, short prompts). Prices change — check the provider before budgeting.