← Back to all articles
·By RealMRR Team

Why $20k MRR Can Still Leave You Broke: The Broken Unit Economics of AI Wrappers

A line-by-line financial breakdown of an illustrative $20,000 MRR AI SaaS. Learn how token costs, vector storage, and payment fees eat into margins.

Unit EconomicsAI SaaSSaaS MarginsFinOpsPricing StrategyRealMRR

Every morning on social media, founders share the same screenshot:

A Stripe dashboard shows $20,412.00 MRR. The caption celebrates reaching $20k MRR in 90 days with Next.js and Claude. It omits the bank balance three weeks later, when model invoices, cloud alerts, database charges and merchant fees arrive.

In traditional software, $20,000 in Monthly Recurring Revenue (MRR) could mean financial independence. A Ruby on Rails or Laravel app ran on a small server, a managed PostgreSQL database and an email service. Hosting stayed a small share of revenue, and most of the $20,000 was profit before tax.

In 2026, founders build generative AI wrappers that reach $20,000 MRR quickly.

This guide provides a detailed financial breakdown of an AI wrapper earning $20,000 MRR. We trace every dollar from checkout to infrastructure and explain why gross revenue misleads founders.


1. Deterministic Code vs. Machine-as-a-Service

To understand why AI margins collapse, look at the difference between running code and running neural network inference.

Deterministic Software vs. AI Wrapper Cost Profile
┌────────────────────────────────────────────────────────┐
│ Traditional SaaS ($50 Plan)                            │
│ [===========================================] Profit: $48.50 (97%)
│ [=] COGS: $1.50 (3%)                                   │
└────────────────────────────────────────────────────────┘
┌────────────────────────────────────────────────────────┐
│ Modern AI Wrapper ($50 Plan)                           │
│ [====================] Profit: $21.25 (42.5%)          │
│ [==============================] COGS: $28.75 (57.5%)  │
└────────────────────────────────────────────────────────┘

Traditional Software: Fixed Marginal Costs (90%+ Margins)

Traditional software scaled because copying digital bits costs almost nothing.

When a customer clicks "Generate Monthly Invoice" in a typical invoicing app, the server runs a simple SQL query:

SELECT * FROM invoices WHERE workspace_id = $1 AND period = $2;

That query executes in 4 milliseconds on a shared CPU. Serving that customer costs approximately $0.00002. If that customer pays $50 per month, the gross margin is close to 100%. The cost of goods sold (COGS) stays near zero. Fixed hosting costs barely change whether you serve 10 customers or 1,000 customers.

AI Wrappers: Variable Compute Costs

An AI wrapper runs probabilistic inference rather than local code loops. When a user clicks "Analyze Contract" or "Generate Dossier", the backend must execute an expensive pipeline:

  1. Divide an uploaded PDF into 500-token segments.
  2. Generate embeddings for each segment with an embedding API.
  3. Run vector similarity searches to retrieve relevant context.
  4. Build a prompt containing 10,000 to 30,000 tokens of context.
  5. Send an API request to a Claude or OpenAI model.
  6. Stream back 1,500 tokens of model output.
  7. Parse the JSON response and retry if format errors occur.

Most steps are billed per token or per request. You do not own the infrastructure. You resell raw compute purchased from frontier AI labs.

Your marginal cost per user scales directly with usage. When customers use your product frequently, your profit drops.


2. A Financial Breakdown of a $20,000 MRR AI SaaS

Let us examine an illustrative AI software business. The numbers below are made up but kept consistent.

The example app extracts terms and answers questions across contracts for legal and real estate teams.

The Company Profile

  • Product: Contract analysis app (illustrative)
  • Pricing Plan: $50/month per workspace ("Unlimited Document Analysis")
  • Active Subscribers: 400 workspaces
  • Gross MRR on Stripe: $20,000.00
  • Team: Solo technical founder + one part-time support contractor

On paper, this business earns $240,000 per year. Let us trace where the money goes.


Layer 1: Top-Line Leakage (Fees, Taxes, and Refunds)

Gross subscription billing never matches the deposit in your business bank account.

Most founders use a Merchant of Record (MoR) like Paddle or Lemon Squeezy, or Stripe with a tax tool. Either way, part of each payment is tax that belongs to tax authorities.

