RAG Chunk Count Calculator

Number of chunks for a corpus at a chunk size and overlap.

Runs in your browser — nothing is uploaded
Corpus size in

—

How to use RAG Chunk Count 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

Chunks = ⌈(corpus tokens − overlap) ÷ (chunk size − overlap)⌉