AWS Lambda Pricing Guide: What You Actually Pay in 2026

AWS Lambda Pricing Guide: What You Actually Pay in 2026

This AWS Lambda pricing guide explains exactly what you pay for Amazon’s serverless functions — and what you do not. How much does Lambda cost?

For small workloads, nothing: the free tier covers 1 million requests and 400,000 GB-seconds a month. Beyond that, you pay $0.20 per million requests plus a duration charge per GB-second, so a typical small API costs a few dollars a month while a busy service can run into hundreds.

Lambda pricing looks simple on the surface, and the two headline rates are simple. The surprises hide in the details: duration is billed on allocated memory, waiting time counts, and the services around your function — API Gateway, data transfer, logging — bill separately. This guide works through the rates, the free tier, worked examples and the traps, so you can model a real bill before you build.

Key takeaways

  • Lambda bills per request ($0.20 per million) and per GB-second of duration ($0.0000166667 on x86, $0.0000133334 on Arm).
  • The free tier covers 1 million requests and 400,000 GB-seconds every month, plus 100 GiB of response streaming, and it does not expire.
  • Duration is charged on allocated memory multiplied by run time, including time spent waiting on other services.
  • Data transfer, API Gateway, storage and logging bill separately and often exceed the Lambda charge itself.
  • Right-sizing memory, cutting idle waiting and setting billing alarms are the highest-impact cost controls.

How Lambda pricing works: the two meters

Lambda has two billing meters, and every invocation touches both. The request meter charges $0.20 per million invocations, and every invocation counts — successful, failed or retried.

The duration meter charges for compute time in GB-seconds: the memory you allocated, in gigabytes, multiplied by the time your function runs, rounded up to the nearest millisecond. On x86 the rate is $0.0000166667 per GB-second; on Arm, using Graviton processors, it is $0.0000133334, roughly 20 per cent less.

The GB-second is the unit that trips people up, because memory and time multiply. A function with 512 MB of memory running for 200 milliseconds uses 0.1 GB-seconds per invocation. The same code with 1 GB of memory uses 0.2 GB-seconds, and with 3 GB it uses 0.6.

Doubling memory doubles the duration charge for the same run time — but it also buys more CPU, so the function may finish faster. The cheapest memory setting is rarely the lowest one, and the only way to find it is to test.

Rates vary by region, and the figures in this guide are the US East rates published on the AWS pricing page. Prices change, so treat every number here as a starting point and confirm the current rates on the official AWS Lambda pricing page before you budget. The structure — requests plus GB-seconds, minus the free tier — has been stable for years, even as individual rates move.

The free tier: what you actually get

Every AWS account gets a Lambda free tier that, unusually for AWS, never expires. Each month you receive 1 million free requests, 400,000 free GB-seconds of compute, and 100 GiB of HTTP response streaming.

The allowance is shared across all your functions and across both x86 and Arm architectures, and it resets each calendar month. Our guide to the AWS free tier explains how it compares with the time-limited free tiers on other services.

The free tier is generous enough to cover many small services outright. A function with 512 MB of memory running for 200 milliseconds per request uses 0.1 GB-seconds each, so 1 million requests consume 100,000 GB-seconds — a quarter of the allowance — and the bill is zero. Even a service handling a few hundred thousand requests a month with modest memory usually stays inside the free tier entirely.

There are two exceptions worth knowing. The free tier does not apply to Provisioned Concurrency, which keeps functions warm for a fixed hourly charge and is billed from the first GB-second. And the free tier covers Lambda only: the API Gateway, databases, queues and storage your functions use all bill separately, and those charges can appear even when Lambda itself costs nothing.

Worked examples: what Lambda costs at real volumes

Worked examples make the maths concrete. All three examples below use US East rates, x86 architecture, and the standard free tier. They assume a function with 512 MB of memory and an average run time of 200 milliseconds, a common profile for an API endpoint.

Monthly Lambda cost at three traffic levels (512 MB, 200 ms, x86, after free tier)
Monthly requests Billable request charge Billable duration charge Total per month
1 million $0.00 $0.00 $0.00
5 million $0.80 $1.67 $2.47
50 million $9.80 $76.67 $86.47

The pattern is clear. At 1 million requests the free tier absorbs everything and the bill is zero.

At 5 million requests you pay $2.47 a month — the cost of a coffee — for half a million GB-seconds of compute. At 50 million requests the bill reaches $86.47, and the free tier, worth $6.87, has become a rounding error.

Memory changes the picture sharply. Raise the same function to 3 GB of memory and each invocation uses 0.6 GB-seconds instead of 0.1, so the 50-million-request bill rises from $86.47 to roughly $500 a month.

That is why memory tuning matters more than any other single decision: it is the multiplier on every invocation you will ever run. Test each memory setting with real traffic, measure both duration and cost, and pick the setting where the total bill is lowest.

