Serverless vs. VPS vs. Managed Cloud Cost Calculator
Find the traffic level where a fixed-price VPS beats pay-per-request serverless, and compare managed PaaS.
A shared link includes your input values and any cost line names you added. Check the names before you post.
Serverless (FaaS)
$15
Per month at current traffic
Self-hosted VPS
$25
1 node at current load
Managed PaaS
$73
Per month at current traffic
Annual cost gap
$696
Yearly difference, highest vs. lowest option
Monthly Cost by Traffic Multiplier (1x to 5x)
Compare elastic serverless billing against fixed VPS and managed PaaS tiers
Side-by-Side Cost Breakdown
Monthly cost at current traffic
| Option | Monthly | Annual | Best fit for |
|---|---|---|---|
| Serverless (FaaS)Best | $15 | $180 | Spiky workloads with zero idle maintenance |
| Self-hosted VPS cluster | $25 | $300 | Steady, predictable traffic and cost control |
| Managed PaaS | $73 | $876 | Fastest developer velocity without DevOps |
Formula & Methodology
Serverless and server-based hosting bill in fundamentally different ways. Serverless charges for each request and each GB-second of compute, so spend grows with traffic from the first call. A VPS charges a fixed amount per node, so spend rises in steps as load crosses each node's capacity. This calculator models both, plus a managed PaaS tier, using the same traffic and database inputs.
GB-seconds = requests x 1,000,000 x (duration in s) x (memory in GB)
serverless cost = max(0, requests in M - 1) x $0.20
+ max(0, GB-seconds - 400,000) x $0.0000166667
+ database GB x $0.25
VPS nodes = max(1, ceil(requests in M x (duration in ms / 200) / 12))
VPS cost = nodes x $24 + max(0, database GB - 40) x $0.10
managed PaaS cost = $20 + nodes x $38 + database GB x $0.30The database price ($0.25 per GB), the VPS and PaaS node prices, and the node capacity are planning assumptions, not published rates. The Lambda rates and free tier are published AWS figures. The node-count rule is a planning heuristic: each node handles about twelve million requests per month at a 200 ms average duration, and capacity falls as duration rises. Treat the VPS and PaaS figures as indicative. Real capacity depends on framework, concurrency settings and database latency, so benchmark your own workload before committing to a platform.
Worked Example
A team runs 5 million requests per month, with an average duration of 200 ms, 512 MB of memory and a 50 GB database.
- GB-seconds: 5,000,000 × 0.2 s × 0.5 GB = 500,000
- Request charge: (5 − 1) × $0.20 = $0.80
- Compute charge: (500,000 − 400,000) × $0.0000166667 = $1.67
- Database charge: 50 × $0.25 = $12.50
- Serverless total: $14.97 per month
- VPS: 1 node × $24 + (50 − 40) × $0.10 = $25.00
- Managed PaaS: $20 + 1 × $38 + 50 × $0.30 = $73.00
At this traffic serverless is cheapest. At five times the traffic (25 million requests) the serverless bill rises to about $52.30, against $73.00 for the VPS, so serverless still leads with these settings. Longer executions or more memory raise the serverless figure faster, which is why duration matters so much.
Frequently Asked Questions
At what traffic does a VPS become cheaper than serverless?
It depends on request volume, execution time and memory. Serverless bills per request and per GB-second, so its cost rises steadily with traffic. A VPS cluster costs more in steps, one node at a time. Long executions and large memory allocations move the crossover to lower traffic. Use the chart to find the point where the lines cross for your settings.
Why does the calculator give the first million requests for free?
Most function platforms include a monthly free allowance of requests and compute. The model subtracts one million requests and 400,000 GB-seconds from the serverless bill, which approximates that allowance. Check your provider pricing page for current free tiers, because allowances and rates change.
Does managed PaaS make sense when it costs more than a VPS?
Often yes. Managed PaaS adds a platform premium over raw compute, but it removes patching, scaling and monitoring work. The right comparison includes the engineering hours you avoid. A small team without DevOps capacity can justify the premium for several years, while a team with strong operations skills usually gains more from a VPS cluster.
How do I estimate average execution duration?
Use the mean duration from your function logs or tracing tool over a typical week, not the peak. Include cold starts only if your platform bills for them. Long-tail requests matter less than the average for this model, but a few very slow endpoints can still raise total GB-seconds significantly.
Does the calculator include bandwidth or data transfer fees?
No. This model compares compute, node tiers and database storage only. Data transfer out of the cloud can add a meaningful cost on every option, so use the bandwidth and egress calculator alongside this one for a complete estimate.