RAG cost calculator: what your RAG system will cost to run

Enter your question volume, how much context you send and the model you plan to use. The calculator shows the monthly bill line by line, using current list prices you can change.

Short answer

The language model is almost always the biggest line in a RAG system's running cost; embeddings and vector storage are small. For example, 30,000 questions a month, each sending about 6,000 tokens of retrieved context and getting a 500-token answer, costs about $26 a month on a small model, $510 on a mid-tier model and $1,020 on a frontier model, at November 2026 list prices. Embedding 50,000 pages once costs about $0.50 with OpenAI's small embedding model. Vector storage runs from $0 with pgvector in an existing Postgres database to a $50 monthly minimum on Pinecone Standard. Self-hosting an open model swaps token fees for a fixed GPU bill of about $430 a month for an always-on L4 or about $2,110 for an H100 at on-demand rates.

Biggest cost line
The language model
Embedding 50,000 pages
About $0.50
Vector database
$0–$50+ a month
Always-on L4 GPU
About $430 a month
On this page
  1. Calculator
  2. How to use the calculator
  3. What drives the monthly bill
  4. How to lower the running cost
  5. When self-hosting makes sense
  6. Running cost vs build cost
  7. Common questions

Calculator

Usage
30 for every day, about 22 for working days
Each question
About 750 words is 1,000 tokens
Model
Documents
Infrastructure
Your estimate; small apps often run on $20–$100

Estimated monthly running cost

$560 a month

Questions a month
30,000
Cost per 1,000 questions
$18.67
Tokens sent per question
6,000
First full indexing (one-off)
$0.50
  • Model: input tokens$360
  • Model: output tokens$150
  • Embeddings (updates and questions)$0.08
  • Vector database$0
  • App hosting and monitoring$50.00

About 180 million input and 15 million output tokens a month. Prompt caching and batch processing can lower the model line. List prices checked November 2026; check the provider before you budget.

How to use the calculator

  1. Usage. Estimate questions per day from the number of people who will use it and how often. Internal assistants often see a few questions per user per day.
  2. Each question. The input is the retrieved passages plus your instructions, any chat history and the question itself. Five passages of about 1,000 tokens each is a common starting point.
  3. Model. Pick a price tier, enter your provider's exact prices, or choose a self-hosted GPU.
  4. Documents. Pages in the knowledge base and how much of it changes each month. This drives embedding cost, which is usually tiny.
  5. Infrastructure. Your vector database and app hosting. If you already run Postgres, pgvector adds no licence fee.

The defaults match the worked example in our RAG development cost guide, so you can compare the two.

What drives the monthly bill

The cost lines of a running RAG system
LineWhat drives itTypical size
Model input tokensQuestions × (passages × passage size + instructions)Usually the largest line
Model output tokensQuestions × answer length; output costs several times more per token than inputSecond largest
EmbeddingsPages re-indexed each month, plus each question being embedded for searchCents to a few dollars
Vector databaseIndex size and traffic$0 with pgvector; $20–$50+ on hosted plans
Hosting and monitoringThe app server, logs and tracingOften $20–$100 for small apps
Self-hosted GPU (instead of token fees)GPU type and how many must stay onAbout $430–$2,110 a month per always-on GPU
Model tiers in the calculator: small $0.10 / $0.50, mid-tier $2 / $10 and frontier $4 / $20 per million input / output tokens, matching current OpenAI, Anthropic and Google list prices in each class. GPU prices are Runpod on-demand rates (L4 $0.59/hr, H100 from $2.89/hr) for 730 hours a month.

The single biggest lever is how much context you send with each question. Ten loose passages send twice the passage tokens of five sharp ones, and the sharp ones usually give better answers. That's why retrieval quality is a cost decision as well as an accuracy one.

How to lower the running cost

  • Retrieve fewer, better passages. Hybrid search with re-ranking finds the right three passages instead of sending fifteen.
  • Route by difficulty. Let a small model answer routine questions and send only hard ones to a larger model.
  • Cache repeated context. Providers discount input that repeats across requests, such as long instructions. Batch processing is cheaper again for work that doesn't need an instant answer.
  • Keep answers short. Output tokens cost more than input, so a tight answer format saves money and reads better.
  • Set limits. Cap tokens per request and requests per user so one runaway loop can't produce a surprise bill.

When self-hosting makes sense

A self-hosted open-weight model has a fixed monthly cost whether you ask it ten questions or ten thousand. It pays off on cost only when volume is high and steady enough that the same traffic on an API would cost more than the GPUs. The more common reason is data: some organisations can't send documents to a third-party API at all.

For Tristate Low Voltage Supply, a US distributor, the shopping assistant we built runs on open-weight models on the client's own servers, so customer data never leaves their environment. If that's your requirement, see private LLM deployment.

Check throughput, not just price

One GPU can only serve so many answers at once. Before budgeting for one card, test the model you plan to use at your expected peak traffic. Busy systems need more GPUs, and a model good enough for your accuracy bar may need a larger card than an L4.

Running cost vs build cost

This calculator covers running costs only. Building a production RAG system costs $6,000–$15,000 with us and takes 4–8 weeks: document parsing, hybrid search, answers that cite their sources, and an evaluation set. Enterprise RAG with several sources and per-user permissions costs $15,000–$35,000 over 8–14 weeks. Our RAG development cost guide breaks this down, and LLM and RAG development explains how we build.

Want a fixed quote for your project?

Tell us what you are building. We reply within one working day, and a discovery sprint turns your idea into a firm price and plan.

Common questions

How much does it cost to run a RAG system per month?

For typical business workloads, roughly $100 to $2,000 a month. The language model is the biggest line: 30,000 questions a month with about 6,000 tokens of context each costs about $26 on a small model, $510 on a mid-tier model and $1,020 on a frontier model at November 2026 list prices.

How much do embeddings cost?

Very little. OpenAI lists $0.02 per million tokens for text-embedding-3-small and $0.13 for text-embedding-3-large, so embedding 50,000 pages of about 500 tokens each costs about $0.50 or $3.25.

Do I need a paid vector database?

Not always. If you already run Postgres, pgvector adds vector search without a licence fee. Hosted options such as Pinecone have a $20 flat Builder plan and a $50 monthly minimum on Standard, and they suit large indexes or teams that don't want to run a database.

Is self-hosting a model cheaper than using an API?

Only at high, steady volume. An always-on L4 GPU costs about $430 a month and an H100 about $2,110 at on-demand rates, whether it is busy or idle. Most teams self-host because their data can't leave their servers, not to save money.

How accurate is this calculator?

It's a planning estimate. Real bills depend on how long your passages and answers turn out to be, chat history, retries and provider discounts. Prices change often, so check your provider's pricing page before you budget.

What does it cost to build a RAG system?

With us, a production RAG system costs $6,000–$15,000 and takes 4–8 weeks. Enterprise RAG with several sources and per-user permissions costs $15,000–$35,000 over 8–14 weeks.

Sources

  1. OpenAI API pricing
  2. OpenAI text-embedding-3-small model page
  3. Claude API pricing (Anthropic)
  4. Gemini API pricing summary (Morph, checked against Google, October 2026)
  5. Pinecone pricing
  6. Runpod GPU cloud pricing

Have something to build?

Tell us where things stand and what you need. A short message is enough to start.