Serverless Calculator

Estimate your serverless function costs across AWS Lambda, Google Cloud Functions, and Azure Functions

Estimate Serverless Function Costs

Memory 512 MB
Requests 1,000,000
Duration 200 ms
Estimated Monthly Cost
Monthly Estimate
$0.00
Yearly: $0.00
  • Requests Cost $0.00
  • Compute Cost $0.00
  • GB-Seconds Used 0
Note: This estimate doesn't include data transfer costs, API Gateway fees, or additional AWS/GCP/Azure services.

Understanding Serverless Pricing

What is Serverless?

Serverless computing lets you run code without provisioning or managing servers. You pay only for the compute time you consume, typically billed in milliseconds.

  • AWS Lambda: Most popular, 1M free requests/month
  • Google Cloud Functions: 2M free invocations/month
  • Azure Functions: 1M free executions/month

Pricing Components

Serverless pricing has two main components:

  • Requests: Number of function invocations
  • Compute: Duration × Memory (GB-seconds)

Formula:

Cost = (Requests × Price/Request) + (GB-seconds × Price/GB-s)

Provider Comparison

Provider Price/1M Req Price/GB-s Free Tier
AWS Lambda $0.20 $0.0000166667 1M req + 400K GB-s
GCP Functions $0.40 $0.0000025 2M req + 400K GB-s
Azure Functions $0.20 $0.000016 1M req + 400K GB-s

Cost Optimization Tips

  • Use ARM64: Graviton2 is 20% cheaper and 20% faster than x86
  • Right-size memory: More memory = faster execution, but higher cost
  • Minimize duration: Optimize code to reduce execution time
  • Use free tier: All providers offer generous free tiers
  • Monitor usage: Set up billing alerts to avoid surprises
  • Consider reserved concurrency: For predictable workloads

More Cloud & DevOps Tools

Explore more infrastructure and development tools in our collection, including Cloud Cost Calculator, Cloud Storage Calculator, Terraform Cost Estimator, K8s Resource Planner, and Data Structure Visualizer!