Loading...


Updated 16 Oct 2026 • 7 mins read

This free AWS Lambda cost calculator prices a function's monthly requests and GB-seconds at current US rates, with the free tier, volume tiers, Arm, provisioned concurrency, API Gateway, and CloudWatch Logs applied the way AWS bills them. The page explains Lambda pricing, works an example, and shows how to see the spend actually billed.
Lambda is the cheapest compute on AWS per unit of work and one of the most reliably surprising at scale, for a reason that is baked into its pricing: it bills per request and per GB-second, and a function that costs a fraction of a cent to run once costs a real number when it runs ten million times, sits behind an API Gateway that bills per request too, writes a kilobyte of logs on every call, and reaches the internet through a NAT Gateway nobody included in the estimate. The arithmetic is simple; the surprise is in the lines nobody multiplied.
The calculator below does the multiplication for a Lambda function the way AWS bills it: requests, GB-seconds with the permanent free tier and volume tiers applied, x86 or Arm, provisioned concurrency, ephemeral storage, and the two charges most often left out, API Gateway and CloudWatch Logs. The page around it explains the pricing model, works an example, and is honest about what a list-price estimate cannot see, which is where the real bill comes from. Rates are from the official Lambda pricing page for US regions as of October 2026.
Two meters run on every function, and several more run around it.
| Line | US rate (October 2026) | How it is measured |
|---|---|---|
| Requests | $0.20 per million | Every invocation, including failures and retries |
| Duration, x86 | $0.0000166667 per GB-second, tiered down above 6B GB-s a month | Memory allocated (GB) times execution time, billed per millisecond |
| Duration, Arm (Graviton) | $0.0000133334 per GB-second, about 20% less | Same measurement; most runtimes run on Arm unchanged |
| Free tier | 1 million requests and 400,000 GB-seconds a month | Permanent; does not expire after 12 months |
| Provisioned concurrency | About $0.0000041667 per GB-second kept warm, plus a reduced duration rate | Bills whether or not requests arrive |
| Ephemeral storage above 512 MB | $0.0000000309 per GB-second | Only the storage above the included 512 MB |
| API Gateway | HTTP API $1.00 per million; REST API $3.50 per million | Per request to the API, separate from Lambda |
| CloudWatch Logs | $0.50 per GB ingested, plus storage | Every log line the function writes |
| Data transfer out | $0.09 per GB after 100 GB free | Responses and calls leaving AWS |
| NAT Gateway (functions in a VPC) | About $32 a month plus $0.045 per GB | Required for internet access from private subnets |
Two details change estimates more than any other. Memory and duration multiply: doubling memory doubles the GB-second cost even if runtime stays the same, so a function left at 1,024 MB that needs 256 is paying four times what it should on its largest line. And since August 2025 the initialization phase of a cold start is billed as duration, so functions with heavy runtimes and infrequent traffic pay for warm-up time that the visible execution does not show.
An API handles 10 million requests a month, each running 200 ms at 512 MB on x86, fronted by an HTTP API, writing about a kilobyte of logs per call. The calculator's defaults are this example.
Duration is 10 million times 0.2 seconds times 0.5 GB, 1 million GB-seconds; after the 400,000 free, 600,000 bill at $0.0000166667, about $10. Requests: 9 million billable at $0.20 per million, $1.80. Lambda itself: about $12. The HTTP API adds $10, and 10 GB of logs adds $5. Total: about $27 a month, of which Lambda compute is under half. Switch the function to Arm and the duration line falls to $8; trim memory to 256 MB if the function allows and it halves again. The function is cheap; the surprise, if there is one, is that the gateway and the logs cost more than the compute, which is the normal pattern and the reason the calculator shows the share.
Change the shape and the picture changes fast. The same API at 1 second and 1,024 MB consumes 10 million GB-seconds, about $160 of duration, and a scheduled job that runs 50,000 times a month for 10 minutes at 2 GB consumes 60 million GB-seconds, about $1,000, from a function nobody thought of as expensive because each run is pennies.
A list-price estimate is a floor. The gap between the floor and the invoice comes from things that exist only in a live account.
These are the serverless versions of the waste that hides in small per-unit charges across every cloud, and the reason our guide to cloud pricing models treats serverless as a different shape of bill rather than a discount: it charges exactly for what runs, which is a bargain when little runs and a surprise when a lot does.
The button under the calculator result exists because the estimate and the bill are different documents. Opslyft reads Lambda cost from your actual AWS bill and shows it in Explorer by function, team, and feature, in the same view as the API Gateway, CloudWatch Logs, NAT Gateway, and data-transfer charges the same workload incurs, so a serverless feature's real cost is one number rather than five lines on different pages of the invoice, tracked over time with a spike visible before month end. Monitor catches the function whose invocations tripled or whose duration doubled after a deploy, with the change behind it, and routes it to the owning team; Dimension Studio allocates serverless spend to teams and products without every function needing a tag; and Tickets turns the fix, a memory setting, a retry policy, a runtime switched to Arm, into an assigned item with the saving measured. The estimate tells you what the function should cost; connecting the account tells you what it does.
For how Lambda fits the wider AWS bill and the tools for estimating it, see our guides to the AWS Pricing Calculator and understanding AWS pricing across EC2, S3, EBS, and RDS; for the general discipline, our AWS cost optimization guide.
Lambda bills two things per function: requests, at $0.20 per million, and duration, measured in GB-seconds (memory allocated in GB multiplied by execution time in seconds) at $0.0000166667 per GB-second on x86 and $0.0000133334 on Arm, billed per millisecond. Every account gets 1 million requests and 400,000 GB-seconds free each month, permanently. Provisioned concurrency, ephemeral storage above 512 MB, and the API Gateway, CloudWatch Logs, and data transfer around the function bill separately.
It depends on duration and memory. One million invocations at 200 ms and 512 MB consume 100,000 GB-seconds, about $1.67 in duration plus $0.20 in requests, roughly $1.87 per million before the free tier. At 1 second and 1,024 MB the same million invocations cost about $16.87. The calculator above shows the figure for your shape, including API Gateway and logging.
Yes. The 1 million requests and 400,000 GB-seconds a month are part of AWS's always-free tier and do not expire after 12 months, unlike the EC2 free tier. For small functions this covers real production use; a function at 128 MB running 100 ms can execute about 3.2 million times a month within the duration allowance.
Yes, by 20 percent on duration. Arm (Graviton) functions bill $0.0000133334 per GB-second against $0.0000166667 on x86, and most runtimes run on Arm unchanged. Requests cost the same on both. For a duration-heavy function the switch is a straightforward 20 percent saving on the largest line.
Provisioned concurrency keeps execution environments warm to avoid cold starts and bills for that warmth whether or not requests arrive: about $0.0000041667 per GB-second kept provisioned on x86, plus a reduced duration rate of about $0.0000097222 per GB-second for requests served on it. Keeping 2 GB warm around the clock costs about $22 a month before any invocation, so it suits latency-sensitive functions with steady traffic, not everything.
Usually because of what sits around the function rather than the function itself. API Gateway bills per request, CloudWatch Logs bills per GB ingested and stored, a function in a VPC that reaches the internet needs a NAT Gateway at about $32 a month plus per-GB fees, retries bill every attempt, and since August 2025 cold-start initialization time is billed as duration. The calculator models the first two; the rest show up only in your actual bill.
Opslyft reads Lambda cost from your AWS bill and shows it in Explorer by function, team, and feature, alongside the API Gateway, CloudWatch, and data-transfer charges the same workload incurs, so the real cost of a serverless feature is one number. Monitor detects a function whose invocations or duration spiked with the change behind it, and Dimension Studio allocates serverless spend to teams and products without every function needing a tag.