Before you ship an app, you should be able to answer: "what does each user cost me, what do they pay me, and how many users do I need to break even?" Most indie developers can't. This post is the framework that lets you.
The cost categories every app has
- Development cost — your time (or the people you pay), the tools you use, the AI subscriptions, the design work. This is mostly fixed up front.
- Variable per-user costs — what each active user costs you in: backend compute, database storage, AI API calls, third-party API calls (Stripe, push, SMS), bandwidth, support time.
- Fixed monthly costs — backend hosting floor, monitoring tools, your own AI subscriptions, domain, certificate, etc.
- Platform / payment fees — Apple's 15-30% App Store cut, Stripe's 2.9% + 30c per charge, etc.
- Support / customer success — the time you spend on user issues. Frequently underestimated.
- Marketing / acquisition — if you have any.
Revenue side
Revenue comes from one or more of:
- Up-front purchase — one-time $0.99-$9.99 typical for indie iOS.
- Subscription — monthly/annual recurring. The dominant model in 2026 for AI apps.
- In-app purchase / consumable — users buy credits, items, AI tokens.
- Freemium with paid unlock — what your RDR2 Companion does at $2.99 unlock.
- Ads — very low per-user revenue; needs huge volume.
- Enterprise / B2B contracts — the highest-revenue per-customer model, but very different sales motion.
AI API costs in detail
For AI-powered apps, this is the single biggest variable cost in 2026. Rough numbers, per million tokens (input + output combined for simplicity):
| Model | Input $/M tok | Output $/M tok |
|---|---|---|
| Claude Haiku 4.5 | ~$0.80 | ~$4 |
| Claude Sonnet 4.6 | ~$3 | ~$15 |
| Claude Opus 4.7 | ~$15 | ~$75 |
| GPT-5 | ~$3 | ~$15 |
| GPT-5 mini | ~$0.40 | ~$1.60 |
| Gemini 2.5 Pro | ~$2.50 | ~$10 |
| Gemini 2.5 Flash | ~$0.30 | ~$2.50 |
Prices fluctuate. Check provider pages for current rates. Prompt caching can reduce input costs 80-90% on repeat content.
How to estimate AI cost per user:
- Estimate AI calls per active session (e.g., 5 questions per session).
- Estimate average input + output tokens per call (e.g., 2,000 input + 500 output for a typical chat turn).
- Multiply: 5 calls × 2,500 tokens = 12,500 tokens per session.
- Estimate sessions per user per month (e.g., 4 active sessions = 50,000 tokens/month per user).
- At Sonnet pricing (mostly input-heavy): ~50,000 tokens × ~$5 / 1M tokens = ~$0.25 per user per month.
For your RDR2 Companion: at 4 free questions per user before paywall + occasional paid usage afterward, the AI cost per user is roughly $0.05-$0.50/month depending on engagement — well below the $2.99 unlock price, leaving room for everything else.
Backend costs at small / medium / large scale
- 1-1,000 active users: Railway $5-30/mo. Fixed cost.
- 1,000-10,000 active users: Railway $30-150/mo or equivalent.
- 10,000-100,000 active users: $150-1,000/mo. Optimization starts mattering.
- 100,000+ users: $1,000-$10,000/mo and you're likely on a hyperscaler with serious database tier.
Backend cost per user is non-linear — mostly fixed at small scale, mostly variable at large scale.
App-store and payment cuts
- Apple App Store — 30% standard, 15% for Small Business Program (under $1M annual revenue) and second-year subscriptions.
- Google Play — 30% standard, 15% for subscriptions and Play Pass partners.
- Microsoft Store — 12-15% on most categories.
- Meta Horizon Store — 30% for native VR apps; 15% for in-headset purchases inside web-based experiences.
- Nintendo eShop — ~30% (specific terms NDA'd).
- Setapp (macOS bundle) — revenue share based on usage; ~70% to developers on average.
- Stripe / direct web payments — 2.9% + 30c per transaction. No platform cut.
- Lemon Squeezy / Paddle — merchant of record, ~5% all-in for compliance handling.
For indie iOS developers under $1M annual revenue, Apple's Small Business Program brings the cut from 30% to 15% — meaningfully changes the math.
Pricing models that work
- Freemium + paid unlock (what RDR2 does). Low friction to try, clear upgrade trigger.
- Free trial + subscription — works best when the app's value is realized over weeks (productivity, fitness, etc.).
- One-time purchase — honest, simple. Hard to grow revenue without releasing new products.
- Consumable credits — matches AI cost structure especially well.
- Tiered subscriptions — Pro / Premium / Max-style ladders, well understood by users in 2026.
- Annual discount on subscriptions — 30-50% off annual reduces churn and front-loads cash.
A worked unit-economics example
Hypothetical AI iOS app: $9.99/year subscription, AI-powered chat with usage caps.
- Per-user gross revenue: $9.99/yr = ~$0.83/mo.
- App Store fee (15%): -$0.12 = ~$0.71 net.
- AI API cost (avg 100K tokens/mo on Sonnet): ~$0.40.
- Backend cost amortized: ~$0.02 at scale.
- Apple developer fee amortized over MAU: negligible.
- Net contribution per user per month: ~$0.29.
That's a ~35% contribution margin. Fine but tight. Levers to improve: use Haiku instead of Sonnet for routine queries (cuts AI cost 80%); add prompt caching (cuts cost on shared system prompts); raise price; add a tier above $9.99 with premium features.
Breakeven math
Fixed costs per month: backend baseline + your AI subscriptions + design tools + marketing.
Per-user contribution margin (revenue - variable cost): from the calculation above.
Breakeven users = fixed costs / contribution margin.
Example: $300/mo fixed costs, $0.29 per-user margin = ~1,035 paying users to break even. That's the number to anchor your growth plan around.
Mistakes that destroy margin
- Free unlimited AI for trial users. Caps free use or it cannibalizes the paid economy.
- Using Opus for everything. Sonnet handles most workloads at 5x cheaper.
- No prompt caching. Long system prompts on every call without caching is wasted money.
- Overscaling early. Running a 4xLarge RDS instance for 100 users is throwing money away.
- Free tier without rate limiting. A single abusive user can run up huge bills.
- Ignoring App Store Small Business Program. Free 15-percentage-point margin if you qualify.
- Pricing too low. Tripling your price loses 30% of conversions and increases revenue ~2x. Test your price ceiling.
- Refund-fraud abuse. A subset of users farm refunds. Apple's refund rate is real cost.
Platform-specific deep-dives: iOS, Android, Meta VR, Switch 2, Web, Windows, macOS, Apple TV, Apple Watch.
- Apple — App Store Small Business Program
- Anthropic — API pricing
- OpenAI — API pricing