Understanding AWS Lambda pricing requires moving past the simplistic assumption that serverless is always cheaper than dedicated compute. While the execution model bills strictly per invocation and gigabyte-second, uncontrolled request volume, unoptimized memory allocations, and ancillary networking services turn lightweight event handlers into unmonitored budget drains. As highlighted in the FinOps Foundation State of FinOps 2024 report, 32% of cloud spend is identified as waste before systematic FinOps optimization is applied. Serverless functions are not exempt from this dynamic — they are simply harder to see on a line-item invoice.
How AWS Lambda Pricing Works: Requests and Compute Duration
Lambda charges across two primary dimensions: request count and compute duration. Every invocation triggers a flat fee per request, combined with a duration charge billed in 1-millisecond increments based on the memory allocated to the function. When provisioning 128 MB of RAM, the cost per millisecond is low, but allocating 10,240 MB (the current maximum) scales the compute charge linearly, even if the function never uses that capacity.
Memory allocation in Lambda directly couples RAM to allocated vCPU. Setting a function to 1,769 MB provides the equivalent of one full vCPU. Functions that are compute-bound rather than memory-bound often complete significantly faster when allocated higher memory tiers, sometimes reducing total duration enough to offset the higher per-millisecond rate — and sometimes not, which is why this has to be measured per function rather than assumed. Teams running distributed environments across multiple services can use a tool like our compute pricing guide to compare serverless duration costs against baseline container and VM pricing models before committing to a memory configuration.
# Query function configuration to inspect memory allocations and timeout limits
aws lambda get-function-configuration \
--function-name payment-processor-prod \
--query '{Memory:MemorySize,Timeout:Timeout,Runtime:Runtime,Arch:Architectures[0]}'
AWS Lambda prices (US East, N. Virginia)
| Charge | Price (x86) | Free tier (per month) |
|---|---|---|
| Requests | $0.20 per 1 million requests | 1 million requests |
| Compute duration | $0.0000166667 per GB-second | 400,000 GB-seconds |
Source: AWS Lambda pricing, retrieved November 28, 2026. Arm (Graviton) functions are billed at a lower per-GB-second rate listed on the same page.
Worked example
A function invoked 3 million times a month, running 120 ms on average with 1,536 MB of memory (x86, US East):
- Requests: 3M − 1M free = 2M billable → $0.40
- Compute: 3M × 0.12 s × 1.5 GB = 540,000 GB-s − 400,000 free = 140,000 billable GB-s → $2.33
- Total Lambda charge: $2.73 per month, before CloudWatch Logs and data transfer.
Example from the AWS Lambda pricing page (Example 1).
Architecture Arbitrage: Graviton ARM vs x86 Execution Costs
AWS Lambda supports both x86_64 and arm64 (AWS Graviton) architectures. Migrating functions from x86 to Graviton reduces the duration billing rate immediately, regardless of workload. Because Graviton processors deliver better price-performance for both compiled runtimes (Go, Rust) and interpreted runtimes (Python, Node.js), many workloads also see shorter execution times on top of the cheaper base pricing tier — but this is workload-dependent, not universal.
| Dimension | x86_64 | arm64 (Graviton) |
|---|---|---|
| Price per GB-second | Standard rate | Lower rate (per AWS Lambda pricing page) |
| Native dependency compatibility | No validation needed | Requires rebuilding binaries / base images |
| Typical fit | Legacy layers, unverified third-party binaries | Greenfield functions, compiled runtimes, container images you control |
Testing compatibility requires validating native dependencies, container base images, and external libraries before a blanket migration. For workloads experiencing cold start latency or variable traffic spikes, balancing architecture choice against Provisioned Concurrency becomes a cost-ownership question as much as an engineering one — see our analysis on cloud bill ownership and FinOps accountability for how teams typically split that responsibility.
# Update an existing function to execute on Graviton2 ARM architecture
aws lambda update-function-configuration \
--function-name order-webhook-handler \
--architectures arm64
Provisioned Concurrency and Ancillary Hidden Charges
Provisioned Concurrency eliminates cold starts by keeping execution environments initialized and ready to respond. However, this capability shifts the billing model from pure pay-per-use back to continuous hourly compute billing. Concurrency sized for peak traffic but left static during off-peak periods accumulates idle costs that look identical, on an invoice, to an oversized EC2 instance running 24/7.
Beyond execution duration, secondary services frequently surpass core compute charges:
- CloudWatch Logs: High-volume functions logging verbose debug payloads generate substantial ingestion and retention fees that rarely show up when teams estimate \”Lambda cost.\”
- VPC Data Transfer: Functions deployed inside a private VPC accessing external endpoints incur NAT Gateway processing charges per gigabyte.
- Egress Costs: Moving payloads out of the AWS region introduces egress fees that often exceed compute costs — a systemic challenge detailed in our guide on the cloud egress trap.
# Identify functions configured with static provisioned concurrency allocations
aws lambda list-provisioned-concurrency-configs \
--function-name payment-processor-prod \
--query 'ProvisionedConcurrencyConfigs[*].{Allocated:AllocatedProvisionedConcurrentExecutions,Available:AvailableProvisionedConcurrentExecutions}'
Practical Steps to Reduce Lambda Costs
Most Lambda cost reduction work falls into four repeatable moves, roughly in order of effort-to-impact ratio:
- Right-size memory per function, not per service. Use AWS Lambda Power Tuning or manual benchmarking to find the memory setting that minimizes cost × duration for each function individually — a blanket 1024 MB default across a microservice fleet is almost always wrong for some subset of functions.
- Audit Provisioned Concurrency on a schedule, not once. Traffic patterns shift; concurrency sized for a launch event six months ago is dead weight today.
- Set CloudWatch Logs retention explicitly. Default retention is indefinite — explicit 14 or 30-day policies on high-volume functions materially cut log storage cost.
- Route VPC-bound functions through VPC endpoints where possible instead of NAT Gateways, to avoid per-gigabyte processing charges on traffic that never actually leaves AWS’s network.
At scale — dozens of functions spread across multiple accounts and environments — tracking these variables manually in spreadsheets stops being sustainable. Thalaxo’s current scope is multi-cloud VM and GPU instance-level FinOps (idle detection, rightsizing, scheduling) across AWS, Azure, and GCP rather than serverless function-level billing, but the same cost-visibility discipline applies: if your Lambda spend sits alongside a broader EC2, RDS, or GPU footprint, consolidating that visibility is worth evaluating. You can review platform pricing options and check which cloud providers and account connection models are supported via our multi-cloud integrations page.
Lambda is rarely the biggest line on the bill: the EC2, storage and data transfer around it usually are. Run the free 5-minute Thalaxo audit to see idle and oversized resources across your AWS and Azure accounts.
FAQ
Does AWS Lambda have a free tier?
Yes. AWS Lambda includes a perpetual free tier of 1 million requests and 400,000 GB-seconds of compute time per month, per AWS’s published Lambda pricing page. Low-traffic APIs and occasional batch jobs can often stay within this tier indefinitely.
Is Graviton (arm64) always cheaper than x86_64 for Lambda?
The per-GB-second rate is lower on Graviton, but total cost also depends on whether your runtime and dependencies run as fast or faster on arm64. Compiled runtimes typically benefit the most; functions with unverified native binaries need compatibility testing before migrating.
Does Provisioned Concurrency replace the need for memory tuning?
No — they address different problems. Memory tuning reduces the cost of each invocation; Provisioned Concurrency removes cold starts by pre-warming environments, which converts part of your bill to hourly-style charges regardless of actual traffic. Both should be reviewed independently.
Does lowering memory allocation always reduce Lambda costs?
Not necessarily. For compute-bound functions, reducing memory can increase execution duration enough that the total cost (duration × rate) goes up even though the per-millisecond rate is lower. Each function needs to be benchmarked rather than assumed.
