Serverless cost calculator
Estimate your monthly serverless bill. Enter requests/month, average memory (MB), average duration (ms) and egress (GB), and the calculator prices the workload across every request-comparable platform — compute = requests-fee + GB-seconds x rate, after each platform's free tier, plus egress — entirely in your browser. It excludes platform minimums and regional variation, so use it as a starting estimate, not a quote.
Data as of June 2026.
How it works
The formula is deliberately simple and transparent:
GB-seconds = requests x (duration/1000) x (memory/1024)
compute = max(0, requests - free) / 1M x req-fee + max(0, GB-s - free) x GB-s-rate
total = compute + egress GB x egress-rate
CPU-metered platforms (Google Cloud Run, Cloud Functions 2nd gen, Azure Container Apps) add a separate vCPU-second charge, for which the calculator assumes 1 vCPU during active execution. Resource-time platforms (Fargate, Render, Railway, Fly.io) are not request-priced and are not shown — see their provider pages for their own models. Read the methodology for the snapshot date and exclusions.
Frequently asked questions
How does the serverless cost calculator work?
Enter your monthly requests, average memory (MB), average duration (ms) and egress (GB). It computes GB-seconds = requests x (duration/1000) x (memory/1024), then for each request-priced platform charges the per-1M-request fee plus the per-GB-second rate (CPU-metered platforms add a vCPU-second charge), after subtracting that platform's free tier, plus egress. It runs entirely in your browser.
What does the calculator NOT include?
It excludes platform minimums (Cloudflare Workers Paid $5/mo, Vercel Pro $20/seat, Deno Deploy/Modal credits), cold-start nuances, per-100ms rounding, request/response payload size and regional price differences. Resource-time platforms (Fargate, Render, Railway, Fly.io) are not shown because they are not request-priced. Treat the result as a starting estimate, not a quote.
Where do the rates come from?
Each platform's per-request fee, per-GB-second rate and free tier are a dated snapshot from its published pricing page (snapshot captured June 2026). Snapshot June 2026 — verify on the vendor's pricing page.
Go deeper
Last updated: 2026-06-21