AWS Lambda Pricing

Lambda bills each request and each GB-second a function runs: its memory setting times how long it ran. In us-east-1, x86 is $16.6667 per million GB-seconds and $0.20 per million requests. Graviton is about 20% cheaper on duration, and the rate steps down once a month's duration passes 6 billion GB-seconds.

Estimate a Lambda bill

One function's month, priced for the region you pick
Presets:

Function estimator

req
ms
MB
MB

Provisioned concurrency

envs
hrs
Estimated monthly Lambda cost—Per million requests: —
x86—
Arm (Graviton)—
Cost Composition
Duration Requests Provisioned Storage
Requests—
Duration—
FinOps Insight

GB-seconds are memory in GB (1 GB = 1,024 MB) times billed duration. The duration tiers count every on-demand function in the account, per region and architecture, and the free tier is shared across the whole account, so one function's estimate lands in the first tier unless you enter the account's total. With provisioned concurrency, invocations are assumed to fill the provisioned environments before any run on demand. The offer is on-demand only: Compute Savings Plans can discount duration and provisioned concurrency, and are not shown. Data transfer, logging and the services a function calls are billed separately.

Duration price tiers

On-demand duration, for US East (N. Virginia)
ArchitectureMonthly durationPer million GB-secondsPer GB-second
x86First 6 billion GB-seconds a month$16.6667$0.0000166667
6 billion to 15 billion GB-seconds a month$15.0000$0.000015
Over 15 billion GB-seconds a month$13.3334$0.0000133334
Arm (Graviton)First 7.5 billion GB-seconds a month$13.3334$0.0000133334
7.5 billion to 18.75 billion GB-seconds a month$12.0001$0.0000120001
Over 18.75 billion GB-seconds a month$10.6667$0.0000106667

Each tier's rate applies only to the GB-seconds inside it, so passing a threshold lowers the price of what comes after, not of the whole month. The thresholds count every on-demand function in the account, in one region, on one architecture. Arm's tiers start later, at 7.5 billion GB-seconds against 6 billion on x86. Provisioned concurrency is not tiered.

Lambda rates by region

36 regions. Duration and provisioned concurrency are first-tier rates.
Regionx86 per 1M GB‑sArm per 1M GB‑sPer 1M requestsProvisioned concurrency x86 per 1M GB‑sEphemeral storage per 1M GB‑s10M requests, 120 ms, 512 MB / mo (x86)
us-east-1
US East (N. Virginia)
$16.6667$13.3334$0.20$4.1667$0.0309$12.00
us-east-2
US East (Ohio)
$16.6667$13.3334$0.20$4.1667$0.0309$12.00
us-west-2
US West (Oregon)
$16.6667$13.3334$0.20$4.1667$0.0309$12.00
us-west-1
US West (N. California)
$16.6667$13.3334$0.20$4.9041$0.0370$12.00
ca-central-1
Canada (Central)
$16.6667$13.3334$0.20$4.6460$0.0340$12.00
ca-west-1
Canada West (Calgary)
$16.6667$13.3334$0.20$4.6460$0.0340$12.00
eu-west-1
EU (Ireland)
$16.6667$13.3334$0.20$4.6460$0.0340$12.00
eu-central-1
EU (Frankfurt)
$16.6667$13.3334$0.20$5.0147$0.0367$12.00
eu-west-2
EU (London)
$16.6667$13.3334$0.20$4.8304$0.0358$12.00
eu-west-3
EU (Paris)
$16.6667$13.3334$0.20$4.8673$0.0358$12.00
eu-north-1
EU (Stockholm)
$16.6667$13.3334$0.20$4.4248$0.0323$12.00
eu-south-1
EU (Milan)
$19.5172$15.6138$0.23$4.8783$0.0357$14.01
eu-south-2
Europe (Spain)
$16.6667$13.3334$0.20$4.6460$0.0340$12.00
eu-central-2
Europe (Zurich)
$18.3334$14.6667$0.22$5.5162$0.0441$13.20
ap-northeast-1
Asia Pacific (Tokyo)
$16.6667$13.3334$0.20$5.3835$0.0370$12.00
ap-northeast-2
Asia Pacific (Seoul)
$16.6667$13.3334$0.20$5.1254$0.0352$12.00
ap-northeast-3
Asia Pacific (Osaka)
$16.6667$13.3334$0.20$5.3835$0.0370$12.00
ap-southeast-1
Asia Pacific (Singapore)
$16.6667$13.3334$0.20$5.1991$0.0370$12.00
ap-southeast-2
Asia Pacific (Sydney)
$16.6667$13.3334$0.20$5.2360$0.0370$12.00
ap-southeast-3
Asia Pacific (Jakarta)
$16.6667$13.3334$0.20$5.1991$0.0370$12.00
ap-southeast-4
Asia Pacific (Melbourne)
$16.6667$13.3334$0.20$5.2360$0.0370$12.00
ap-southeast-5
Asia Pacific (Malaysia)
$15.0000$12.0000$0.18$4.6791$0.0333$10.80
ap-southeast-6
Asia Pacific (New Zealand)
$17.5000$14.0001$0.21$5.4978$0.0389$12.60
ap-southeast-7
Asia Pacific (Thailand)
$15.0000$12.0000$0.18$4.6791$0.0333$10.80
ap-east-1
Asia Pacific (Hong Kong)
$22.9200$18.3000$0.28$5.7153$0.0407$16.55
ap-east-2
Asia Pacific (Taipei)
$15.0000$12.0000$0.18$4.8451$0.0333$10.80
ap-south-1
Asia Pacific (Mumbai)
$16.6667$13.3334$0.20$4.4985$0.0352$12.00
ap-south-2
Asia Pacific (Hyderabad)
$16.6667$13.3334$0.20$4.4985$0.0352$12.00
sa-east-1
South America (Sao Paulo)
$16.6667$13.3334$0.20$6.6372$0.0586$12.00
mx-central-1
Mexico (Central)
$17.5000$14.0000$0.21$4.3750$0.0324$12.60
me-central-1
Middle East (UAE)
$20.6667$16.5334$0.25$5.1108$0.0374$14.90
me-south-1
Middle East (Bahrain)
$20.6667$16.5334$0.25$5.1108$0.0374$14.90
il-central-1
Israel (Tel Aviv)
$17.5000$14.0001$0.21$4.8783$0.0408$12.60
af-south-1
Africa (Cape Town)
$22.1000$17.6800$0.27$5.5300$0.0404$15.96
us-gov-east-1
AWS GovCloud (US-East)
$16.6667$13.3334$0.20$5.2729$0.0370$12.00
us-gov-west-1
AWS GovCloud (US-West)
$16.6667$13.3334$0.20$5.2729$0.0370$12.00

