DigitalOcean vs Heroku: pricing compared

The same workloads priced on DigitalOcean and Heroku with the cheapest plan that fits on each. Heroku is cheaper in 7 of 10 scenarios. Prices come from each provider's published, dated price sheet - see the DigitalOcean price sheet and the Heroku price sheet.

Monthly cost by workload

WorkloadDigitalOceanHerokuCheaper
Small app (1M req/mo)$22.25$14.15 *Heroku (36% less)
Growing (20M req/mo)$291$408 *DigitalOcean (29% less)
At scale (200M req/mo)$860 *$2,330 *DigitalOcean (63% less)
Modern SaaS Starter$21.20$14.00 *Heroku (34% less)
Video Streaming App$111 *$42.35 *Heroku (62% less)
High-Scale E-Commerce$869 *$453 *Heroku (48% less)
Serverless Mobile Backend$42.47$12.25 *Heroku (71% less)
AI RAG Chatbot$997$989 *Heroku (1% less)
Big Data Pipeline$64.00$79.85DigitalOcean (20% less)
Budget Web Hosting$24.91$14.00 *Heroku (44% less)

* The plan prices every piece but something is too small for the workload, a compute style is substituted, or a requested piece is unavailable on that provider.

Where the money goes - Growing (20M req/mo)

20M requests/mo · 40 ms CPU each · 100 GB database · 200 GB files · 1 TB egress. DigitalOcean uses Functions, Spaces, Managed Postgres; Heroku uses Dynos, R2 Storage, Postgres.

Cost categoryDigitalOceanHeroku
Serverless$20.54$0.00
Storage$5.00$2.85
Database$265$400
Compute$0.00$5.00
Total$291$408

Service by service

Each provider's cheapest product per service at the Growing (20M req/mo) workload.

ServiceDigitalOceanHeroku
KubernetesDOKS Control Plane (High Availability)
$53.04
Not offered
SQL databaseManaged PostgreSQL (16 GiB / 6 vCPU, single node)
$265
Heroku Postgres
$400
NoSQL databaseManaged MongoDB (16 GiB / 6 vCPU, single node)
$264
Not offered
Cache (Redis)Managed Caching for Valkey (8 GiB, single node)
$120
Not offered
Serverless functionsDigitalOcean Functions
$20.54
Not offered
ContainersApp Platform (apps-s-1vcpu-1gb, $12/mo per container)
$12.00
Heroku Dynos
$5.00
Virtual machinesBasic Droplet (512 MiB / 1 vCPU)
$4.34
Not offered
Object storageSpaces Object Storage
$5.00
Not offered
Load balancerLoad Balancer (Regional HTTP, per node)
$12.00
Not offered

Plug in your traffic, database and cache needs to see DigitalOcean, Heroku and 14 other providers side by side.

Price your own stack

Related comparisons