AWS Lambda x86 Serverless Compute Cost Calculator
Simulate monthly AWS Lambda x86 compute bills ($0.20 per 1M requests + $0.0000166667 per GB-second).
Parameters & Config
Total function executions triggered per month
RAM allocated to the serverless container
Average latency per execution in milliseconds
Cloud provider fee per 1,000,000 invocation requests
Charge per GB-second of compute runtime consumed
Combined monthly charge for invocations and compute runtime
Blended cost to execute 1,000,000 function requests
Key Metrics & Sub-Totals
3 itemsCalculation Summary & Unit Breakdown
| Metric | Calculated Value | Notes / Logic |
|---|---|---|
| Monthly Invocations | 5,000,000 | requests/month |
| Allocated Function Memory | 512 MB | 0.500 GB |
| Average Execution Duration | 120 ms | per call |
| Total Compute Volume | 300,000 GB-s | GB-seconds |
| Request Surcharge | $1.00 | Invocation fee |
| Compute Runtime Charge | $5.00 | Memory-duration fee |
| Effective Cost per 1M Calls | $1.20 | Blended rate |
| Total Monthly Cloud Bill | $6.00 | USD |
Overview & Methodology
AWS Lambda x86 architecture charges $0.20 per 1,000,000 requests plus $0.0000166667 for every GB-second of compute. Memory allocation scales from 128 MB to 10,240 MB with proportional vCPU allocation.
Mathematical Formulation
Compute GB-s = Monthly Requests × (Memory MB / 1024) × (Duration ms / 1000). Total Cost = (Requests / 1M × $0.20) + (Compute GB-s × $0.0000166667).Optimization Best Practices
AWS includes a perpetual Free Tier of 1,000,000 requests and 400,000 GB-seconds of compute per month.
Use AWS Lambda Power Tuning to find the optimal memory setting where execution finishes faster, reducing total GB-second cost.
Migrate from x86 to ARM Graviton2 to achieve an immediate 20% cost reduction.
Frequently Asked Questions
Q.How much does 5,000,000 AWS Lambda executions cost at 512MB and 120ms?
5M requests cost $1.00 for invocations plus $5.00 for 300,000 GB-seconds of compute, totaling $6.00/month.
Q.What is the AWS Lambda perpetual free tier?
Every AWS account receives 1,000,000 free requests and 3,200,000 seconds of 128MB compute (400,000 GB-seconds) every month.
Q.How does Lambda round duration?
AWS Lambda bills execution duration in 1-millisecond increments with zero minimum rounding penalty.