Other Lambda charges

Features billed on their own meters, for US East (N. Virginia)
FeatureMeterUnitRate
SnapStartSnapshot cacheper GB-second cached$0.0000015046
Snapshot restoreper GB restored$0.0001397998
Response streamingProcessed bytes, x86per GB$0.0080
Processed bytes, Armper GB$0.0080
Event pollersEvent poller unitper poller unit-hour$0.1850
SQS event poller unitper poller unit-hour$0.00925
Tenant isolationIsolated environment memory, x86per GB$0.000166667
Isolated environment memory, Armper GB$0.000133333
Durable executionOperationsper 1M operations$8.00
Data writtenper GB$0.2500
Data storedper GB-month$0.1500
Lambda@EdgeRequestsper 1M requests$0.60
Durationper 1M GB-seconds$50.0100
MicroVMvCPU, x86per vCPU-second$0.0000326557
vCPU, Armper vCPU-second$0.0000276944
Memory, x86per 1M GB-seconds$4.3235
Memory, Armper 1M GB-seconds$3.6667
Snapshot writeper GB$0.0037977138
Snapshot readper GB$0.0015467699
Snapshot storageper GB-hour$0.0001111111
Lambda Web (Arm only)Requestsper 1M requests$0.30
vCPUper vCPU-second$0.0000276944
Memoryper 1M GB-seconds$3.6667

Units are as AWS publishes them. Not every feature is sold in every region; the table follows the region selected in the estimator. The free tier includes 100 GB of response streaming a month, per account.

Lambda Managed Instances fee by instance type

