← Back to Blog
Cloud Cost Comparison

Serverless Cost Comparison 2025: AWS Lambda vs Azure Functions vs GCP Cloud Run vs OCI Functions

📅 November 2025⏱️ 9 min read✍️ TCOIQ Team

Serverless Pricing Model Explained

Serverless functions use two-dimensional pricing: per request (API calls) and per compute time (GB-seconds = memory × execution duration). Understanding both dimensions is essential to estimating real costs.

Free Tier Comparison

ProviderServiceFree Requests/MonthFree GB-Seconds/Month
AWSLambda1 million400,000
AzureFunctions (Consumption)1 million400,000
GCPCloud Functions2 million400,000
OCIFunctions2 million400,000

Pricing Beyond Free Tier

ProviderPer Million RequestsPer GB-Second
AWS Lambda$0.20$0.0000166667
Azure Functions$0.20$0.0000160000
GCP Cloud Functions$0.40$0.0000025000
OCI Functions$0.00 (free!)$0.0000142000

Real-World Cost: 100M Requests, 200ms, 512MB

Monthly calculation: 100M requests × 0.2s × 0.5GB = 10M GB-seconds

ProviderRequest CostCompute CostTotal/Month
AWS Lambda$19.80$166.50$186.30
Azure Functions$19.80$159.86$179.66
GCP Cloud Functions$39.20$24.98$64.18
OCI Functions$0.00$142.00$142.00

GCP Cloud Functions wins dramatically at high request volumes with short durations, due to their extremely low compute price ($0.0000025/GB-sec vs Lambda's $0.0000167). For CPU-intensive, longer-running functions, Lambda or OCI are more competitive.

Serverless Containers

ServiceKey AdvantagePrice Model
AWS FargateECS/EKS integration$0.04048/vCPU-hr + $0.004445/GB-hr
Azure Container AppsScale to zeroPer vCPU-second
GCP Cloud RunPer 100ms billing, generous free tier$0.000024/vCPU-sec
OCI Container InstancesOCI pricing advantage$0.00215/vCPU-hr

Choosing a Serverless Platform

  • Event-driven, millions of short requests: GCP Cloud Functions (cheapest compute)
  • AWS ecosystem integration: Lambda (S3, DynamoDB, API Gateway native)
  • Azure-native integration: Azure Functions (Event Hubs, Service Bus, Cosmos DB)
  • Cost-sensitive, Oracle ecosystem: OCI Functions
For purely cost-driven serverless decisions at scale, model your specific request count and duration. GCP often wins for high-volume short requests; OCI wins for longer-running workloads.

Ready to Calculate Your Cloud Costs?

Use TCOIQ's free comparison tool or get an AI-powered TCO analysis for your environment.

Compare Prices Free → Build Inventory