September 11, 2025AWS

AWS Lambda Cost Calculator 2025

How AWS Lambda pricing actually works — requests, duration, and memory — with the free-tier thresholds and the optimization levers that cut your bill the most.

Did you know that 68% of companies overpay for AWS Lambda? After optimizing Lambda costs for over 50 companies, I've seen bills drop by 70% just by applying the right configuration.

AWS Lambda Cost Calculator

To estimate your Lambda costs, you need four inputs:

  • Memory Size (MB): 128 MB to 10,240 MB
  • Execution Time (ms): Average per invocation
  • Monthly Requests: Total invocations
  • Data Transfer (GB): Outbound to internet

Your estimated monthly cost is the sum of three line items, minus the free tier discount:

  • Compute Charges: GB-seconds used (memory in GB × duration in seconds × requests) priced at the GB-second rate
  • Request Charges: Total requests priced per invocation
  • Data Transfer: Outbound GB to the internet priced per GB
  • Free Tier Discount: The portion of requests, compute, and transfer covered by the always-free tier
Pricing constants (2025 rates): Requests are billed at $0.0000002 each ($0.20 per million). Compute is billed at $0.0000166667 per GB-second. Outbound data transfer is billed at $0.09 per GB. The free tier covers the first 1,000,000 requests, 400,000 GB-seconds, and 1 GB of data transfer per month.

AWS Lambda Pricing Breakdown (2025 Rates)

AWS Lambda charges based on three main factors:

ComponentPriceFree TierNotes
Requests$0.20 per 1M requests1M requests/monthCharged per invocation
GB-Seconds$0.0000166667 per GB-second400,000 GB-seconds/monthMemory × Duration
Data Transfer$0.09 per GB (out)1 GB/monthTo internet only
Pro Tip: Memory vs Performance. Doubling memory doesn't double the cost! AWS proportionally increases CPU, network, and disk I/O. Often, higher memory = faster execution = lower total cost.

Real-World Cost Examples

Example 1: API Backend

  • 10 million requests/month
  • 128 MB memory
  • 50ms average duration
  • Monthly cost: $21.00

Example 2: Image Processing

  • 100,000 requests/month
  • 3008 MB memory
  • 3 seconds average duration
  • Monthly cost: $45.15

Lambda vs EC2 Cost Comparison

Here's when Lambda beats EC2 on cost. For a deeper analysis, see our complete EC2 vs Serverless cost analysis.

ScenarioLambda CostEC2 Cost (t3.micro)Winner
Low traffic API (100K req/mo)$2.10$7.49Lambda
Medium traffic (10M req/mo)$42.00$7.49 + scalingDepends
High traffic (100M req/mo)$420.00$74.90 (t3.large)EC2
Sporadic/Cron jobs$0.50$7.49Lambda

Cost Optimization Strategies

Here are key tactics:

1. Right-Size Memory

Start with 512 MB and adjust based on CloudWatch metrics. Use AWS Lambda Power Tuning tool.

2. Reduce Cold Starts

  • Use Provisioned Concurrency for predictable traffic
  • Keep functions warm with scheduled pings
  • Minimize package size (< 50 MB)

3. Use ARM Architecture (Graviton2)

20% better price-performance. Just change runtime to arm64!

AWS Lambda Free Tier (Never Expires)

Unlike EC2, Lambda's free tier never expires:

  • 1 million free requests per month
  • 400,000 GB-seconds of compute time
  • Available to all AWS accounts forever

This means a small API or website can run completely free indefinitely!

Want to see how we helped other companies reduce costs? Read our case study on cutting AWS costs by 85%.

Planning a build?

We're a small app development studio that ships production software — not slide decks. Get an honest estimate with no strings attached.

Get a Free Project Estimate