June 2026 · Official AWS Lambda pricing

AWS Lambda Cost Calculator

Compare Lambda, Cloudflare Workers, Vercel, and GCP Functions pricing. Enter invocations, duration, memory → see exact monthly bills. Free, no signup.

Advertisement

⚡ Serverless Cost Calculator

Select provider · Enter invocations and duration · Results update live

Estimated monthly cost
$0
per month
Invocation cost
Compute cost
Annual estimate

Serverless Pricing Comparison 2026

Monthly cost for 10M invocations · 256MB · 200ms avg duration.

ProviderFree tierInvocation priceCompute price10M inv / 200ms / 256MB
AWS LambdaMOST POPULAR1M inv/mo + 400K GB-s$0.20/M$0.0000166725/GB-s$3.47
Cloudflare Workers1M req/day (free plan)$0.30/M (paid)$0.012/M GB-s$2.70
Vercel Functions100K GB-s/mo$0.40/M$0.018/GB-s$4.00
GCP Cloud Functions2M inv/mo + 400K GB-s$0.40/M$0.0000250/GB-s$3.20
Advertisement
⚠ Hidden costs

AWS API Gateway adds $3.50/M requests — often doubling your Lambda bill. CloudWatch Logs add $0.50/GB. NAT Gateway in VPC adds $0.045/GB. Factor these in for real-world costs.

When to Choose Lambda vs Alternatives

Use caseBest choiceReason
REST API · under 30msCloudflare WorkersEdge execution, no cold start
REST API · 100ms–500msAWS LambdaFree tier, mature ecosystem
Heavy compute · 1–5sAWS LambdaUp to 10GB memory, 15min timeout
Next.js / React SSRVercel FunctionsZero-config deployment
Event-driven batchAWS LambdaNative integration with SQS, SNS, S3

Deploy serverless today — free tiers available:

Frequently Asked Questions

How much does AWS Lambda cost per million requests?+

After the free tier (1M/month), Lambda costs $0.20 per million invocations plus compute. A 256MB function at 200ms avg = ~$3.47/month for 10M invocations total.

Is Cloudflare Workers cheaper than Lambda?+

For short-duration (under 30ms) high-frequency APIs, yes. Workers at $0.30/M beats Lambda. For longer compute (500ms+) or when you need AWS integrations, Lambda is often better value.

What is the AWS Lambda free tier?+

1 million free invocations per month + 400,000 GB-seconds of compute per month, forever (not just 12-month trial). Enough for ~2M requests at 256MB/200ms.

Does Lambda have cold starts?+

Yes. Cold starts add 100–500ms latency for the first request after a function is idle. Mitigation: Provisioned Concurrency ($0.0000041271/GB-s), keeping functions warm with scheduled pings, or choosing Cloudflare Workers (no cold starts).

What is the maximum timeout for AWS Lambda?+

15 minutes (900 seconds). For longer workloads use AWS Step Functions or ECS Fargate instead.

Advertisement

Related Calculators