Using the Serverless vs Server Cost Calculator
Use the average billed duration and configured memory for the function. Enter the combined monthly cost of the server fleet sized to handle the same workload.
Worked example
One million 200 ms invocations at 0.5 GB use 100,000 GB-seconds. The example request and compute rates give a monthly cost of 2.20.
Example inputs
- Function invocations per month
- 1000000
- Average billed duration per invocation (ms)
- 200
- Billed memory per invocation (GB)
- 0.5
- Cost per million invocations
- 0.2
- Cost per GB-second
- 0.00002
- Monthly cost of all always-on servers
- 20
Example result
- Serverless monthly cost
- 2.2
- Always-on monthly cost
- 20
- Monthly difference (serverless minus server)
- -17.8
- Serverless request cost
- 0.2
- Serverless compute cost
- 2
- Break-even monthly invocations
- 9,090,909.1
Method and assumptions
Compare linear invocation and GB-second charges with a fixed server bill. Break-even assumes both options can serve the same workload.
Reference: aws.amazon.com — method and further reading
Model billable usage
The starting rates are illustrative. For cost estimates, use your provider’s billing units, region and plan, and keep all prices in the same currency.
Common question
What assumptions does break-even use?
It holds memory, duration, rates, and server cost fixed as invocations change. If your fleet needs another server at higher load, run another scenario with the new cost.