← All tools
Free Calculator · AWS Compute

AWS Lambda vs Fargate Cost Calculator

Plug in your monthly requests, average duration, and memory. See the Lambda bill, the Fargate equivalent, the crossover request volume, and the ten-times-growth projection. Browser-only math, no signup, rates as of 2026-05 (us-east-1).
Your projected monthly compute spend (Lambda)
$15/mo
$180/yr
5M requests, 500ms avg, 512MB.

Your workload

Fargate alternative shape

Lambda vs Fargate side-by-side

Lambda
$0/mo
Fargate
$0/mo

List-price math only. Real Lambda + Fargate bills can be cut further with Lambda Power Tuning (right-sizing memory), Provisioned Concurrency rebates, Fargate Spot (~70 percent off for interruptible workloads), and stacking Compute Savings Plans across both compute types. The deep audit models your real Cost Explorer + Cost and Usage Report to rank reduction wins by dollar impact.

Monthly cost breakdown

Detailed line-items for your current configuration.
Line item Math Value

AWS Lambda + Fargate published rates (2026-05, us-east-1, x86)

Source: aws.amazon.com/lambda/pricing and aws.amazon.com/fargate/pricing. Lambda free tier is the lifetime free tier (not 12-month trial). Compute Savings Plan discount varies by term and upfront option.
Service Unit Rate Notes
Lambda requestsper 1M requests$0.20First 1M / month free (lifetime)
Lambda durationper GB-second$0.0000166667First 400,000 GB-sec / month free
Fargate vCPUper vCPU-hour$0.04048x86 Linux, no Savings Plan
Fargate memoryper GB-hour$0.004445x86 Linux, no Savings Plan
Compute Savings Plan1yr No Upfront~17% offApplies to Fargate + Lambda + EC2
Compute Savings Plan3yr All Upfront~50% offMaximum discount, biggest commitment
Fargate Spotup to 70% off on-demand~$0.01215/vCPU-hrInterruptible workloads only

Get the PDF: 7 levers to cut your serverless and container bill

One-page checklist of the biggest Lambda + Fargate levers — right-sizing memory via Lambda Power Tuning, Provisioned Concurrency rebate math, Fargate Spot for stateless workloads, Compute Savings Plan stacking across Lambda and Fargate, ARM64 (Graviton) Lambda savings, Lambda free-tier maximization, and the 4 most common reasons teams pick Lambda when Fargate would be cheaper. PDF sent to your inbox.

When compute is only one line of the bill
Get the LLM Bill Triage Deep Report
One-shot $299 audit of your real cloud spend. We started with LLM API bills and now extend the same line-by-line method to Lambda invocation patterns, Fargate task right-sizing, Compute Savings Plan coverage gaps, NAT processing, idle EBS, orphan ENIs, and Data Transfer charges. 30-day driver scan, savings ranked by effort. PDF in 24 hours. Money-back if total identified monthly savings is under $299.
Get the deep audit — $299 →
Money-back guarantee · PDF in 24 hours · Read-only Cost Explorer role only

How the math works

lambda_cost = (requests × $0.20/M) + (memory_GB × duration_s × requests × $0.0000166667)

Example: 5M requests per month at 500ms average duration and 512MB memory. Request fee = 5 × $0.20 = $1.00. GB-seconds = 0.5 × 0.5 × 5,000,000 = 1,250,000 GB-sec. Duration fee = 1,250,000 × $0.0000166667 = $20.83. Subtract the free tier (1M requests = $0.20, 400,000 GB-sec = $6.67). Net Lambda cost = $1.00 + $20.83 - $0.20 - $6.67 = about $14.96 per month.

fargate_cost = (vcpu × $0.04048/hr + memory_GB × $0.004445/hr) × hours

Example: 0.5 vCPU, 1 GB memory, 730 hours per month (24x7). Compute = (0.5 × $0.04048 + 1 × $0.004445) × 730 = $0.02468 × 730 = about $18.02 per month. With a 1-year No Upfront Compute Savings Plan applied (~17% off), Fargate drops to about $14.96 per month. The numbers are deliberately close at this scale — the crossover lives in this neighborhood.

What this calculator doesn't model

Frequently Asked Questions

When is Lambda actually cheaper than Fargate?

Lambda wins in three regimes. Low total request volume (under about 2-3M/mo at modest memory and duration). Spiky or unpredictable traffic (Lambda scales to zero between requests; Fargate bills every second a task runs). Short-duration invocations (Lambda bills in 1ms increments). Lambda loses to Fargate when sustained throughput is high enough that per-request fees plus GB-seconds exceed always-on Fargate. For 512MB / 500ms invocations, the crossover against a 0.5 vCPU 1 GB Fargate task is in the 30-50M req/mo range.

Does Lambda free tier (1M req/mo) make it always free for small projects?

The free tier covers 1M requests plus 400,000 GB-seconds of duration each month, lifetime (not 12-month trial). The trap is the GB-seconds half: 400,000 GB-sec is 800K invocations at 512MB × 1 second each, or 100K invocations at 4GB × 1 second each. Memory-heavy or long functions burn through GB-seconds faster than the request count suggests. Free tier applies per AWS organization, not per function. For genuinely small projects under 1M requests with short invocations at 128-256MB, Lambda is effectively free indefinitely. Past that threshold the per-request and per-GB-second math kicks in linearly. Fargate has no equivalent free tier.

What's the crossover point — at what scale should I switch?

Crossover depends on duration, memory, and the Fargate task size you'd deploy as the alternative. Rule of thumb: for 512MB Lambda with 500ms average duration, crossover against a 0.5 vCPU 1 GB Fargate task running 24x7 is around 30-50M requests/mo. Heavier invocations hit the crossover sooner. The decision is rarely just price: Lambda's cold-start latency, 15-minute execution limit, and stateless model favor event-driven APIs, batch processing, webhooks, and ETL steps. Fargate suits long-running connections (WebSockets, streaming), in-process state (in-memory cache, connection pools), and apps already packaged as containers.

What about Compute Savings Plans for Fargate?

Compute Savings Plans apply to Fargate like they do to EC2 and Lambda. 1-year No Upfront cuts about 17%; 3-year All Upfront goes to roughly 50% off. The commitment is dollar-per-hour spend, not instance-family lock-in — strictly safer than Reserved Instances for unpredictable container workloads. Fargate Spot is the other big lever: about 70% off on-demand for interruptible workloads (batch, CI, stateless API tasks behind a load balancer with multiple instances). Standard pattern at scale: Compute Savings Plan on baseline always-on tasks plus Fargate Spot on burst capacity. Compute Savings Plans also cover Lambda compute (GB-seconds, not requests), so one commitment can span both.

Do you store my workload data?

No. Request volume, invocation duration, memory configuration, Fargate task size, and active hours all run locally in your browser. The page fires an anonymous pageview beacon and CTA-click events so we can measure whether the calculator is useful — no inputs, no email (unless you submit one to the cheat-sheet form), no IP stored raw.

Related free tools

The full cloud and AI cost calculator suite