Here is what leaves the account before any server handles a request (illustrative rates, not any provider's current fees):

Line Item Description & Calculation Monthly Amount
Gross Billed MRR 400 subscribers × $50.00 $20,000.00
Merchant of Record / Processing Fees 5% + $0.50 per transaction ($1,000 + $200) -$1,200.00
Cross-Border Card Surcharges 1.5% average on 45% non-US volume -$135.00
Currency Conversion Cut (FX) Billing European clients in EUR/GBP (2.0% markup) -$160.00
Sales Tax & Value Added Tax (VAT) Blended 8.5% tax remitted to tax authorities -$1,700.00
Refunds & Rolling Reserves 3.5% refund rate + 5% reserve holdback -$1,700.00
Net Cash Received in Bank Actual deposit $15,105.00

The $1,700 of sales tax and VAT was never the founder's money: it is owed to tax authorities. It reduces the cash you keep, but it is neither revenue nor an expense.

Before paying for servers or models, $4,895 (24.5%) disappears. The business actually collects $15,105.00.


Layer 2: Model Inference Costs (COGS)

Next, we calculate the frontier model inference bills.

The example app's 400 workspaces have the following usage pattern:

  • Active users per workspace: 1.2 (480 total active users)
  • Workdays per month: 22 days
  • Documents processed per user per day: 6 documents
  • Pages per document: 12 pages
  • Total pages processed monthly: 480 × 22 × 6 × 12 = 760,320 pages

The pipeline uses Claude 3.5 Sonnet for reasoning and extraction.

The Query Pipeline Cost
User Query
  │
  ├─ Context Assembly: System prompt + 8 document chunks (6,300 tokens)
  ├─ Claude 3.5 Sonnet Processing: $3.00 / million input tokens
  ├─ Output Generation: 450 tokens @ $15.00 / million output tokens
  └─ Prompt Caching Discount: 40% cache hit rate @ $0.30 / million tokens

The Query Calculations

Users ask an average of 18 questions per workday:

  • Monthly queries: 480 users × 22 days × 18 queries = 190,080 API calls.
  • Context size: 6,300 input tokens per query.
  • Output size: 450 output tokens per query.

Using standard Claude 3.5 Sonnet pricing (as of November 2026) ($3.00/M input, $15.00/M output):

  • Input tokens: 190,080 × 6,300 = 1,197,504,000 tokens (1,197.5M)
  • Input cost: 1,197.5 × $3.00 = $3,592.50
  • Output tokens: 190,080 × 450 = 85,536,000 tokens (85.5M)
  • Output cost: 85.5 × $15.00 = $1,282.50

Raw synthesis total: $4,875.00.

With prompt caching applied to 40% of input tokens at $0.30/M:

  • Cache savings: -$1,293.00
  • Net synthesis cost: $3,582.00.

Ingestion, Embeddings, and Vision

Before queries run, documents must be parsed:

  • Embeddings: OpenAI text-embedding-3-large at an assumed $0.13 per 1M tokens. 760,000 pages × 350 tokens = 266M tokens = $34.58.
  • Vision OCR Fallback: Scanned PDFs with tables require vision models. If 12% of pages need a small vision model (91,200 pages at an assumed $0.008/page): $729.60.

Total Monthly Model Invoice: $4,346.18.


Layer 3: Vector Databases, Storage, and Cloud Hosting

AI models require backend infrastructure to store embeddings, process queues, and render interfaces.

Provider Purpose Monthly Cost
Pinecone / Neon Postgres Storing 2.5M vectors and metadata $840.00
AWS ECS Fargate & SQS Worker containers parsing and chunking PDFs $720.00
AWS S3 Storage & Egress Document storage (1.4 TB) and bandwidth $290.00
Vercel Pro & Serverless Frontend hosting and edge middleware $260.00
Upstash Redis Session state, rate limits, and job queues $140.00
Total Cloud Infrastructure $2,250.00

Layer 4: Developer Tools and Operational Software

Running a modern SaaS requires internal tooling for telemetry, customer communication, and error monitoring.

Tool Purpose Monthly Cost
PostHog Product analytics and session recording $240.00
Sentry Error tracking and performance tracing $80.00
Resend Transactional emails and user alerts $95.00
Crisp Live chat support widget $180.00
GitHub Enterprise Code hosting, CI/CD runners $65.00
Cursor & Claude for Work Founder development tools $60.00
Cloudflare Pro DNS, DDoS mitigation, web application firewall $45.00
Total Tooling Subscriptions $765.00

Layer 5: Customer Support Operations

With 400 paying businesses processing complex legal documents, tickets arrive daily:

  • Edge cases cause truncated JSON responses.
  • Large 80MB scanned files stall worker queues.
  • Users question hallucinated lease clauses.

A solo developer cannot write code, fix bugs, and resolve 35 support tickets each day. The founder pays one part-time technical contractor for 20 hours per week at $25/hour to manage tickets.

  • Support Contractor Cost: $2,000.00/month.

3. Cash Flow Summary: What the Founder Actually Keeps

Here is the complete cash flow breakdown:

THE $20,000 MRR CASH FLOW WATERFALL
═════════════════════════════════════════════════════════════
Gross Billed Revenue                             $20,000.00
  ├─ Payment Processing Fees (5% + $0.50)        -$1,200.00
  ├─ FX & International Card Fees                  -$295.00
  ├─ Sales Tax & VAT Withheld                    -$1,700.00
  └─ Refunds & Reserve Holdbacks                 -$1,700.00
─────────────────────────────────────────────────────────────
Net Cash Deposited in Bank                       $15,105.00
─────────────────────────────────────────────────────────────
Direct Cost of Goods Sold (COGS):
  ├─ Anthropic Claude Inference                  -$3,582.00
  ├─ Embeddings & Vision OCR                       -$764.18
  ├─ Vector Database (Pinecone / Neon)             -$840.00
  ├─ AWS Compute & S3 Storage                    -$1,010.00
  └─ Vercel & Redis Edge Hosting                   -$400.00
─────────────────────────────────────────────────────────────
Gross Profit After Infrastructure                 $8,508.82
Gross Margin: 42.5% (compared to 90%+ in traditional SaaS)
─────────────────────────────────────────────────────────────
Operating Expenses (OpEx):
  ├─ Part-time Support Contractor                -$2,000.00
  ├─ Telemetry, Email & Chat (PostHog, Crisp)      -$515.00
  └─ Developer Tools & DNS (GitHub, Sentry)        -$250.00
─────────────────────────────────────────────────────────────
NET PRE-TAX OPERATING PROFIT                      $5,743.82
═════════════════════════════════════════════════════════════

After accounting for local corporate taxes and accounting software:

  • State corporate franchise tax and registered agent: -$150.00
  • Bookkeeping software: -$120.00
  • Final Take-Home Cash for the Founder: $5,473.82/month.

The Reality

  • Gross Revenue on Social Media: $20,000.00 / month ($240,000 / year)
  • Actual Cash Deposited to Founder: $5,473.82 / month ($65,685 / year)
  • Real Net Profit Margin: 27.4%

A founder taking home about $65,000 per year gets no employer health benefits and handles on-call alerts around the clock.

At 65 hours per week, their effective wage is $19.40 per hour.


4. The 4 Traps That Push Profit into Negative Territory

The numbers above assume regular usage. In practice, four common structural traps can turn small profits into monthly losses.

                         THE 4 PROFIT TRAPS
                                 │
     ┌──────────────────┬────────┴─────────┬──────────────────┐
     ▼                  ▼                  ▼                  ▼
┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│  5% Power    │ │    Prompt    │ │Unrecoverable │ │  Cold Cache  │
│  User Abyss  │ │  Inflation   │ │   Refunds    │ │ Re-indexing  │
│ Single user  │ │ Prompts grow │ │ Compute cost │ │ Model change │
│ burns $400+  │ │ from 250 to  │ │ already spent│ │ forces full  │
│ on $50 plan  │ │ 9,500 tokens │ │ cannot return│ │ re-embedding│
└──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘

Trap 1: The 5% Power User Abyss

Software usage follows a power-law distribution:

The numbers above assume average usage. Suppose instead that 20 of the 400 accounts are institutional power users.

These 20 power users run automated scripts through Zapier to process 1,000-page loan disclosures every morning.

The cost of one power user:

  • 400 pages analyzed daily
  • 250 deep queries per day with 20,000-token context windows
  • Daily token consumption: 5,000,000 tokens
  • Daily API cost: $18.50
  • Monthly infrastructure cost for this user: $407.00.

That user pays $50.00 per month.

The founder loses $357.00 every month on that single customer.

Twenty accounts like this lose $7,140 a month, more than the business's $5,743.82 monthly operating profit. On an unlimited plan, your most active users cause your largest losses.


Trap 2: Prompt Inflation and Context Creep

When building an MVP, prompts stay concise:

You are a contract analyst. Extract key terms from the text below.

Input tokens: 250.

As edge cases appear, the prompt grows. A German client requests statutory disclosures. You add custom instructions. Users report date formatting errors. You add five few-shot examples. The model hallucinates liability clauses. You add negative constraints.

Within six months, that prompt grows into a 9,500-token system prompt sent on every query.

Because token costs scale linearly with prompt size, the system prompt is 38 times larger on every query, while subscription pricing remains $50 per month. Margins shrink without any change to the headline product.


Trap 3: The Unrecoverable Refund

In traditional software, issuing a refund after 30 days costs nothing in compute.

In an AI product, that customer spent thirty days running Claude queries, generating $38.00 in raw token bills that Anthropic already billed to your card.

When that customer requests a refund or files a dispute:

  • You return the $50 subscription payment.
  • You pay a dispute fee to your payment provider (assume $15.00).
  • You still owe $38.00 for the consumed API tokens.
  • Total cash lost on that customer: -$53.00.

In AI software, churn destroys capital spent on non-refundable compute.


Trap 4: Re-Indexing and Embedding Upgrades

Document embeddings are rarely permanent.

When you upgrade your chunking algorithm or switch from text-embedding-ada-002 to text-embedding-3-large, you must re-index every stored document.

If your 400 customers have accumulated 2.5 million 500-token chunks, re-embedding them with text-embedding-3-large is about 1.25 billion tokens, or about $163 at $0.13 per million, plus the compute to re-chunk and re-index. The bill is small next to inference, but it lands all at once.


5. Illustrative Comparison: $20k AI Wrapper vs. $7.2k Boring CRUD

Here is a side-by-side comparison of two illustrative bootstrapped businesses:

Metric Founder A: AI Contract Tool Founder B: Truck Fleet Log
Headline Metric $20,000 MRR $7,200 MRR
Customer Base 400 paying $50/mo 90 paying $80/mo
Core Stack Next.js + Claude + Pinecone Go + SQLite + HTMX
Payment & Tax Fees -$4,895 -$240 (Stripe standard)
Model Inference -$4,346 $0.00 (No AI used)
Cloud Infrastructure -$2,250 -$38.00 (Hetzner VPS)
Tooling & Contractors -$2,765 -$24.00 (Postmark & Backups)
OPERATING PROFIT $5,744 $6,898
OPERATING MARGIN 28.7% 95.8%
Weekly Workload 65 hours / week 5 hours / week
Operational Stress Constant on-call duty Minimal

Review the differences:

  • Founder B earns $1,154 more in cash each month than Founder A.
  • Founder B faces no API price volatility on a small Linux server.
  • Founder B works 5 hours a week rather than 65.
  • On social media, Founder A appears more successful because discussions celebrate top-line revenue rather than net profit.

6. The Engineering Playbook: Restoring 75%+ Margins

You do not need to accept margins like these on AI products. Restoring profitability requires changing both your architecture and your pricing model.

Here are five practical strategies:


Strategy 1: Use Cascading Model Routing

Avoid sending every user query to flagship models like Claude 3.5 Sonnet.

In document analysis, many tasks are simple extraction, classification, or formatting. These requests do not require expensive reasoning engines.

Route requests dynamically in your backend:

export async function routeInference(prompt: string, contextLength: number) {
  // 1. Send simple extractions to a small, low-cost model
  if (isSimpleExtraction(prompt) && contextLength < 4000) {
    return await anthropic.messages.create({
      model: "claude-3-5-haiku-20241022", // $0.80 / $4.00 per M (as of November 2026)
      max_tokens: 1024,
      messages: [{ role: "user", content: prompt }],
    });
  }

  // 2. Send multi-document legal reasoning to the larger model
  return await anthropic.messages.create({
    model: "claude-3-5-sonnet-20241022", // $3.00 / $15.00 per M (as of November 2026)
    max_tokens: 4096,
    messages: [{ role: "user", content: prompt }],
  });
}

Routing routine queries to a small model such as Claude 3.5 Haiku cuts the cost of those queries sharply.


Strategy 2: Replace Unlimited Pricing with Base Credits

Unlimited pricing invites power users to drain your margins.

Use a Base + Credit Drawdown pricing structure:

  • Base Plan: $49/month includes 500 Analysis Credits, sized so most customers never run out.
  • Credit Top-Ups: When credits run out, accounts automatically purchase a 500-Credit Pack for $25.00. This costs you $6.00 in compute, maintaining a 76% profit margin.

Casual users receive predictable monthly pricing, while power users become profitable rather than your largest loss.


Strategy 3: Deploy Semantic Caching

Users often submit identical or semantically similar questions across documents.

Add a semantic caching layer with Redis or Upstash:

  1. Hash the document ID and query embedding.
  2. If cosine similarity between the current query and a previous query exceeds 0.96, return the cached completion from Redis.
  3. Compute cost: a Redis lookup costs less than $0.0001, while one Claude 3.5 Sonnet query costs about $0.026 (6,300 input tokens at $3.00/M plus 450 output tokens at $15.00/M).

Every cache hit eliminates an upstream LLM invocation entirely.


Strategy 4: Add Per-Workspace Rate Ceilings

Prevent user scripts and loops from creating runaway bills. Cap accounts at a set amount of compute per hour, such as $2.00. Return an HTTP 429 Too Many Requests status if they exceed it. This prevents unexpected weekend spikes from broken automations.


Strategy 5: Track Real-Time Cost Telemetry

You cannot fix costs that you do not measure.

Looking at your Stripe payout and Anthropic bill at month-end does not show which customers or features are profitable.

Tag every API call with metadata:

const message = await anthropic.messages.create({
  model: "claude-3-5-sonnet-20241022",
  max_tokens: 1024,
  // Anthropic accepts only user_id here: use an opaque ID, never a name or email
  metadata: { user_id: user.id },
  messages: [{ role: "user", content: prompt }],
});

// Log the feature and workspace with the usage in your own database
await logUsage({
  workspaceId: workspace.id,
  feature: "contract_analysis",
  usage: message.usage,
});

Store these tags with each request's cost in your own database so you can see margin by account.


7. The Valuation Impact: Why Acquirers Look Past MRR

If you plan to sell your SaaS on platforms like Acquire.com or Flippa:

  • Buyers do not pay revenue multiples for AI wrappers.
  • Buyers calculate Seller's Discretionary Earnings (SDE) or Adjusted EBITDA.
  • If your business brings in $240,000 a year but the owner keeps about $65,000, buyers price it on the $65,000, not on the $240,000.
  • During due diligence, buyers inspect API invoices, model dependencies, and churn rates. Unverified expenses lead to price cuts or cancelled deals.

A software business is worth only the cash it reliably produces for its owner.


Frequently Asked Questions

What is an acceptable gross margin for an AI SaaS?

Higher is better, and an AI SaaS will usually sit below a traditional SaaS because every request costs money. Track your gross margin month by month: if it falls as usage grows, your pricing needs to change.

How do you calculate Cost of Goods Sold (COGS) for an AI application?

COGS includes all variable expenses required to deliver service to an active user:

  1. Frontier model token invoices (OpenAI, Anthropic, OpenRouter)
  2. Vector database storage and read units (Pinecone, Qdrant, Neon)
  3. Direct compute processing document payloads (AWS Fargate, GPU workers)
  4. Payment gateway and merchant of record fees (Stripe, Paddle)

Internal developer tooling like GitHub seats, Cursor subscriptions, and laptops are operating expenses (OpEx), not COGS.

Sales tax and VAT you collect are owed to tax authorities: they are neither revenue nor COGS.

Why do marketplaces verify revenue instead of profit?

Revenue sits in one place, the payment provider, so it can be read from one API. Profit needs costs from many providers (AWS, OpenAI, Anthropic, Vercel and others), which is harder to connect, so revenue is the figure that is easiest to check.


Track Your Real Margins Automatically

Stop relying on gross revenue metrics alone.

RealMRR tracks your true financial health:

  • Connect your payment providers (Stripe, Paddle, Lemon Squeezy, Polar).
  • Connect your cloud and AI providers (OpenAI, Anthropic, Vercel).
  • RealMRR maps costs to each product and shows revenue, costs and profit for each one. It syncs every 6 hours on the Free plan and every hour on Plus and Scale.

Know your real margins and protect your cash flow.

Connect your APIs on RealMRR

Built for indie founders

Know your real profit today.

Connect your payment gateway and cloud bills to get verified profit rankings, automated bookkeeping, and zero guesswork.