517 instance types in 30 regions. The fee is charged on top of the EC2 price, not instead of it, and requests are $0.20 per million.
Showing 1–50 of 517 instance types
Page 1 of 11
Instance typeCategoryvCPUMemoryEC2 LinuxManagement feeFee vs EC2Total
m6g.largeGeneral Purpose28 GiB$0.0770 /hr$0.01155 /hr15%$0.08855 /hr
m7g.largeGeneral Purpose28 GiB$0.0816 /hr$0.01224 /hr15%$0.09384 /hr
m5a.largeGeneral Purpose28 GiB$0.0860 /hr$0.0129 /hr15%$0.0989 /hr
m6a.largeGeneral Purpose28 GiB$0.0864 /hr$0.01296 /hr15%$0.09936 /hr
m8g.largeGeneral Purpose28 GiB$0.08976 /hr$0.01347 /hr15%$0.10323 /hr
m6gd.largeGeneral Purpose28 GiB$0.0904 /hr$0.01356 /hr15%$0.10396 /hr
m5.largeGeneral Purpose28 GiB$0.0960 /hr$0.0144 /hr15%$0.1104 /hr
m6i.largeGeneral Purpose28 GiB$0.0960 /hr$0.0144 /hr15%$0.1104 /hr
m9g.largeGeneral Purpose28 GiB$0.09784 /hr$0.014676 /hr15%$0.112516 /hr
m7i.largeGeneral Purpose28 GiB$0.1008 /hr$0.01512 /hr15%$0.11592 /hr
r6g.largeMemory Optimized216 GiB$0.1008 /hr$0.01512 /hr15%$0.11592 /hr
m5ad.largeGeneral Purpose28 GiB$0.1030 /hr$0.01545 /hr15%$0.11845 /hr
m7gd.largeGeneral Purpose28 GiB$0.1068 /hr$0.01602 /hr15%$0.12282 /hr
r7g.largeMemory Optimized216 GiB$0.1071 /hr$0.016065 /hr15%$0.123165 /hr
m5d.largeGeneral Purpose28 GiB$0.1130 /hr$0.01695 /hr15%$0.12995 /hr
r5a.largeMemory Optimized216 GiB$0.1130 /hr$0.01695 /hr15%$0.12995 /hr
r6a.largeMemory Optimized216 GiB$0.1134 /hr$0.01701 /hr15%$0.13041 /hr
r6gd.largeMemory Optimized216 GiB$0.1152 /hr$0.01728 /hr15%$0.13248 /hr
m8gd.largeGeneral Purpose28 GiB$0.11532 /hr$0.017295 /hr15%$0.132615 /hr
m7a.largeGeneral Purpose28 GiB$0.11592 /hr$0.017385 /hr15%$0.133305 /hr
r8g.largeMemory Optimized216 GiB$0.11782 /hr$0.01767 /hr15%$0.13549 /hr
m6id.largeGeneral Purpose28 GiB$0.11865 /hr$0.017805 /hr15%$0.136455 /hr
m5n.largeGeneral Purpose28 GiB$0.1190 /hr$0.01785 /hr15%$0.13685 /hr
m9gd.largeGeneral Purpose28 GiB$0.1257 /hr$0.018855 /hr15%$0.144555 /hr
r5.largeMemory Optimized216 GiB$0.1260 /hr$0.0189 /hr15%$0.1449 /hr
r6i.largeMemory Optimized216 GiB$0.1260 /hr$0.0189 /hr15%$0.1449 /hr
r5ad.largeMemory Optimized216 GiB$0.1310 /hr$0.01965 /hr15%$0.15065 /hr
r7i.largeMemory Optimized216 GiB$0.1323 /hr$0.019845 /hr15%$0.152145 /hr
c6g.xlargeCompute Optimized48 GiB$0.1360 /hr$0.0204 /hr15%$0.1564 /hr
m5dn.largeGeneral Purpose28 GiB$0.1360 /hr$0.0204 /hr15%$0.1564 /hr
r7gd.largeMemory Optimized216 GiB$0.1361 /hr$0.020415 /hr15%$0.156515 /hr
m6in.largeGeneral Purpose28 GiB$0.13923 /hr$0.02088 /hr15%$0.16011 /hr
r5d.largeMemory Optimized216 GiB$0.1440 /hr$0.0216 /hr15%$0.1656 /hr
c7g.xlargeCompute Optimized48 GiB$0.1450 /hr$0.02175 /hr15%$0.16675 /hr
r8gd.largeMemory Optimized216 GiB$0.14696 /hr$0.02205 /hr15%$0.16901 /hr
r5b.largeMemory Optimized216 GiB$0.1490 /hr$0.02235 /hr15%$0.17135 /hr
r5n.largeMemory Optimized216 GiB$0.1490 /hr$0.02235 /hr15%$0.17135 /hr
r6id.largeMemory Optimized216 GiB$0.1512 /hr$0.02268 /hr15%$0.17388 /hr
r7a.largeMemory Optimized216 GiB$0.15215 /hr$0.02283 /hr15%$0.17498 /hr
c6a.xlargeCompute Optimized48 GiB$0.1530 /hr$0.02295 /hr15%$0.17595 /hr
c6gd.xlargeCompute Optimized48 GiB$0.1536 /hr$0.02304 /hr15%$0.17664 /hr
c5a.xlargeCompute Optimized48 GiB$0.1540 /hr$0.0231 /hr15%$0.1771 /hr
m6g.xlargeGeneral Purpose416 GiB$0.1540 /hr$0.0231 /hr15%$0.1771 /hr
m6idn.largeGeneral Purpose28 GiB$0.15912 /hr$0.023865 /hr15%$0.182985 /hr
c8g.xlargeCompute Optimized48 GiB$0.15952 /hr$0.023925 /hr15%$0.183445 /hr
m7g.xlargeGeneral Purpose416 GiB$0.1632 /hr$0.02448 /hr15%$0.18768 /hr
m5zn.largeGeneral Purpose28 GiB$0.1652 /hr$0.02478 /hr15%$0.18998 /hr
r5dn.largeMemory Optimized216 GiB$0.1670 /hr$0.02505 /hr15%$0.19205 /hr
c5.xlargeCompute Optimized48 GiB$0.1700 /hr$0.0255 /hr15%$0.1955 /hr
c6i.xlargeCompute Optimized48 GiB$0.1700 /hr$0.0255 /hr15%$0.1955 /hr

