Serverless Architecture Cost Estimator
Compare monthly compute costs for AWS Lambda, Cloudflare Workers, and Vercel Edge Functions based on your request volume, execution time, and memory.
Workload Configuration
Cost Comparison Chart
Frequently Asked Questions
How is AWS Lambda pricing calculated?▼
AWS Lambda charges on two dimensions: number of requests ($0.20 per 1M requests) and duration (GB-seconds of memory × execution time). Duration is billed in 1ms increments at $0.0000166667 per GB-second. The free tier includes 1M requests and 400,000 GB-seconds per month. For a 512MB function running for 100ms, that's 0.512 GB × 0.1s = 0.0512 GB-seconds per invocation.
How is Cloudflare Workers pricing calculated?▼
Workers has two plans: Free (100K requests/day, 10ms CPU/request) and Paid Bundled ($5/month for 10M requests, then $0.50/M additional, 50ms CPU). Workers Unbound is $0.015/M requests + $0.0000125/GB-second CPU time. Workers are significantly cheaper than Lambda for high-volume short requests because there's no per-GB-second charge on Bundled pricing.
How is Vercel Edge Functions pricing calculated?▼
Vercel Edge Functions on Pro plan ($20/month) include 1M invocations. Additional invocations cost $2/M on Pro. Edge Functions run on Vercel's edge network (powered by Cloudflare) with very low latency. They're best for auth middleware, redirects, A/B testing, and geolocation — not heavy compute.
Which platform is cheapest for high-volume APIs?▼
For very high volume (100M+ requests/month), Cloudflare Workers Unbound is often cheapest, especially for CPU-light workloads. For moderate volume (1-10M requests) with mixed compute, Lambda can be competitive. Vercel Edge is competitive for Next.js apps already on Vercel. Always compare at your specific request volume and duration profile.
What costs are NOT included in this calculator?▼
This calculator covers compute costs only. Not included: data transfer/egress costs (Lambda outbound: $0.09/GB), API Gateway costs ($3.50/M calls), KV/D1/R2 storage (Workers), DynamoDB/RDS (Lambda), cold start impact on user experience, monitoring/logging costs, and developer time for migration.
Related Products
on GumroadDevToolkit Starter Kit
A ready-to-deploy developer tools website with 12 built-in tools. Astro + Preact + Tailwind. Deploy to Cloudflare Pages for free. Built-in SEO, dark mode, and ad-ready layout.
Buy on Gumroad →Developer Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →AI Prompt Engineering Toolkit
58 structured prompt templates for Claude, ChatGPT, and Gemini — organized by use case. Code Review, Debugging, Documentation, Architecture, and 10 model-specific tips. Stop writing prompts from scratch.
Buy on Gumroad →You Might Also Need
LLM Cost Calculator
Compare monthly API costs across GPT-4o, Claude Sonnet, Gemini Pro, and 12+ models. Enter daily requests and token counts for instant cost estimates.
Open free tool →
AWS Cost Estimator
Estimate monthly AWS costs for EC2, RDS, S3, CloudFront, and Load Balancers. Interactive calculator with itemized breakdown.
Open free tool →
AI Prompt Cost Calculator
Calculate daily and monthly API costs for GPT-4o, Claude 3.5, Gemini 1.5, and more. Enter token counts, model, and request volume to get instant cost projections.
Open free tool →
More Free Tools
Related Articles
Cloudflare Workers vs Vercel Edge Functions: 2026 Comparison
Deep comparison of Cloudflare Workers vs Vercel Edge Functions in 2026: runtime differences, limits, pricing, storage options, developer experience, and when to choose each.
Edge Computing Architecture: Deploy Closer to Users 2026
Edge computing architecture 2026: edge vs CDN vs serverless, Cloudflare vs Vercel vs Fastly, data consistency patterns, and edge-native design guide.
AWS Lambda Cold Start Optimization: 10 Proven Techniques 2026
Eliminate or minimize AWS Lambda cold starts with 10 proven techniques: provisioned concurrency, SnapStart, package minimization, ARM Graviton2, lazy loading, and more with benchmark data.
Cloud Deployment Tools in 2026: From Containers to Serverless
A practical guide to cloud deployment tools in 2026. Compare deployment strategies, container platforms, serverless frameworks, and GitOps workflows that enterprise teams use to ship software reliably.
Serverless vs Containers 2026: When to Use Each
Decision framework for choosing between serverless functions and containers in 2026. Cost analysis, cold start realities, architecture patterns, and the right tool for each workload type.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →