AWS Lambda Pricing in 2026: The Direct Answer
Lambda charges on two axes: $0.20 per million requests + $0.0000166667 per GB-second of compute (x86). ARM/Graviton functions get a ~20% discount. The always-free tier covers 1M requests + 400K GB-seconds per month.
How to Use This Calculator
You need three numbers to estimate Lambda cost: monthly invocations, average duration in ms, and memory size in MB. The calculator multiplies memory × duration to get GB-seconds, applies free tier if you have it, and outputs total monthly cost.
The Hidden Costs of Lambda
- Data transfer out — egress from Lambda is billed separately. See the Data Transfer Calculator
- CloudWatch Logs — by default Lambda logs everything. At 100M invocations/month, log ingestion can match the compute bill
- Provisioned Concurrency — extra fee if you reserve warm capacity to avoid cold starts
- Cold starts — not a billing line but a latency cost. Use small memory + ARM for fastest cold starts
Cost Optimization Levers
- Switch to ARM — 20% off duration cost for most runtimes, one config line
- Tune memory — for CPU-bound functions, more memory can be cheaper overall (faster duration)
- Compute Savings Plans apply to Lambda — commit and save 17%
- Audit logging — log volume can rival compute cost; sample noisy logs
- Switch to ECS Fargate for steady high-volume workloads where Lambda's per-invocation fee dominates