RAG Vector Database Cost Estimator

Pricing & API rates checked November 2026 · Calculated by Latest & Trending Lab

Direct answer

Copy-paste workflow prompt

Chunking strategy prompt
I am building a question-answering knowledge base from these documents: {describe document types and total size}. Recommend a chunking strategy: chunk size in tokens, overlap, how to split by headings or sections, and what metadata to store with each chunk. Estimate how many chunks I will end up with and how many of them a typical question should retrieve. Explain the trade-off between larger and smaller chunks for answer quality and cost.

How the numbers are calculated

The default scenario is 50,000 stored chunks and 50,000 queries a month. The calculator assumes each 1,536-dimension chunk takes about 6 KB, so 50,000 chunks are about 0.3 GB, which at Pinecone's $0.33 per GB is about $0.10. It assumes 10 read units per query, so 50,000 queries use 500,000 read units, which at $16 per million is $8, for about $8.10 in usage. Standard bills the larger of usage and its $50 monthly minimum, so the result is $50. At 1 million chunks and 1 million queries it is $1.98 plus $160, or $161.98. Supabase Pro is $25 a month and includes 8 GB of database, about 1.33 million chunks, plus a $10 compute credit, with extra disk at $0.125 per GB and no per-query charge, assuming the included small compute is enough. The self-hosted option is a Hostinger KVM 2 VPS at $14.99, with your maintenance time not counted. The 6 KB per chunk and 10 read units per query are assumptions, and Pinecone read units scale with index size, so real bills differ. We have not measured recall, latency or throughput on any of them. Index a 10,000-chunk sample on each and read the usage dashboards. Prices and plan limits change, so confirm them on each vendor's page.

Prices checked October 2026. Read units per query depend on index size.
Tool / TierBase Monthly PriceIncluded Credits / RateHidden Overage Trap
Pinecone Starter / BuilderFree / $20 per monthStarter: 2 GB, 2M write and 1M read units; Builder: 10 GB, 5M write and 2M read unitsStarter is limited to one AWS region and 5 indexes; Builder has fixed unit caps.
Pinecone Standard$50 per month minimum, then pay as you go$0.33 per GB storage; reads $16 to $18 and writes $4 to $4.50 per million unitsRead units rise with index size; reported bills run 2.5 to 4 times above estimates.
Supabase Pro with pgvector$25 per month8 GB database, $10 compute credit; extra disk $0.125 per GB; no per-query chargeLarger indexes need bigger compute, which starts at $10 for Micro; free plan pauses after a week idle.
Hostinger KVM 2 VPS (self-hosted pgvector)$8.99 per month intro; $14.99 at renewal2 vCPU, 8 GB RAM, 100 GB NVMeBilled upfront for the term; backups, updates and security are yours.

FAQ

Frequently asked questions

What is a chunk?

A chunk is a piece of a document, such as a few paragraphs, that is converted into a vector and stored so it can be searched. Chunk size affects both answer quality and cost.

What drives the cost of a RAG system?

For most workloads the answer model dominates, because every query pays for the retrieved context as input tokens plus the generated answer. Vector storage and queries are usually the smaller line item, unless query volume is very high.

Do I need a dedicated vector database?

Not always. Postgres with a vector extension can handle small and medium knowledge bases at a low fixed cost. Move to a dedicated service when your scale, latency needs or operations capacity justify the extra bill.

What happens if I change my chunk size?

You usually need to re-embed and re-index your documents, which costs embedding fees and write units. Decide your chunking strategy on a sample before indexing everything.

How can I reduce the cost per query?

Retrieve fewer and more relevant chunks, cap context length, use a cheaper model for simple questions, and turn on prompt caching for repeated instructions. Measure answer quality each time you make a change.