Skip to content
Finitizer

Lambda Cost & Memory Tuning Calculator

Find the cheapest Lambda memory setting for your function, and the fastest setting that costs about the same.

AWSCalculator60 seconds
New here? See what this tool does and how to use it.

Learn more

Lambda Cost & Memory Tuning Calculator

What this free tool does for you

The memory you give a Lambda function sets both its speed and its price. Find the cheapest memory setting for your function, and the fastest one that costs about the same.

How to use it

  1. Pick a scenario, or enter your function's Invocations per month.
  2. Enter the Memory configured today, the Average duration at that memory and the Memory the function uses.
  3. Set How CPU-bound is it? 100% is pure computing; 0% is mostly waiting on other services.
  4. Choose the Architecture: x86_64 or arm64 (Graviton).
  5. Read the cheapest setting, then Cost across memory settings to compare them all.

Good to know

  • Where to find the numbers. The Monitor tab of your function in the Lambda console shows invocations and average duration.
  • More memory buys speed, not savings. When it appears, The latency you can have for free shows how much faster a setting runs at about the cheapest price.
  • Save or share. Use Copy link to this result to get a link with your numbers filled in.
Start from a scenario

Each one fills in the fields below for a typical workload of that kind. You can change any of them.

Cost at 512 MB$336.47/mo
Cheapest setting: 128 MB
$261.47/mo
Saving from moving there
$75.00/mo
Saving from Graviton
$65.33/mo
Cheapest at 128 MB
$75.00/mo saved
22.3% less than 512 MB. Predicted duration 2,480 ms against 800 ms today, cheaper, and slower. Only if the function fits in it: enter the memory it uses to check.

Cost across memory settings

128 MB
$261.47cheapest
256 MB
$286.47
512 MB
$336.47current
768 MB
$386.88
1024 MB
$436.47
1536 MB
$536.88
1769 MB
$583.30
2048 MB
$654.80
3008 MB
$886.83
4096 MB
$1,129.80
6144 MB
$1,568.14
8192 MB
$1,989.80
10240 MB
$2,403.14

Other levers

Switch to arm64
$65.33/mo
About 20% cheaper per GB-second. Recompile native dependencies first.
Request charges
$9.80/mo
50M invocations at 0.20 per million, after the 1.0M free. Memory tuning does not touch this.
Compute charges
$326.67/mo
20M GB-seconds, 400K of them free. This is the part tuning moves.

What this model assumes

Show
  • Cost is flat where the work scales, and rises where it does not. Doubling memory doubles the per-GB-second rate and halves the CPU-bound part of the runtime, so those cancel. The part that does not scale, waiting on I/O, gets billed at the higher rate with no speed-up, which is why the cheapest setting is usually the smallest one. You will read elsewhere that more memory is normally cheaper; under linear scaling it is not, it is faster for the same money, which is the more useful fact.
  • The duration model is explicit, not assumed. Only the CPU-bound share of your runtime responds to more memory; the rest is held constant. That is why the tool asks how CPU-bound the function is instead of quietly picking a scaling law for you.
  • Extra cores past the first get half weight. One full vCPU arrives at 1,769 MB. Beyond that, extra cores only help work that can use them, and most handlers are single-threaded, so the model discounts the benefit rather than promising linear speed-up to 10 GB.
  • Duration bills in 1 ms increments, rounded up. For very short functions the rounding, not the memory, dominates.
  • Provisioned concurrency and ephemeral storage are not modeled. Both are real charges, both are configuration-specific, and including them with invented defaults would obscure the one comparison this tool exists to make.
  • First-tier rates only. Lambda duration is tiered downward at very high monthly volume; above roughly 6 billion GB-seconds your effective rate is lower than shown.
Rates used and their sourcesShow
  • Lambda duration, requests and storage, source, read 13 Oct 2026

Prices verified 13 Oct 2026. Public list prices in USD for US East (N. Virginia), before any discount you have negotiated.

Want this done on your real bill?

Cloud Cost Audit: We go through your real AWS or Google Cloud bill and hand you a ranked list of what to cut first. From $1,500, fixed. Nothing paid upfront.

See the service

Questions

Does giving Lambda more memory make it cheaper?

Usually not cheaper, usually faster for the same money, which is the more useful result. Lambda allocates CPU in proportion to memory, so doubling memory doubles the per-GB-second rate and roughly halves the CPU-bound part of the runtime. Those cancel. What does not cancel is the part of the runtime spent waiting on I/O, which gets billed at the higher rate with no speed-up, so the strictly cheapest setting is usually the smallest one, and slow. This calculator reports both: the cheapest setting, and the fastest setting that costs no more than a rounding error above it.

How much does AWS Lambda cost?

$0.0000166667 per GB-second on x86 and $0.20 per million requests in US East (N. Virginia), after a perpetual monthly free tier of one million requests and 400,000 GB-seconds. A function at 512 MB running 800 ms, called 50 million times a month, costs about $326.67 in duration after the free tier ($333.33 without it) plus $9.80 in requests. The free tier is per account, so it only applies once across all your functions.

Is Lambda on Graviton (arm64) cheaper?

Yes, $0.0000133334 per GB-second against $0.0000166667 on x86, about 20% less for the same memory and duration. The catch is native dependencies: anything compiled for x86 has to be rebuilt. For pure Python, Node or Go it is usually a one-line change to the architecture setting.

How much memory should I give a Lambda function?

At least what it uses (Max Memory Used in its logs) plus some headroom. Above that, it depends on the work. For a function that is almost all computation, cost stays about flat up to 1,769 MB, where one full vCPU is allocated, so more memory buys speed for little or nothing. For a function that mostly waits on network calls, more memory costs more and changes little, so the smallest setting that holds it is right. Most functions sit between, which is what this calculator works out.

Is Lambda cheaper than running EC2?

It depends entirely on duty cycle. Lambda charges only while code runs, so for spiky or low-volume workloads it is dramatically cheaper. For something that runs continuously, a reserved EC2 instance or a container is usually less expensive; the crossover is typically somewhere around a sustained few requests per second, and it moves with memory size.

Related tools

More tools for: Compute and utilization

Tuning one function is a spreadsheet. Tuning four hundred is not.

Finitizer reads real duration and memory metrics per function, finds the ones where the cheapest setting is not the current one, and tracks the functions whose duration has drifted since the last tuning pass.

See how Finitizer works

Rate this tool

How would you rate the Lambda Cost & Memory Tuning Calculator?