AWS Lambda vs Azure Functions: pricing
Azure Functions is cheaper for this workload (about $0.80/mo vs $3.05/mo). AWS Lambda is faas (request + gb-second) ($0.20 / 1M) and Azure Functions is faas (consumption / flex consumption) ($0.20 / 1M). For 5M requests/month at 256 MB, 150 ms each plus 25 GB egress, the rough monthly totals are $3.05 and $0.80 respectively. Snapshot June 2026 — verify on the vendor's pricing page.
Data as of June 2026.
AWS Lambda vs Azure Functions side by side
| Cost factor | AWS Lambda | Azure Functions |
|---|---|---|
| Vendor | Amazon Web Services | Microsoft Azure |
| Pricing model | FaaS (request + GB-second) | FaaS (Consumption / Flex Consumption) |
| Per 1M requests | $0.20 / 1M | $0.20 / 1M |
| Per GB-second | $0.0000167 / GB-s | $0.000016 / GB-s |
| Free tier | 1,000,000 requests/month + 400,000 GB-s/month, perpetual (does not expire after 12 months). | Consumption plan free grant: 1,000,000 executions + 400,000 GB-s/month. Flex Consumption free grant: 250,000 executions + 100,000 GB-s/month, then $0.000026/GB-s + $0.40/1M executions. |
| Scale to zero | Yes | Yes |
| Egress | $0.09/GB | varies |
| Regions | 30+ AWS regions worldwide. | 60+ Azure regions worldwide. |
Sources: Amazon Web Services pricing · Microsoft Azure pricing.
Sample monthly cost
A rough monthly total for a sample workload: 5,000,000 requests/month, each ~150 ms at 256 MB of memory, plus 25 GB of egress. Computed after each platform's free tier; excludes platform minimums and regional variation, so treat it as a starting point:
| Component | AWS Lambda | Azure Functions |
|---|---|---|
| Compute (after free tier) | $0.80 | $0.80 |
| Egress (25 GB) | $2.25 | varies |
| Estimated total / month | $3.05 | $0.80 |
Verdict
On cost for this sample workload, Azure Functions is cheaper for this workload (about $0.80/mo vs $3.05/mo). But price is not the only factor: AWS Lambda (mature, deepest aws ecosystem (api gateway, sqs, dynamodb, eventbridge)) versus Azure Functions (deep azure + microsoft 365 / entra integration). Read each platform's full breakdown — AWS Lambda and Azure Functions — and model your own workload in the calculator.
Frequently asked questions
Is AWS Lambda or Azure Functions cheaper?
For a sample workload of 5M requests/month at 256 MB, 150 ms each plus 25 GB egress, Azure Functions is cheaper for this workload (about $0.80/mo vs $3.05/mo). This is illustrative and after each platform's free tier; your real cost depends on memory, duration, egress and region. snapshot captured June 2026.
How do AWS Lambda and Azure Functions price requests?
AWS Lambda: $0.20 per 1M requests + $0.0000166667 per GB-second (x86). Arm/Graviton2 is ~20% cheaper. Billed per 1 ms. Memory is configurable 128 MB-10 GB and sets the GB-second rate. Azure Functions: Classic Consumption: $0.20 per 1M executions + $0.000016/GB-s (1M + 400k GB-s free). Flex Consumption: $0.40 per 1M executions + $0.000026/GB-s (250k + 100k GB-s free) and adds always-ready instances priced separately. Snapshot June 2026 — verify on the vendor's pricing page.
Do AWS Lambda and Azure Functions scale to zero?
AWS Lambda: yes, no charge when idle. Azure Functions: yes, no charge when idle. Scale-to-zero saves money for spiky traffic but adds cold-start latency on the first request.
Which has the better free tier, AWS Lambda or Azure Functions?
AWS Lambda: 1,000,000 requests/month + 400,000 GB-s/month, perpetual (does not expire after 12 months). Azure Functions: Consumption plan free grant: 1,000,000 executions + 400,000 GB-s/month. Flex Consumption free grant: 250,000 executions + 100,000 GB-s/month, then $0.000026/GB-s + $0.40/1M executions.
More comparisons
Last updated: 2026-06-21