How AWS Lambda pricing works
Lambda bills two things: requests ($0.20 per million) and compute time in GB-seconds, which is the memory you allocate (in GB) multiplied by how long each invocation runs. Duration is billed per millisecond, rounded up. A 512 MB function running 200 ms uses 0.5 × 0.2 = 0.1 GB-seconds per call.
US East (N. Virginia) prices, checked 20 October 2026
- x86: $0.0000166667 per GB-second for the first 6 billion GB-seconds a month, $0.0000150000 for the next 9 billion, and $0.0000133334 above 15 billion.
- Arm (Graviton): $0.0000133334 for the first 7.5 billion, $0.0000120001 for the next 11.25 billion, and $0.0000106667 above 18.75 billion — about 20% cheaper.
- Free tier: 1 million requests and 400,000 GB-seconds every month, shared across all functions in the account.
- Provisioned concurrency: $0.0000041667 per GB-second while enabled (x86), and invocations it serves cost $0.0000097222 per GB-second. Arm: $0.0000033334 and $0.0000077778.
- Ephemeral storage above the free 512 MB: $0.0000000309 per GB-second. Response streaming: $0.008 per GB after the first 100 GB.
What the calculator does not include
Data transfer, CloudWatch Logs (often larger than the Lambda bill — set a retention period), and the services your function calls, such as API Gateway, SQS, DynamoDB or Bedrock. Other Regions cost slightly more than US East.
Cutting the bill
- Switch to Arm if your dependencies support it.
- Right-size memory: CPU grows with memory (one full vCPU at 1,769 MB), so a CPU-bound function can finish faster and cost less with more memory. Measure with AWS Lambda Power Tuning.
- Reuse SDK clients and connections outside the handler, and avoid waiting on slow downstream calls.
- Batch SQS and Kinesis records, and filter events at the source so the function isn't invoked for nothing.
- For Amazon Connect flows, keep Lambda timeouts short (the flow waits up to 8 seconds) and cache lookups.