Skip to main content
Hosting & Infra

AWS Lambda vs Heroku: Pricing Comparison 2026

Side-by-side pricing comparison of AWS Lambda and Heroku. See all plans, features, and costs at a glance.

Bottom line: AWS Lambda starts at $2.1e-9/mo, making it $5/mo cheaper than Heroku ($5/mo). Neither offers a free plan.

Last updated: June 15, 2026

Data compiled by Arthur Jacquemin
Updated June 15, 2026
Try AWS Lambda freeTry Heroku freePrice updated 6d agoUpdated this month

AWS Lambda vs Heroku: Quick Pricing Facts

FeatureAWS LambdaHeroku
Starting Price$2.1e-9/mo$5/mo
Number of Plans504
Free TierNoNo
Pricing Modelusage-basedusage-based
Annual DiscountN/AN/A

AWS Lambda is the more affordable option, starting at $2.1e-9/mo compared to Heroku's $5/mo. Both are Hosting & Infra tools with 54 combined pricing plans and 14 features compared.

Review the detailed tier-by-tier comparison above to see exactly which features are included at each price point and find the best fit for your Hosting & Infra needs.

Pricing Plans
AWS Lambda
AWS Lambda
Try free
Heroku
Heroku
Try free
Tier 1
x86 Price
Custom pricing
Eco
$5/monthCheapest
Includes
  • 1000 dyno hours/mo
  • Sleep after 30min
  • Custom domains
Tier 2
First 6 Billion GB-seconds / month
$0/monthCheapest
Basic
$7/month
Includes
  • Always on
  • 512 MB RAM
  • Custom domains
  • Free SSL
Tier 3
Next 9 Billion GB-seconds / month
$0/monthCheapest
Standard 1xPopular
$25/month
Includes
  • 512 MB RAM
  • Horizontal scaling
  • Preboot
  • Metrics
Tier 4
Over 15 Billion GB-seconds / month
$0/monthCheapest
Performance M
$250/month
Includes
  • 2.5 GB RAM
  • Dedicated resources
  • Autoscaling
Tier 5
Arm Price
Custom pricing
-
Tier 6
First 7.5 Billion GB-seconds / month
$0/monthCheapest
-
Tier 7
Next 11.25 Billion GB-seconds / month
$0/monthCheapest
-
Tier 8
Over 18.75 Billion GB-seconds / month
$0/monthCheapest
-
Tier 9
128
$0/monthCheapest
-
Tier 10
512
$0/monthCheapest
-
Tier 11
1024
$0/monthCheapest
-
Tier 12
1536
$0/monthCheapest
-
Tier 13
2048
$0/monthCheapest
-
Tier 14
3072
$0/monthCheapest
-
Tier 15
4096
$0/monthCheapest
-
Tier 16
5120
$0/monthCheapest
-
Tier 17
6144
$0/monthCheapest
-
Tier 18
7168
$0/monthCheapest
-
Tier 19
8192
$0/monthCheapest
-
Tier 20
9216
$0/monthCheapest
-
Tier 21
10240
$0/monthCheapest
-
Tier 22
Durable Operations
Custom pricing
-
Tier 23
Operations such as Steps, Waits, and Callbacks
$8/monthCheapest
-
Tier 24
Storage
Custom pricing
-
Tier 25
Data Written
$0/monthCheapest
-
Tier 26
Data Retained
$0/monthCheapest
-
Tier 27
Total compute (seconds)
$1000000/monthCheapest
-
Tier 28
Total compute (GB-s)
$32000000/monthCheapest
-
Tier 29
Billable compute
$32000000/monthCheapest
-
Tier 30
Compute cost
$31600000/monthCheapest
-
Tier 31
Total requests
Custom pricing
-
Tier 32
Billable requests
$2000000/monthCheapest
-
Tier 33
Request cost
$1/monthCheapest
-
Tier 34
Operations
$1/monthCheapest
-
Tier 35
Operations cost
$4/monthCheapest
-
Tier 36
Data written cost
$104/monthCheapest
-
Tier 37
Storage (running incl. 7 day wait)
$104/monthCheapest
-
Tier 38
Storage (retained 14 days)
$104/monthCheapest
-
Tier 39
Data Retained cost
$24/monthCheapest
-
Tier 40
Total charges
$421/monthCheapest
-
Tier 41
Tenant isolated enviroments (x86)
$0/monthCheapest
-
Tier 42
Tenant isolated enviroments (ARM)
$0/monthCheapest
-
Tier 43
Ephemeral Storage
$0/monthCheapest
-
Tier 44
Cache
$0/monthCheapest
-
Tier 45
Restore
$0/monthCheapest
-
Tier 46
Processed Bytes
$0/monthCheapest
-
Tier 47
SQS
$0/monthCheapest
-
Tier 48
MSK or Self-Managed Kafka
$0/monthCheapest
-
Tier 49
Requests
Custom pricing
-
Tier 50
Duration
$0/monthCheapest
-

← Swipe to compare plans →

Ready to get started? Try either tool free — no credit card required.

Find the best deal for your team
Answer 2 quick questions and we'll help you choose the right plan

AWS Lambda

Serverless compute service that runs code on demand

View all AWS Lambda plans

Heroku

Cloud platform for building, running, and scaling apps

View all Heroku plans

Which Should You Choose?

Choose AWS Lambda if:

  • You need event-driven serverless compute that scales to zero with no idle server costs
  • Lambda's pay-per-execution model is cost-efficient for intermittent workloads
  • AWS service integrations - S3 events, SQS triggers, API Gateway - are required

Choose Heroku if:

  • You want simple web application deployment without server management
  • Heroku dynos start at $5-7/month for persistent web processes with simple git deployment
  • Your app needs to run continuously and you want zero infrastructure management

Lambda and Heroku serve different compute models. Lambda is event-driven serverless for intermittent functions. Heroku is PaaS for persistent web applications and APIs. A web app receiving continuous traffic is a poor fit for Lambda's cold-start model and better suited to Heroku (or similar PaaS). Event-driven background jobs and webhooks are better fits for Lambda. Many applications use both.

ShareShare

Frequently Asked Questions: AWS Lambda vs Heroku

Which is cheaper, AWS Lambda or Heroku?
As of June 2026, AWS Lambda starts at a lower price point. AWS Lambda starts at $2.1e-9/mo while Heroku starts at $5/mo. However, the best value depends on the features you need at each tier.
How many pricing plans does AWS Lambda have vs Heroku?
AWS Lambda offers 50 pricing plans, while Heroku offers 4 plans. More plans typically means more flexibility to match your exact needs and budget.
What is the most popular Heroku plan?
The Standard 1x plan is Heroku's most popular tier, priced at $25/mo. Key features include 512 MB RAM, Horizontal scaling, Preboot.
Does AWS Lambda or Heroku offer custom enterprise pricing?
AWS Lambda offers a custom-priced enterprise tier for larger teams. Heroku lists all its pricing publicly.
How do AWS Lambda and Heroku compare for Hosting & Infra?
Both AWS Lambda and Heroku are Hosting & Infra tools. AWS Lambda offers 50 plans starting at $2.1e-9/mo, while Heroku offers 4 plans starting at $5/mo. Review the feature breakdowns above to see which better fits your Hosting & Infra needs.
AI Recommendations

Sources

  1. AWS Lambda Official Pricing- Vendor pricing page
  2. Heroku Official Pricing- Vendor pricing page

Related Articles

Track Price Changes

Get notified when pricing changes for these tools.