Managed Instances runs functions on EC2 instances of the type you choose. Fee vs EC2 is the management fee divided by the EC2 Linux on-demand price in the same region; the median is about 15%. Every fee shown is AWS's published rate, not a calculation from EC2. A dash means we have no EC2 price to compare.

Alternatives to Lambda

OptionPrice vs LambdaWhy look at it
Lambda on Graviton (Arm)
-20%-$0.048/hr
4 GB busy for a full hour, us-east-1
Lower duration rate, same request rate. Code and dependencies must run on arm64.
AWS Fargate (2 vCPU, 4 GB task)
-59%-$0.141/hr
4 GB busy for a full hour vs one task-hour, us-east-1
Billed for the task while it runs, busy or idle. Suits work that keeps a container occupied.
EC2 (c6i.large)
-65%-$0.155/hr
4 GB busy for a full hour vs one 2 vCPU / 4 GiB instance-hour
Lowest hourly price for steady load. You run, patch and scale the instance.

These compare an hour of solid work. A 4 GB x86 function busy about 41% of the hour costs the same as the Fargate task; below that, Lambda is cheaper because idle time is free. Provisioned concurrency undercuts on-demand once its environments are more than about 60% busy.

What to know about AWS Lambda

Functions billed per request and per GB-second of run time, so an idle function costs nothing and a busy one costs more than the same work on a container.

Lambda charges for two things: each request, and each GB-second the function runs. A GB-second is the memory setting in GB times the billed duration in seconds. In us-east-1 that is $0.20 per million requests and $0.0000166667 per GB-second on x86. A 512 MB function that runs 120 ms, 10 million times a month, costs about $12.

Graviton (Arm) is the easy saving. Its duration rate is about 20% lower and requests cost the same, so most functions get cheaper by roughly a sixth from switching architecture, provided the code and its dependencies build for arm64.

Duration gets cheaper with volume, in tiers. Each tier’s rate covers only the GB-seconds inside it. The first step comes after 6 billion GB-seconds a month on x86, which is about $100,000 of duration in one region. That threshold counts every function in the account.

The free tier is 1 million requests and 400,000 GB-seconds a month, plus 100 GB of response streaming. Every function in the account shares it. The estimator’s default function, 10 million requests at 120 ms and 512 MB, uses all of it on its own. With more than one function in the account, assume it’s spent, which is why the estimator leaves it off.

Provisioned concurrency keeps environments warm. You pay a per-GB-second charge for every second they exist, then a lower duration rate for invocations that run on them. In us-east-1 x86 it beats on-demand only when the environments are busy more than about 60% of the time. Below that, you pay extra for faster start-ups. In AWS GovCloud (US-West) on x86 it never beats on-demand, because the warm charge is larger than the duration saving.

Lambda versus a container comes down to idle time. A 4 GB function that runs a full hour costs more than twice as much as a 2 vCPU, 4 GB Fargate task. The two break even when the function is busy about 41% of the hour. Below that, Lambda is cheaper, because idle time is free.

Managed Instances runs functions on EC2 instances you choose. You pay the EC2 price plus a management fee, which is a median of about 15% of the Linux on-demand price, and requests at the usual rate.

Not every meter is sold everywhere. Lambda@Edge is priced in 22 regions. In us-east-1 its requests cost $0.60 per million, three times the regular rate. The rates table on this page marks what each region lacks.

This page shows on-demand rates only. Compute Savings Plans can discount Lambda duration and provisioned concurrency, and are not in the price list we read.

Good for

  • Spiky or low-traffic work that sits idle most of the hour
  • Event handlers and glue code that run for milliseconds
  • Teams that want no instances or containers to manage

Watch for

  • A function busy most of the hour costs more than a Fargate task or an EC2 instance with the same memory
  • The free tier is per account, so it rarely covers anything in a shared work account
  • Volume discounts start at 6 billion GB-seconds a month, in one region, on one architecture
  • Provisioned concurrency only saves money when its environments are busy more than about 60% of the time
  • Ephemeral storage above the included 512 MB is billed per GB-second

More AWS container and compute pricing