HomeCloud & Dev › AWS Lambda

AWS Lambda — pricing, free tier & how it's billed

✓ Last verified: 2026-07-15· Source: official provider pricing page· Auto-monitored — report change →

AWS Lambda is the original serverless compute service: you ship a function, AWS runs it on demand and bills only for what executes. The pricing has two moving parts — requests and GB-seconds — and a genuinely useful always-free tier. Here's exactly how it adds up.

AWS Lambda pricing (reference, July 2026)

WhatPriceNote
Always-free tier free$0~1M requests + 400,000 GB-seconds / month
Requests~$0.20 / 1Mper invocation, after free grant
Compute (x86)~$0.0000166667 / GB-smemory × duration, billed per 1ms
Compute (ARM / Graviton)~20% cheaper / GB-ssame code, lower rate
Data transfer outfrom ~$0.09 / GBegress billed separately
⚠️ Reference figures, July 2026 — exact rates vary by region and AWS revises them. Confirm on aws.amazon.com/lambda/pricing. Provisioned concurrency, ephemeral storage above the default, and other AWS services your function calls (S3, DynamoDB, egress) are billed on top. · Report outdated price →

How the bill actually works

Two lines add up to your Lambda cost. Requests: every invocation counts, at ~$0.20 per million. Compute: you're charged for the memory you allocate multiplied by how long the function runs — a GB-second. A function set to 512 MB (0.5 GB) that runs for 200 ms costs 0.5 × 0.2 = 0.1 GB-seconds per call. At a million calls that's 100,000 GB-seconds — comfortably inside the 400,000 free grant, so you'd pay only the request overage. This is why small, fast functions on Lambda are often effectively free, and why a heavy, long-running, high-memory function is where the cost shows up.

The free tier is real and permanent

Unlike a 12-month trial, Lambda's ~1M requests and 400,000 GB-seconds per month are always free. For side projects, webhooks, cron-style jobs and low-traffic APIs, that often covers the entire workload — many small Lambda apps genuinely run at $0/month. The cost arrives at scale, with long durations, or with high memory settings. Model your real numbers with the serverless function cost calculator before assuming it's free.

How to get started (step by step)

1. Create an AWS account and open the Lambda console.
2. Create function → author from scratch, pick a runtime (Node, Python, etc.) and a memory size.
3. Add a trigger (API Gateway, Function URL, EventBridge schedule, S3 event…).
4. Deploy and test. Watch CloudWatch for duration and memory used, then right-size the memory.

Invoke a Function URL with curl:

# replace with your Function URL
curl -X POST https://YOUR-ID.lambda-url.us-east-1.on.aws/ \
-H "Content-Type: application/json" \
-d '{"name":"world"}'

Lambda vs the alternatives

Cloudflare Workers (see the Cloudflare guide) bill on CPU time rather than wall-clock and have near-zero cold starts and free egress (R2) — often cheaper for edge/API work. Vercel Functions (see Vercel) wrap serverless in a smoother deploy experience at a premium. Lambda wins on raw flexibility, runtime choice, and deep AWS integration. For long-running or always-on workloads, a small VPS can undercut all three. Compare egress separately with the cloud egress calculator.

FAQ

How is AWS Lambda billed?

Per request (~$0.20/1M) plus compute as GB-seconds (memory × duration), billed in 1ms increments. Free tier: ~1M requests + 400,000 GB-seconds monthly.

Is the Lambda free tier permanent?

Yes — the ~1M requests and 400,000 GB-seconds are an always-free monthly allowance, not a one-off trial.

Does more memory cost more?

Yes, but more memory also means more CPU, so functions often finish faster. Tune memory to the point where (memory × duration) is lowest — sometimes a higher memory setting is cheaper overall.

What costs are easy to miss?

Data-transfer-out (egress), API Gateway charges, provisioned concurrency, and the other AWS services your function calls. The function compute is often the smallest line.

Not affiliated with AWS. Prices are reference estimates and vary by region — always verify on the official pricing page.

Host your project:DigitalOcean — $200 free ↗Hostinger VPS

Exchanges

BybitBinanceOKXKuCoinBitgetGate.ioMEXC

Tools & Hosting

📈 TradingView🔒 NordVPN💳 RevolutDigitalOcean $200Hostinger