Skip to content
ENExplore Calculators

Lambda Cost Calculator

Price an AWS Lambda function from memory, duration and invocations in GB-seconds, including the free tier and Arm savings.

About Lambda Cost Calculator

Lambda charges two separate meters: a flat fee per request and a compute fee for the memory you reserved multiplied by the milliseconds you ran. Because memory is reserved rather than measured, a function set to 1024 MB pays for 1 GB even if it touches 90 MB of heap. The defaults here are US East list prices — confirm the current per-GB-second and per-request rate on the AWS Lambda pricing page for your region before you commit to a budget. Compute normally dominates a Lambda bill, so the single most valuable thing you can know is your monthly GB-second total: it tells you whether to tune memory, tune duration, or stop worrying about the invocation count.

Formulas

Lambda Cost

GB-seconds = (memory MB ÷ 1024) × (duration ms ÷ 1000) × invocations; cost = billable GB-seconds × GB-second price × architecture factor + billable requests ÷ 1 M × request price.

GB-seconds
Memory-time product Lambda actually bills, at 1 ms granularity
architecture factor
1.0 for x86_64, about 0.8 for arm64 Graviton2
free tier
1 M requests and 400,000 GB-seconds deducted each month

Free-tier deduction

billable GB-seconds = max(0, GB-seconds − 400,000); billable requests = max(0, invocations − 1,000,000).

Worked example

With the default values below, Lambda Cost Calculator returns Estimated Monthly Cost of $2.47. Change any input above and every figure here is recalculated in your browser.

Inputs used

Invocations per monthminimum 0 requests
5,000,000 requests
Memory configuredaccepts 128–10,240 MB
512 MB
Average billed durationaccepts 1–900,000 ms
200 ms
Processor architectureone of x86_64 — standard rate, arm64 / Graviton2 — about 20% cheaper
x86_64 — standard rate
Ephemeral /tmp storageaccepts 512–10,240 MB
512 MB
Price per GB-secondminimum 0 USD
0.000017 USD
Price per million requestsminimum 0 USD
0.2 USD
Price per GB-second of /tmpminimum 0 USD
0 USD
Apply the perpetual free tier
Yes

Results

Estimated Monthly Cost
$2.47
Compute (GB-second) Cost
$1.67
Request Cost
$0.80
Ephemeral Storage Cost
$0.00
GB-seconds Consumed
500,000 GB-s
Cost per Million Invocations
$0.49

Step by step

  1. 1Values used
  2. 2Lambda Cost
  3. 3Free-tier deduction
  4. 4Estimated Monthly Cost= 2.47
  5. 5Compute (GB-second) Cost= 1.67
  6. 6Request Cost= 0.80
  7. 7Ephemeral Storage Cost= 0.00
  8. 8GB-seconds Consumed= 500,000 GB-s
  9. 9Cost per Million Invocations= 0.49

Assumptions and limits

  • The result is derived only from the 9 inputs listed above. Anything not among them is not part of the calculation.
  • In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
  • Figures are rounded for display to 2 decimal places, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.

How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.

Frequently Asked Questions

How is Lambda Cost calculated?

GB-seconds = (memory MB ÷ 1024) × (duration ms ÷ 1000) × invocations; cost = billable GB-seconds × GB-second price × architecture factor + billable requests ÷ 1 M × request price. Lambda charges two separate meters: a flat fee per request and a compute fee for the memory you reserved multiplied by the milliseconds you ran. Because memory is reserved rather than measured, a function set to 1024 MB pays for 1 GB even if it touches 90 MB of heap. The defaults here are US East list prices — confirm the current per-GB-second and per-request rate on the AWS Lambda pricing page for your region before you commit to a budget.

Why does Lambda Cost matter?

Compute normally dominates a Lambda bill, so the single most valuable thing you can know is your monthly GB-second total: it tells you whether to tune memory, tune duration, or stop worrying about the invocation count.

What values do I need to enter?

This calculator takes 9 inputs: Invocations per month, Memory configured, Average billed duration, Processor architecture, Ephemeral /tmp storage, Price per GB-second, Price per million requests, Price per GB-second of /tmp, Apply the perpetual free tier. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.

Why is my bill higher than this estimate?

The usual extras are data transfer out, the API Gateway or ALB in front of the function, CloudWatch Logs ingestion for whatever the function prints, and provisioned concurrency sitting idle. Lambda compute is often less than half the true cost of a serverless request path.

Does the free tier still apply if I use provisioned concurrency?

The 400,000 GB-second and 1 M request free tier applies to on-demand invocations. Provisioned concurrency is billed on its own meter for every second the capacity is configured, whether or not a request arrives, and is not covered by the free tier.

Lambda Cost Calculator – Calculate Estimated Monthly Cost