For EC2 you can run more than 1 request at the same time. For lambda it is 1 lambda per request. If you have even a few concurrent requests you lambda cost can 5-10x noting all the cold start and other times too. Answer from re-thc on reddit.com
🌐
Amazon Web Services
aws.amazon.com › compute › aws lambda › pricing
AWS Lambda Pricing
2 weeks ago - If you’re using consolidated billing in AWS Organizations, pricing tiers are applied to the aggregate monthly duration of your functions running on the same architecture, in the same region, across the accounts in the organization. Lambda Managed Instances enables you to run Lambda functions on fully-managed EC2 instances in your VPC, combining Lambda's serverless developer experience with the cost ...
🌐
Reddit
reddit.com › r/aws › why is everyone saying lambda is more expensive than ec2?
r/aws on Reddit: Why is everyone saying Lambda is more expensive than EC2?
May 23, 2023 -

Please help me work out the math here, as I think I am doing this wrong.

A Lambda of 128mb costs $0.0000000021/ms, this works out $0.00756/hour.

A Lambda of 512mb costs $0.0000000083/ms, this works out $0.02988/hour.

Now if you look at EC2:

t4g.nano $0.0042/hour (0.5 GiB ram)

t4g.micro	$0.0084/hour (1GiB ram).

But... the Lambda will likely not run 100% of the time, and will stay warm for 10 minutes (not sure here?). And the RAM usage would be much better utilized if you got a function running, rather than an entire VPC.

Given all that, if the function can run with 128mb or less, it seems like a no-brainer to use Lambda.

However, if the function is bigger, it would only make sense to put it in an EC2 if it runs more than 30% of the time ($0.0084/hour cost of t4g.micro divided by 0.02988/h cost of 512mb lambda).

So why is everyone against Lambdas citing costs as the primary reason...?

Discussions

Gaging AWS Lambda pricing for small application
Hello to everyone, i am about to purchase a Savings Plan for a small application i am developing but before to do so, i need to figure out whether or not i actually need coverage for the Lambda fun... More on repost.aws
🌐 repost.aws
1
0
August 21, 2024
SES + SQS + Lambda - Cost Effective?
  • SQS pricing: https://aws.amazon.com/sqs/pricing/

  • Lambda pricing: https://aws.amazon.com/lambda/pricing/

SQS: First 1 Million Requests/Month - Free
Lambda: $0.0000167 for every GB-second, $0.20 per 1M requests

Lambda w/1gb memory & 2 second duration = 1M invocations for $34. If you use 256mb memory on your lambdas then the cost is 1/4 that. Etc.

I'll leave the rest of math to you, since "quite frequently" isn't a number.

Why not just submit directly to SES unless? Less complexity and no known problems.

More on reddit.com
🌐 r/aws
6
3
November 15, 2024
Why is everyone saying Lambda is more expensive than EC2?
For EC2 you can run more than 1 request at the same time. For lambda it is 1 lambda per request. If you have even a few concurrent requests you lambda cost can 5-10x noting all the cold start and other times too. More on reddit.com
🌐 r/aws
127
141
May 23, 2023
Lambda is the most expensive part of a project, is this normal? When to choose lambda / Ec2.
If you have a consistent baseline level of high-CPU usage compute then it's cheaper to run that on EC2 than Lambda. Per CPU hour, EC2 is considerably cheaper than Lambda. One Lambda ARM vCPU costs ~$60/month compared to ~$25 for c6g.medium (based on 1 vCPU=1769MB of memory allocated for Lambda). If you can use EC2 instances to service your baseline load, and use fast-scaling Lambda to handle your brief demand spikes, you can get the best of both worlds. If you're currently in a world with no baseline load then Lambda is likely to win. More on reddit.com
🌐 r/aws
60
35
April 24, 2024
People also ask

