RAG Embeddings & Re-Indexing Cost Calculator

Forecast initial corpus embedding cost, chunk overlap overhead, monthly document churn re-indexing, and live query embedding spend.

Initial Corpus Input Mode

Extracted plain text (~250,000 tokens per MB)

15%
15%
12-Month Total Embedding Cost1536d Vectors
$0.001.18x overlap factor
Initial Ingestion Cost
$0.00
0 tokens
Monthly Re-Index Cost
$0.00
0 tokens/mo
Resulting Vector Count
0
512 tok/chunk
12-Mo Churn Spend
$0.00
$0.0200 / 1M tok
12-Month Spend Split (Initial vs Re-Indexing)Initial / Churn
Initial Ingestion12-Month Churn Re-Index

Transparent Formula & Methodology

Dataset: 2026-11-27

Chunk overlap duplicates tokens across consecutive chunks by a factor of 1 / (1 - overlapRatio). Both initial corpus ingestion and monthly churn re-indexing are billed on this effective token volume.

RawTokens = CorpusMode === 'mb' ? CorpusMB * 250000 : DocCount * AvgTokensPerDoc
OverlapMultiplier = 1 / (1 - OverlapPct / 100)
InitialIndexedTokens = RawTokens * OverlapMultiplier
VectorCount = ceil(InitialIndexedTokens / ChunkSizeTokens)
InitialCost = (InitialIndexedTokens / 1,000,000) * CostPer1MTokens
MonthlyReindexTokens = InitialIndexedTokens * (MonthlyChurnPct / 100)
TwelveMonthTotalCost = InitialCost + 12 * ((MonthlyReindexTokens / 1,000,000) * CostPer1MTokens)

Frequently Asked Questions

Why does chunk overlap inflate RAG embedding token counts?

Overlap duplicates boundary tokens across adjacent chunks so context is preserved at split points. A 15% overlap multiplies effective indexed tokens by 1 / (1 - 0.15) = 1.176x, increasing both your embedding bill and total vector count.

How many tokens are in 1 MB of plain text for RAG indexing?

English prose averages roughly 4 UTF-8 bytes per token, meaning 1 MB (1,000,000 bytes) of extracted text equals approximately 250,000 tokens. Code, JSON, and dense tables can run slightly higher at 280,000–330,000 tokens per MB.

What is a typical monthly document churn rate for enterprise knowledge bases?

Most active SaaS knowledge bases, support docs, and Notion/Confluence workspaces see 10% to 25% monthly document churn. Re-embedding only changed documents via content hashing avoids paying 100% full-corpus re-indexing fees every month.

How does chunk size affect my vector database RAM footprint?

Smaller chunks (256–512 tokens) produce 2x to 4x more vectors for the same corpus than 1024-token chunks. More vectors directly increase HNSW graph and metadata RAM requirements even though the embedding API token cost stays identical.