Abstract illustration of a monthly cloud bill broken into small per-request and compute charges
Lambda bills in tiny units — requests and GB-seconds — but those units multiply fast at high volume, so model the total before launch.

The charges beyond Lambda itself

The Lambda bill is often the smallest line on an AWS invoice, because the services around a function bill separately. API Gateway, the usual front door for a Lambda API, charges per million requests plus data transfer.

Data leaving AWS to the internet is billed at EC2 data transfer rates, and it applies to responses as well as to files served from S3. CloudWatch Logs charges for ingestion and storage, and a chatty function logging every request can generate a logging bill larger than its compute bill.

Storage and databases add more. A function that reads from DynamoDB or RDS pays for those services on their own pricing, and a function that writes files to S3 pays for storage and requests there. None of this is hidden — each service has its own pricing page — but newcomers often model only the Lambda charge and are surprised by the total.

When you estimate a workload, list every service the function touches and price each one. Our guide to AWS pricing explains how the wider billing model fits together.

Arm vs x86: the 20 per cent question

AWS offers Lambda functions on two processor architectures: x86 and Arm, the latter using Graviton processors. The Arm duration rate, $0.0000133334 per GB-second, is about 20 per cent lower than the x86 rate of $0.0000166667, while the request rate of $0.20 per million is the same on both. Switching architectures is a configuration change, and most code written in Python, Node.js, Java or Go runs on Arm without modification, though native dependencies compiled for x86 need rebuilding.

The saving is real but modest next to memory tuning, and it comes with a caveat: performance per GB-second is not identical between architectures, so a function may run slightly faster or slower on Arm. Measure both before switching a production workload. For a new function with no native dependencies, starting on Arm is the sensible default; for an existing function, test the switch in staging and compare both duration and cost.

How to keep your Lambda bill under control

Cost control on Lambda is mostly about three levers: memory, waiting time and volume. Memory is the multiplier, so right-size it with tests rather than guesses.

Waiting time is billed, so a function that waits two seconds on a slow database pays for those two seconds — speed up the downstream call or move the work to an asynchronous pattern. Volume is the total, so a retry storm or an unauthenticated public endpoint can multiply invocations without warning.

Beyond the levers, a few habits protect you. Set a billing alarm in AWS Budgets before launch, and a second alarm at a higher threshold so a runaway workload pages you instead of surprising you.

Keep functions small and dependencies lean, because package size affects cold starts and cold starts affect duration. Use the free tier consciously: it resets monthly, so a development environment and a production environment share the same allowance.

Cost-control checklist

  • Test three memory sizes. Measure duration and cost at 128 MB, 512 MB and 1,024 MB, and pick the cheapest total, not the lowest memory.
  • Try Arm before you scale. The 20 per cent duration saving is free money for code without native x86 dependencies.
  • Cut waiting time. Every millisecond spent waiting on a database or API is billed; cache, parallelise or go asynchronous.
  • Trim logging. Log errors and key events, not every request, and set retention limits on log groups.
  • Set billing alarms. Create an AWS Budgets alarm at your expected spend and another at double that figure.
  • Cap concurrency where it makes sense. A reserved concurrency limit stops a retry storm from scaling without bound.
  • Watch data transfer. Keep responses small, compress where possible, and serve large files from S3 or a CDN.
  • Review monthly with Cost Explorer. Tag functions by team or project so the bill can be split and questioned.

Frequently asked questions

Is AWS Lambda free?

Within limits, yes. Every account gets 1 million requests and 400,000 GB-seconds free each month, plus 100 GiB of response streaming, and the allowance does not expire. Usage beyond that is billed at the standard rates.

What is a GB-second?

A GB-second is one gigabyte of allocated memory held for one second. A function with 512 MB of memory running for 200 milliseconds uses 0.1 GB-seconds per invocation.

Why did my Lambda bill jump suddenly?

The usual causes are a traffic spike, a retry loop multiplying invocations, a memory increase, or a slow downstream service inflating duration. Check CloudWatch metrics for invocation count and duration first.

Is Arm cheaper than x86 on Lambda?

Yes, the Arm duration rate is about 20 per cent lower than x86, while the request rate is the same. Test performance on both, since run time can differ slightly between architectures.

Does the free tier cover Provisioned Concurrency?

No. Provisioned Concurrency is billed from the first GB-second at an hourly rate, with no free allowance, so budget for it separately.

How do I estimate my Lambda cost before building?

Multiply expected monthly invocations by average duration and memory to get GB-seconds, subtract the 400,000 free GB-seconds and 1 million free requests, then apply $0.20 per million requests and $0.0000166667 per GB-second on x86. Always confirm current rates on the official AWS pricing page.

Latest articles

Scroll to Top