How does AWS Lambda pricing work?
By requests and duration. You pay per invocation and per GB-second, where a GB-second is the memory you allocate multiplied by how long the function runs. Memory drives most of the cost because it also sets CPU speed.
🌐
cloudzero.com
cloudzero.com › home › blog › aws lambda pricing: what it actually costs in 2026
AWS Lambda pricing: what it actually costs in 2026
Is AWS Lambda the same as Lambda Labs?
No. AWS Lambda is Amazon's serverless compute service, priced by requests and duration. Lambda Labs is a separate company that rents GPU cloud capacity for AI training and inference, with entirely different pricing. If you searched for GPU cloud pricing, you want Lambda Labs; if you searched for serverless function pricing, you are in the right place.
🌐
cloudzero.com
cloudzero.com › home › blog › aws lambda pricing: what it actually costs in 2026
AWS Lambda pricing: what it actually costs in 2026
Why is my AWS Lambda bill so high?
Usually memory, duration, or the services around Lambda. High memory settings, long-running functions (often waiting on AI model calls), provisioned concurrency, and adjacent charges like NAT Gateway, API Gateway, and CloudWatch Logs are the common culprits. None of the adjacent services share Lambda's free tier.
🌐
cloudzero.com
cloudzero.com › home › blog › aws lambda pricing: what it actually costs in 2026
AWS Lambda pricing: what it actually costs in 2026
🌐
Dashbird
dashbird.io › home › aws lambda cost calculator
AWS Lambda Cost Calculator - Dashbird
December 10, 2021 - The paid meter starts after your first 1 million invocations or 3.2M seconds of compute time. The cost of requests is $0.20 per 1 million requests, or $0.0000002 per request. The cost of duration is $0.00001667 for every GB-second used.
🌐
Wiz
wiz.io › academy › cloud-cost › aws-lambda-cost-breakdown
AWS Lambda Cost Breakdown For 2026 | Wiz
December 26, 2025 - Once you pass the free-tier limit, AWS Lambda request pricing typically ranges from $0.20 to $0.28 per additional million requests (as of October 6, 2025), depending on the region.
🌐
CloudZero
cloudzero.com › home › blog › aws lambda pricing: what it actually costs in 2026
AWS Lambda pricing: what it actually costs in 2026
1 week ago - The teams that win their next budget ... result is worth it. AWS Lambda cost rests on two pillars: requests ($0.20 per 1 million) and duration (priced in GB-seconds)...
Find elsewhere
🌐
AWS
aws.amazon.com › blogs › compute › optimizing-your-aws-lambda-costs-part-1
Optimizing your AWS Lambda costs – Part 1 | Amazon Web Services
June 2, 2022 - This blog post explains how Lambda pricing works and how right-sizing applications and tuning them for performance efficiency offers a more cost-efficient utilization model. The results can also reduce latency, creating a better experience for your end users.
🌐
Caylent
caylent.com › blog › cost-optimization-lambda
Cost Optimization: AWS Lambda | Caylent
Depending on the application, Lambda costs could be zero (there is a free tier for AWS Lambda) or tens of thousands of dollars per month; it is necessary for individuals working with AWS Lambda to be aware of its pricing structure so that efficient ...
🌐
Medium
medium.com › israeli-tech-radar › escaping-aws-lambda-costs-507167744d33
Escaping AWS Lambda costs. Tell me if this sounds familiar. You… | by Yoav Nordmann | Israeli Tech Radar | Medium
May 20, 2024 - Request Pricing: AWS charges per request for your Lambda functions. You pay for the total number of requests across all your functions: Number of Invocations * Price per Invocation · Duration Pricing: You’re charged for the time your code executes, measured in milliseconds: Duration per millisecond * Price per Gigabyte · The basic mathematical function for calculation of the price of Lambda costs is: Request Pricing + Running Duration Price
🌐
Costgoat
costgoat.com › pricing › aws-lambda
AWS Lambda Pricing Calculator & Cost Guide (Jul 2026)
February 1, 2026 - AWS Lambda's perpetual free tier never expires and is available to all customers, making it ideal for small applications, development, and learning. The free tier resets monthly. ... Lambda charges for each function invocation regardless of execution duration. Request pricing is consistent across all regions and architectures. ... Compute costs are calculated as GB-seconds: memory allocated (GB) × execution time (seconds).
🌐
GoCloud
go-cloud.io › home › aws lambda pricing | complete 2026 guide (every billing factor explained + cost examples)
AWS Lambda Pricing | 2026 Cost Guide & Optimization Tips
February 25, 2026 - At 100 million monthly invocations, request charges alone reach $19.80, and at 1 billion invocations, $199.80 — non-trivial but still typically 20-40% of total cost when duration charges accumulate proportionally.
🌐
Cloudchipr
cloudchipr.com › blog › aws-lambda-pricing
AWS Lambda Pricing Breakdown: Ultimate Guide 2025
AWS Lambda pricing is influenced by the architecture (x86 or ARM) and the duration of code execution. The following pricing details are based on the US East (N. Virginia) region. ... Duration: The time your code takes to run, measured in GB-seconds. Architecture: Lambda functions can run on x86 or Arm processors, with Arm (Graviton2) offering lower per-second costs.
🌐
Modal
modal.com › blog › aws-lambda-price-article
How much is AWS Lambda?
AWS Lambda pricing starts at $0.0000166667 per GB per second of runtime (GB-s).
🌐
Cloud Burn
cloudburn.io › tools › aws-lambda-pricing-calculator
Lambda Pricing Calculator - Savings Plans & Provisioned Concurrency | Cloud Burn
A Lambda function cost calculator estimates your monthly bill based on request charges, duration charges, and optional costs like Provisioned Concurrency and ephemeral storage. This calculator also factors in Compute Savings Plans discounts and the always-free tier to give you accurate projections. ... AWS ...
🌐
AWS
calculator.aws
AWS Pricing Calculator
AWS Pricing Calculator lets you explore AWS services, and create an estimate for the cost of your use cases on AWS.
🌐
Lumigo
lumigo.io › guides › aws lambda 101 › aws lambda cost factors, cost comparisons and optimization [2024]
AWS Lambda Cost Factors, Cost Comparisons and Optimization [2024]
August 30, 2024 - AWS Lambda charges a flat rate of $0.20 per 1 million requests. This fee applies after a monthly free tier of 1 million requests has been exhausted. The charge is consistent regardless of the architecture or region.
🌐
Amnic
amnic.com › home › blogs › aws lambda pricing: how it works and what you pay
AWS Lambda Pricing: How It Works and What You Pay - Amnic
June 12, 2026 - Ingestion runs from $0.50 per GB down to $0.05 per GB at high volume, so a verbose function can quietly add tens of dollars a month, as one detailed Lambda cost breakdown documents.
🌐
AWS
docs.aws.amazon.com › aws well-architected › aws well-architected framework › the pillars of the well-architected framework › cost optimization pillar › optimizing over time › lambda cost and performance optimization
Lambda cost and performance optimization - Serverless Applications Lens
AWS Compute Optimizer supports Lambda functions and uses machine-learning to provide memory size recommendations for Lambda functions. This allows you to reduce costs and increase performance for your Lambda-based serverless workloads.
🌐
nOps
nops.io › blog › lambda-pricing
Lambda Pricing Explained: Billing, Savings Plans, & More | nOps
February 3, 2026 - Lambda’s free tier gives you a baseline of usage at no cost each month, and anything above that is billed normally. The free tier includes: ... A request is counted each time Lambda starts executing your function—whether it’s triggered by an AWS service (like S3, SNS, or EventBridge) or invoked directly (API Gateway, SDK, console).
🌐
AWS Fundamentals
awsfundamentals.com › blog › aws-lambda-pricing-a-complete-guide-to-understanding-the-cost-of-the-serverless-service
AWS Lambda Pricing: A Complete Guide
Many production applications with real users can be run within the whole free tier of AWS. It is really a great way to get started and see if Lambda is suitable for your use case. Remember, that the free tier is only available for 12 months. After 12 months, you need to pay for your runtime. As you can see there are many factors that influence the cost of running your Lambda functions.
Top answer
1 of 1
2
Hi Stefano Check these scenario hope it works **AWS Lambda Pricing Structure** Requests: You get 1 million free requests per month. Beyond that, you're charged $0.20 per million requests. Duration: The first 400,000 GB-seconds (roughly 3.2 million seconds of compute time) are free. After that, you're charged $0.00001667 per GB-second. **if a Savings Plan is beneficial, consider these factors** * Expected Request Volume: How many times a month do you anticipate your Lambda functions being invoked? If it stays below 1 million, you won't incur request charges. * Function Execution Time: How long do your Lambda functions typically run (in milliseconds)? If they stay under 400 milliseconds (0.4 seconds), you won't incur duration charges. * Memory Allocation: How much memory (in MB) do you allocate to your Lambda functions? Optimizing memory usage can significantly impact costs. **Scenarios for Savings Plans** * Moderate Request Volume (1.5 Million/Month): If you expect to exceed 1 million requests but stay below 2 million, a Savings Plan might be worthwhile if your function execution time is high or your memory allocation is significant. * High Request Volume (5 Million/Month): Savings Plans become more attractive with higher request volumes, even if execution time is low. **Alternatives to Savings Plans** Reserved Concurrency: If you have predictable request patterns, consider Reserved Concurrency for fixed-rate pricing on Lambda capacity. However, this might not be ideal for a small application with variable usage. Official AWS Documentation: AWS Lambda Pricing: https://aws.amazon.com/lambda/pricing/ AWS Lambda Developer Guide: https://docs.aws.amazon.com/lambda/ **Additional Resources** https://lumigo.io/blog/aws-lambda-vs-ec2/