∑
DevFormula
AI Tokens & Cloud ComputeVerified 2026-10-21

AWS Lambda x86 Serverless Compute Cost Calculator

Simulate monthly AWS Lambda x86 compute bills ($0.20 per 1M requests + $0.0000166667 per GB-second).

Parameters & Config

calls
calls
1,000calls1,000,000,000calls

Total function executions triggered per month

MB
MB
128MB10,240MB

RAM allocated to the serverless container

ms
ms
1ms900,000ms

Average latency per execution in milliseconds

$
$
0.01$5$

Cloud provider fee per 1,000,000 invocation requests

$
$
0$0.001$

Charge per GB-second of compute runtime consumed

Total Monthly Cloud BillLIVE ESTIMATE
$6.00

Combined monthly charge for invocations and compute runtime

Effective Cost per 1M CallsLIVE ESTIMATE
$1.20

Blended cost to execute 1,000,000 function requests

Key Metrics & Sub-Totals

3 items
Compute Runtime ChargeCost based on memory allocated and total execution duration (GB-seconds)
$5.00
Invocation Request ChargeCost for incoming API function invocations
$1.00
Monthly GB-Seconds ConsumedTotal memory-time compute units utilized
300,000 GB-s

Calculation Summary & Unit Breakdown

MetricCalculated ValueNotes / Logic
Monthly Invocations5,000,000requests/month
Allocated Function Memory512 MB0.500 GB
Average Execution Duration120 msper call
Total Compute Volume300,000 GB-sGB-seconds
Request Surcharge$1.00Invocation fee
Compute Runtime Charge$5.00Memory-duration fee
Effective Cost per 1M Calls$1.20Blended rate
Total Monthly Cloud Bill$6.00USD

Overview & Methodology

AWS Lambda x86 architecture charges $0.20 per 1,000,000 requests plus $0.0000166667 for every GB-second of compute. Memory allocation scales from 128 MB to 10,240 MB with proportional vCPU allocation.

Mathematical Formulation

Compute GB-s = Monthly Requests × (Memory MB / 1024) × (Duration ms / 1000). Total Cost = (Requests / 1M × $0.20) + (Compute GB-s × $0.0000166667).

Optimization Best Practices

1

AWS includes a perpetual Free Tier of 1,000,000 requests and 400,000 GB-seconds of compute per month.

2

Use AWS Lambda Power Tuning to find the optimal memory setting where execution finishes faster, reducing total GB-second cost.

3

Migrate from x86 to ARM Graviton2 to achieve an immediate 20% cost reduction.

Frequently Asked Questions

Q.How much does 5,000,000 AWS Lambda executions cost at 512MB and 120ms?
A.

5M requests cost $1.00 for invocations plus $5.00 for 300,000 GB-seconds of compute, totaling $6.00/month.

Q.What is the AWS Lambda perpetual free tier?
A.

Every AWS account receives 1,000,000 free requests and 3,200,000 seconds of 128MB compute (400,000 GB-seconds) every month.

Q.How does Lambda round duration?
A.

AWS Lambda bills execution duration in 1-millisecond increments with zero minimum rounding penalty.