← Research Notes · source: typical-tokens-build-website-app-20261113-1324/report.md
How many LLM tokens does it typically take for an AI coding agent / AI app builder to build a website or web app?
Summary — answer first
No vendor (Cursor, Claude Code, Lovable, Bolt, v0, Replit, Windsurf, Copilot) publishes a measured average token count for a complete website or app build, and there is no peer-reviewed greenfield-build benchmark. Everything below is single-run measurements, author-reported project logs, one planning-estimate calculator, and per-task benchmarks used as proxies. Treat the ranges as order-of-magnitude planning figures, not quotes.
Headline ranges — gross tokens billed in total (input + output + cache re-reads, the number that appears in usage logs / plan allowances), for a build taken to a working, polished state with normal iteration and debugging:
| Category | First working version (few prompts, little debugging) | Complete build with iteration (typical planning range) | API-equivalent cost at the source's prices |
|---|---|---|---|
| Simple landing page (baseline) | 50,000–200,000 | ~160,000–900,000, typical ~400,000 | ~$0.50–$2.75 |
| (1) Full multi-page business website (5–8 pages, shared components, contact/booking-enquiry form, blog/pricing, no user accounts, no real database beyond a form) | 200,000–500,000 | ~500,000–3,000,000, typical ~1–1.5 million | ~$1.65–$8.75 (GPT-4o rates); more on Opus-class models |
| (2) Complete interactive web app, moderate complexity (multiple screens, auth + saved profiles/progress, game-like or booking logic, database persistence) | 200,000–650,000 for a minimal CRUD/auth version | ~1,000,000–6,000,000, typical ~2–5 million; high end ~8–12 million if there are many screens, payments, or debugging loops | ~$5–$35 (GPT-4o planning rates); Lovable equivalent ~100–400 credits ($25–$100 build month); Bolt equivalent fits in one 10M-token Pro month ($25) unless debugging spirals |
Three caveats that change the number by 10–100×:
- What you count. Output tokens (code actually written) are tiny: ~28k for a landing page, ~90k for a marketing website, ~180–260k for an MVP feature / internal tool in the planning estimates; 27,297 output tokens for a measured 983-line, 7-screen app. Gross tokens are dominated by the agent re-reading its own context every turn — 95–97% cache reads in measured Claude Code logs, input:output ratios of ~150–180:1 in measured studies/projects. Bolt, Claude Code
/usage, and most plan meters count something close to the gross figure. - Variance is enormous. The one systematic study found the same task can vary up to 30× run-to-run; debugging loops are the main tail risk (builders report 500k–1M tokens per prompt once a Bolt project has auth + a dashboard, and 10–15M tokens wasted on one project's fix loops).
- Polished / production-hardened is a different regime. Iterating a larger product over days reaches tens of millions of gross tokens (a 155-file publishing platform: ~30–80M estimated), and multi-week, multi-agent production builds reach hundreds of millions to ~1 billion — those are outliers, not the moderate-app case above.
Findings
0. The counting problem — read this before using any number
- Anthropic's own documentation sample session (Sonnet 4.6, quoted in secondary write-ups of the Claude Code cost docs): 1,200 fresh input tokens, 5,300 output tokens, 940,000 cache-read tokens, 50,000 cache-write tokens — ~996,000 total, $0.55. Fresh user input was ~0.1% of the session. Source: https://frugal.co/blog/claude-code-cost-per-engineer (index, read 2026-11-13)
- Measured personal logs, same pattern: one developer's week = 471 Claude Code sessions, 21,449 API calls, 6.15 billion tokens, of which output was only 21.6M (0.35%) and 97.2% of input was cache reads. Source: https://www.danmercede.com/guides/where-claude-code-usage-goes (index, read 2026-11-13)
- Bai et al. (2026), the only systematic measurement — preprint, not peer-reviewed, 8 frontier models × 500 SWE-bench Verified tasks under OpenHands: an agentic coding task averaged 4.17M tokens and $1.857, with an input:output ratio of 153.85:1, vs 3.39k tokens for the same problem as chat. Same-task runs differed by up to 30×. Via: https://capitalandcompute.net/blog/ai-coding-agent-token-usage (index, read 2026-11-13); paper: arXiv:2604.22750.
Implication: when a source says "33k tokens" and another says "5 million tokens" for a similar-looking build, they are usually counting different things (output/uncached vs gross-with-cache), not disagreeing.
1. Simple landing page (baseline)
| Figure | Scope | Type |
|---|---|---|
| 408,000 typical (380k in + 28k out); range 162,000–912,000; $1.23 ($0.50–$2.75 at GPT-4o $2.50/$10 per M) | Landing page, whole agent session with iteration on layout/copy/responsiveness | Planning estimate, not measured — AI Calculator Pro, "Verified 10 November 2026" |
| 50,000–150,000 per comprehensive build iteration | Bolt, small projects: simple landing pages, basic forms | Anecdotal/secondary Bolt guide |
| ~2 Lovable credits (1.70–2.00) for initial generation | Lovable official example: "landing page with generated images" | Vendor example via review; credits ≠ tokens (see §5) |
| 33,000 (Claude Code/Opus) vs 188,000 (Cursor/GPT-5) vs 102,000 (Codex/GPT-5) | Building a Next.js app with Tailwind 4 + shadcn — closer to a landing-page/small-site scaffold than a full app | Single run by one developer (@iannuttall, via Builder.io); counting method unclear, almost certainly excludes most cache re-reads — do not compare directly with gross figures |
Sources: https://www.aicalculatorpro.com/how-many-tokens/landing-page/ · https://medium.com/@yogahema19/bolt-new-8f92d53a8eed · https://www.hackceleration.com/labs/review/lovable · https://www.futureproofing.dev/resources/ai-native-team/claude-code-vs-cursor-token-efficiency-2026 (all index, read 2026-11-13)
2. Full multi-page business website — question (1)
Best available range: ~540,000–2,900,000 gross tokens, typical ~1,290,000 (1.2M input + 90k output), $3.90 at GPT-4o prices ($1.65–$8.75). Scope as defined by the source: "a 5–8 page product site; landing + blog + pricing + docs shell," several pages sharing components/styling/content, "more generation than logic," built over a whole agent session (many turns, context re-sent). This is a planning estimate from AI Calculator Pro — the site gives no measured dataset or methodology — so treat it as a sanity-check figure, corroborated in order of magnitude by the Bolt data below. Source: https://www.aicalculatorpro.com/how-many-tokens/marketing-website/ (verified live via page open of the index page, read 2026-11-13)
Corroboration / cross-checks:
- Bolt hands-on review — developer portfolio (project showcase, blog, contact form — the closest measured analogue to a business site): ~400,000 tokens total. At the simple end, consistent with a less-iterated build. Source (anecdotal, author-built): https://www.aitoolmeter.com/reviews/bolt-review/ (verified live, read 2026-11-13)
- Bolt generic profile — medium projects ("multi-page platforms, database tools"): 150,000–500,000 tokens per build iteration; a polished site normally takes several iterations, landing in the ~0.5–2M total zone. Sources: https://medium.com/@yogahema19/bolt-new-8f92d53a8eed · https://www.banani.co/blog/bolt-new-pricing (index)
- Lovable equivalent: a small landing page "might take 20 to 40 requests to polish, which fits in Pro's 100 credits" ($25/mo). No token conversion exists. Source: https://we.inc/pricing-guides/lovable-pricing (index)
Synthesis for (1): budget ~1–3 million gross tokens for a complete multi-page business website; ~0.2–0.5M if you accept the first generated version with minimal changes. Output tokens alone will be only ~50–100k.
3. Complete interactive web app of moderate complexity — question (2)
Multiple screens, auth, saved user profiles/progress, game-like or booking features, database persistence.
3a. Measured first working versions (few prompts, little/no debugging) — surprisingly cheap
- PIES measured study (best single data point in this report). Claude Code (Claude Fable 5.1, headless, usage taken from the CLI's own JSON report) built, from one brief, a job-tracking app: React front end + Go REST backend + MySQL, sign-in page, 7 screens (Dashboard, Customers list/edit, Jobs list with status filter, Job edit, Overdue jobs, Home), seeded with 8 customers / 20 jobs, 983 lines of code, everything verified working: 27,297 output + 554,514 cache-read + 48,108 cache-write tokens ≈ 630,000 gross, $2.47 at API list prices, 34 turns. A simpler stack choice for the same brief (421-line Python/SQLite script) cost 11,044 output tokens / $1.05 / 5 turns. One run each way, run by a vendor (PIES) selling an alternative — but the plain-agent arm is a clean, fully-disclosed measurement. Source: https://docs.pies.io/customer/agent-token-study.html (verified live, read 2026-11-13)
- Bolt vs Lovable head-to-head, same prompts, "PromptVault" micro-SaaS (dashboard, search/filter, CRUD modal, simulated auth modal, localStorage persistence — not a real server database): Bolt: 196,000 tokens total (101,000 scaffolding prompt + 95,000 full-stack prompt); Lovable: 7.8 credits (3.0 + 4.8), which exceeded the free tier's 5 credits/day and forced a second day. Source (single measured test): https://dev.to/muthamizh_chelvan/lovable-vs-boltnew-we-built-the-same-saas-app-on-both-real-test-cost-515e (verified live, read 2026-11-13)
3b. Complete builds with real iteration — the typical case
- Bolt hands-on review, four complete projects (author-built over two months, totals across all sessions to a finished result):
- Real-time chat app (rooms, presence, message history, WebSockets): ~1.2M tokens, 3 sessions — "production-quality"
- Personal finance tracker (categorisation, charts, CSV import): ~1.5M tokens
- E-commerce storefront (catalogue, cart, checkout, Stripe — the closest analogue to a booking app with payments): ~2.8M tokens, plus manual cleanup
- Also: a focused 2-hour Bolt session = 200,000–500,000 tokens; single interactions on large projects = 80,000–120,000 tokens. Source: https://www.aitoolmeter.com/reviews/bolt-review/ (verified live, read 2026-11-13)
- Planning estimates (AI Calculator Pro, same caveats as §2):
- MVP feature — one complete vertical slice, UI + API + data + tests, several sessions: typical 3,680,000 (3.5M in + 180k out), range 1,580,000–8,400,000, $10.55 ($4.55–$24.00). https://www.aicalculatorpro.com/how-many-tokens/mvp-feature/
- Internal tool / admin app — several screens, CRUD, auth, a couple of integrations, many sessions: typical 5,260,000 (5M in + 260k out), range 2,110,000–11,580,000, $15.10 ($6.10–$33.30). https://www.aicalculatorpro.com/how-many-tokens/internal-tool/
- Epic (8–15 stories): typical 10,500,000, $30. https://www.aicalculatorpro.com/how-many-tokens/
- Other Bolt anecdotes: a complete simple app (a typing tool) ≈ 3M tokens total; a "simple request" on a grown project reported at 200,000–1,000,000 tokens by individual users, ~1M for regenerating one
App.tsxfile. Sources: https://www.banani.co/blog/bolt-new-pricing · https://superapp.dev/blog/boltnew-pricing (index)
Synthesis for (2): a moderate interactive app with real database persistence, taken from blank page to working and debugged, is typically ~1–6 million gross tokens (central tendency ~2–5M), with ~8–12M a realistic high end when screens multiply or debugging loops bite. Output tokens alone: ~150–300k. First-pass generation alone can be as low as 0.2–0.65M — the gap between that and the complete figure is the iteration/debugging cost.
3c. How the tail blows up (why some people report 10M+ for "one app")
- Bolt "context-sync tax": Bolt re-syncs the whole project file system per message (its own FAQ, via reviews). At 30+ files, even a one-line colour change can cost 150k+ tokens/message; builders on r/boltnewbuilders report 500k–1M tokens per prompt with auth + dashboard + a dozen files; one user reported burning 10–15M tokens trying to fix basic issues; a Product Hunt reviewer estimated ~50% of tokens went to fixing errors Bolt introduced. Sources: https://preuve.ai/blog/bolt-new-review · https://dev.to/muthamizh_chelvan/lovable-vs-boltnew-we-built-the-same-saas-app-on-both-real-test-cost-515e (index/live)
- Lovable: a stubborn bug can eat 20–30 credits; a serious MVP with auth, evolving DB schema, payments and email routinely outgrows the 100-credit Pro tier — budget the 200-credit ($50) or 400-credit ($100) tier for the build month. Source: https://academy.techpresso.co/reviews/is-lovable-worth-it (index)
- Long, polished builds over days: Blogtinum, a TypeScript static-site platform (155 source + 49 test files, admin UI, API, 3 sites, 30 releases; GitHub Copilot / GPT-5.6-sol, 47 sessions, 272 turns, ~12 active hours over 5 days): author's reconstruction — explicitly not a billing record — ~50M raw tokens, range 30–80M; $213 (80% cached) to $375 (uncached) list-price equivalent for 50M. This is appreciably more complex than a "moderate" app, and shows what sustained iteration does to gross totals. Source: https://blog.nguyenluu.dev/posts/how-many-tokens-to-build-an-ssg/ (verified live, read 2026-11-13)
- Extreme outlier, for scale only: judoka.ai (production iOS/Android/web app, 309,000 LOC, 165 screens, 2,726 tests, 27 days, 6–15 parallel Claude Code agents): ~1 billion input tokens, ~$1,500 total Claude spend ($200 Max plan + $480 overages + ~$820 direct API); one 3-day API slice alone was 541M input / 3.0M output tokens. Not comparable to a moderate web app. Source: https://fullhoffman.com/2026/01/19/on-running-a-startup-of-claude-code-agents-what-you-get-for-a-billion-tokens-a-month/ (index)
4. Per-session / per-project averages and burn-rate proxies
| Proxy | Figure | Source / type |
|---|---|---|
| Anthropic official average (enterprise, API-metered) | ~$13 per developer per active day; $150–$250 per developer per month; 90% of users < $30/active day. No token count published — Anthropic publishes dollars/multiples, not tokens | Claude Code cost docs, via https://www.usewalkie.com/blog/what-a-claude-code-session-costs/ (index) |
| Anthropic docs sample session | ~996k gross tokens (940k cache-read), $0.55, Sonnet 4.6 | Via https://frugal.co/blog/claude-code-cost-per-engineer (index) |
| Agentic coding task, systematic study | Avg 4.17M tokens, $1.857 per task (SWE-bench Verified bug-fix/feature tasks on existing repos, 8 models); per-model summaries elsewhere put the average band at ~1–3.5M | Bai et al. 2026 preprint, via https://capitalandcompute.net/blog/ai-coding-agent-token-usage/ (index) |
| Artificial Analysis Coding Agent Index v2.0 (290 hard benchmark tasks, max effort, Nov 2026) | Claude Code / Opus 5.5: 14.5M tokens/task, $11.42, 146 turns, ~1 hr; Claude Code / Sonnet 5.5: 24.1M, $13.30; Codex / GPT-6 Astra: 3.2M, $7.04, 39 turns; Codex / GPT-6.1 Sol: 3.9M, $1.50. These are hard, long-horizon benchmark tasks at maximum reasoning — an upper-bound proxy for "one substantial feature/fix", not a greenfield build | Via https://whizi.io/resources/claude-code-vs-codex/ (index) |
| Per-feature planning figures | 5-point user story: typical 945k tokens, $2.70; CRUD API endpoint: 320k; third-party API integration: 635k; complex bug fix: 420k | AI Calculator Pro planning estimates, https://www.aicalculatorpro.com/how-many-tokens/ (live) |
| Bolt session burn | Focused 2-hour session: 200k–500k tokens; Pro plan's 10M tokens ≈ 20–40 hours of active development | https://www.aitoolmeter.com/reviews/bolt-review/ (live) |
| Context windows (not consumption) | Claude Code: 200k default, 1M available; Cursor: advertised 200k, users report 70–120k usable after truncation | https://www.futureproofing.dev/resources/ai-native-team/claude-code-vs-cursor-token-efficiency-2026 (index) |
5. Credits-to-tokens conversions (where a tool does not bill in tokens)
- Bolt — bills in real tokens. Free: 1M tokens/month, 300k/day cap. Pro: $25/mo for 10M tokens = $2.50 per million tokens ($1.80/M annual; Pro 100: $100 for 55M = $1.82/M). So the §3b Bolt projects cost, at Pro rates: chat app 1.2M ≈ $3 of allowance, e-commerce 2.8M ≈ $7 — i.e. one moderate app ≈ ⅛–⅓ of a Pro month, before debugging spirals. Sources: https://superapp.dev/blog/boltnew-pricing · https://www.aitoolmeter.com/reviews/bolt-review/
- Lovable — credits, no published token equivalent; do not convert. Official example costs (Build mode): make a button grey 0.50 credits, remove a footer 0.90, add sign-up/login auth 1.20, landing page with generated images 1.70–2.00; typical edit 0.5–2 credits. Pro = $25/mo for 100 credits ($0.25/credit). Measured/estimated project costs: PromptVault micro-SaaS = 7.8 credits (2 prompts); a modest logged-in, data-backed app = 10–20 messages (so the free 30 credits/month ≈ 1–2 medium projects); a polished landing page = 20–40 requests; a serious MVP = 200–400 credits in the build month. Sources: https://www.hackceleration.com/labs/review/lovable · https://aifreeplan.com/en/guides/ai-app-builder-free-comparison-2026/ · https://academy.techpresso.co/reviews/is-lovable-worth-it (index)
- v0 (Vercel) — dollar credits drawn down at published per-token rates (Oct 2026: Mini $0.20 in / $1.20 out, Pro $2/$10, Max $5/$25 per million). Vercel publishes no per-message or per-build average; third parties estimate a typical mid-size generation at ~40–50k input (mostly project context) + ~4–5k output tokens. Plus plan = $30/user/mo including $30 of credits. Source: https://quantslant.com/v0-vercel-pricing-credits-models-design-mode/ (index)
- Replit Agent — no tokens disclosed at all. Effort-based "checkpoint" pricing (formerly a flat $0.25/checkpoint; now simple changes typically < $0.25, large builds bundled at more); Core $20/mo includes $20 of credits. A single-prompt single-page app with persistence cost one checkpoint in one review, but Replit does not expose its dollar/token value to free users. Source: https://aialleyway.com/replit-pricing/ (index)
- Claude Code / Cursor subscriptions are flat-rate with usage windows, not token bills; the dollar figures in this report for them are API-list-price equivalents computed by the tools/logs, not amounts paid.
Could not verify
- No reliable, measured, published token count exists for "a complete multi-page business website" or "a complete moderate web app" as a category. No vendor publishes per-project averages; no independent multi-run greenfield benchmark was found. The headline ranges are triangulated from: one fully-disclosed single-run measurement (PIES), a handful of single-project author reports (Bolt review, PromptVault test, Blogtinum), and one planning-estimate calculator (AI Calculator Pro) whose methodology and data source are not disclosed — its figures are labelled "planning estimates… not authoritative benchmarks" by the site itself and should not be quoted as measured.
- Token-counting methods are inconsistent across sources (output-only vs input+output vs gross incl. cache reads; Bolt's internal token definition vs API tokens). Ranges above are stated as gross where the source allows, and flagged where they are not.
- Lovable credits, Replit checkpoints and v0 dollar-credits cannot be converted to tokens from published information; any conversion found on SEO blogs is invented.
- GitHub Copilot / Windsurf / Cursor per-build figures: no project-level token totals found beyond the single 33k/188k/102k Next.js benchmark and the Blogtinum Copilot reconstruction.
- All sources here are dated 2025–2026 (most Oct–Nov 2026); pricing, plans and model efficiency change monthly, so token totals from older runs are not directly comparable.
Sources
Index = found/read via web search results; Live = full page opened and read 2026-11-13.
- AI Calculator Pro — How many tokens index (live): https://www.aicalculatorpro.com/how-many-tokens/
- AI Calculator Pro — Marketing website (index): https://www.aicalculatorpro.com/how-many-tokens/marketing-website/
- AI Calculator Pro — Landing page (index): https://www.aicalculatorpro.com/how-many-tokens/landing-page/
- AI Calculator Pro — Internal tool (index): https://www.aicalculatorpro.com/how-many-tokens/internal-tool/
- AI Calculator Pro — MVP feature (index): https://www.aicalculatorpro.com/how-many-tokens/mvp-feature/
- PIES — measured agent token study, job-tracking app (live): https://docs.pies.io/customer/agent-token-study.html
- Dev.to — Lovable vs Bolt, same SaaS app built on both (live): https://dev.to/muthamizh_chelvan/lovable-vs-boltnew-we-built-the-same-saas-app-on-both-real-test-cost-515e
- AIToolMeter — Bolt.new review, 4 projects with token totals (live): https://www.aitoolmeter.com/reviews/bolt-review/
- Blogtinum — how many tokens to build an SSG (live): https://blog.nguyenluu.dev/posts/how-many-tokens-to-build-an-ssg/
- Capital & Compute — Bai et al. token-consumption study summary (index): https://capitalandcompute.net/blog/ai-coding-agent-token-usage/
- Futureproofing — Claude Code vs Cursor token efficiency, 33k/188k benchmark (index): https://www.futureproofing.dev/resources/ai-native-team/claude-code-vs-cursor-token-efficiency-2026
- Whizi — Artificial Analysis Coding Agent Index v2.0 tokens/task (index): https://whizi.io/resources/claude-code-vs-codex/
- Frugal — Claude Code cost per engineer, Anthropic sample session (index): https://frugal.co/blog/claude-code-cost-per-engineer
- UseWalkie — what a Claude Code session costs, Anthropic $13/day average (index): https://www.usewalkie.com/blog/what-a-claude-code-session-costs/
- Dan Mercede — 471 Claude Code sessions measured (index): https://www.danmercede.com/guides/where-claude-code-usage-goes
- Superapp — Bolt.new pricing, tokens and real cost (index): https://superapp.dev/blog/boltnew-pricing
- Preuve — Bolt.new review, real token costs (index): https://preuve.ai/blog/bolt-new-review
- Banani — Bolt.new pricing/token consumption by prompt (index): https://www.banani.co/blog/bolt-new-pricing
- Medium (Bolt guide) — Bolt token burn profiles by project size (index): https://medium.com/@yogahema19/bolt-new-8f92d53a8eed
- Hack'celeration — Lovable review, official credit-cost examples (index): https://www.hackceleration.com/labs/review/lovable
- Techpresso Academy — Is Lovable worth it, credit math for a real MVP (index): https://academy.techpresso.co/reviews/is-lovable-worth-it
- AIFreePlan — AI app builder free tiers; Lovable 10–20 messages for a modest data-backed app (index): https://aifreeplan.com/en/guides/ai-app-builder-free-comparison-2026/
- We.inc — Lovable pricing; landing page 20–40 requests (index): https://we.inc/pricing-guides/lovable-pricing
- Hoffman — building an app with Claude Code agents, ~1B tokens (index): https://fullhoffman.com/2026/01/19/on-running-a-startup-of-claude-code-agents-what-you-get-for-a-billion-tokens-a-month/
- Quantslant — v0 pricing, credits, per-token model rates (index): https://quantslant.com/v0-vercel-pricing-credits-models-design-mode/
- AIAlleyway — Replit pricing, checkpoint/effort billing (index): https://aialleyway.com/replit-pricing/