AI Calculator Pro

AWS Lambda Cost Calculator

Estimate AWS Lambda compute and request cost.

Quick answer

With the default inputs, $1.87/month — 1,000,000 invocations. Enter your own numbers below to recompute instantly; the full step-by-step math is shown under the worked example.

Results update automatically as you type.

Result
$1.87/month
1,000,000 invocations
  • Region-agnostic estimate; free tier not applied.
GB-seconds
100,000
Compute cost
$1.67
Request cost
$0.2000
Total / month
$1.87

Estimate the monthly cost of an AWS Lambda function from invocations, memory and duration. Useful for the serverless glue around AI features.

How this is calculated

Monthly cost = invocations × per-request price + invocations × GB-seconds × compute price, where GB-seconds = (memory in GB) × (duration in seconds). It's region-agnostic and doesn't apply the free tier.

Is this a good result? What to do next

Lambda is cheap for the serverless glue around AI features — usually cents to a few dollars. Memory is the lever people miss: you pay memory × duration, so over-provisioning memory raises every invocation's cost.

Typical planning ranges

Priced on
requests + GB-seconds
Free tier
not applied here
Steady high load
Provisioned/Savings Plans can be cheaper

Ranges are typical planning figures to sanity-check your result, not authoritative benchmarks. Your numbers will vary with use case, volume, and vendor.

How to improve this number

  • Right-size memory; measure duration at each setting.
  • Shorten cold starts and execution time.
  • Consider ARM/Graviton for lower per-GB-second cost.

Common mistakes

  • Assuming more memory is free — it multiplies cost.
  • Ignoring request cost at very high invocation counts.

When to use a different approach

To include the LLM call, use the Lambda + LLM cost calculator. For the CDN, use the CloudFront cost calculator.

Worked example (defaults)

With the default inputs above, here is the result:

Result
$1.87/month
1,000,000 invocations
  • Region-agnostic estimate; free tier not applied.
GB-seconds
100,000
Compute cost
$1.67
Request cost
$0.2000
Total / month
$1.87

Sources & references

Frequently asked questions

How is Lambda priced?+

You pay per request plus GB-seconds of compute (memory x duration). This estimate is region-agnostic and does not apply the free tier.

Related calculators