LLM Token

RAG Chunking & Embedding Cost Calculator

Estimate how chunk size and overlap change your vector index, initial embedding bill, and recurring costs.

Estimate assumptions

Enter total characters or estimate them from pages. This models one continuous corpus and a 30-day month.

Corpus setup

Rates and index assumptions

Example rates in USD. Enter your provider’s rates and your index’s expected overhead and RAM residency.

Example loaded

Index and cost preview

Plan your vector database budget

Use your chunk count, index size, and monthly query workload to compare providers in BudgetHub.

Explore BudgetHub

Method & FAQ

How is the chunk count calculated?

Estimated tokens equal total characters divided by characters per token, rounded up. Overlap tokens are rounded down. Chunk count is one plus the remaining tokens divided by the chunk size minus overlap, rounded up. A corpus with zero tokens produces zero chunks. Splitting separately at document boundaries can change the count.

How are vector RAM and storage estimated?

Disk bytes equal chunks × dimensions × 4 bytes per float32 value × (1 + index overhead). RAM is disk size times the resident share. GB uses one billion bytes. Actual graph, metadata, replicas, compression, and RAM usage depend on index configuration.

Which costs make up the estimate?

The initial embedding bill uses the full token count after overlap. Monthly embedding costs cover the re-indexed share of that count and the query volume times tokens per query. The monthly total adds vector disk storage. Database compute, search charges, replicas, and taxes are outside this estimate.