Compare · checked 2026-11-20
DigitalOcean vs Heroku Postgres pricing
Monthly bill for the same workload on each, using the cheapest published plan that fits.
| Provider | 1 GB / 10 GB | 4 GB / 50 GB | 8 GB / 100 GB | 16 GB / 250 GB | 32 GB / 500 GB | 4 GB / 50 GB HA | 16 GB / 250 GB HA |
|---|---|---|---|---|---|---|---|
| DigitalOcean† | $15.15 | $60.90 | $122.10 | $244.35 | — | — | — |
| Heroku | $50 | $50 | $200 | $750 | $1,400 | $200 | $1,200 |
Verdict by workload
- Hobby: 1 GB RAM, 10 GB storage: DigitalOcean is cheaper, $15.15 (1 GiB / 1 vCPU) vs $50.
- Small production: 4 GB RAM, 50 GB storage: Heroku is cheaper, $50 (Standard 0) vs $60.90.
- Medium: 8 GB RAM, 100 GB storage: DigitalOcean is cheaper, $122.10 (8 GiB / 4 vCPU) vs $200.
- Large: 16 GB RAM, 250 GB storage: DigitalOcean is cheaper, $244.35 (16 GiB / 6 vCPU) vs $750.
- XL: 32 GB RAM, 500 GB storage: only Heroku publishes a plan that fits.
- High availability: 4 GB RAM, 50 GB storage: only Heroku publishes a plan that fits.
- High availability: 16 GB RAM, 250 GB storage: only Heroku publishes a plan that fits.
DigitalOcean Managed PostgreSQL
Free: No free tier for Managed Databases.
- PostgreSQL Standard single-node prices, $/mo as listed. Extra storage $0.215/GiB/mo in 10 GiB steps, up to the top of each size's storage range.
- Standby (HA) nodes are sold as additional nodes; their price was not listed as text, so HA is not modeled here.
- Only the 5 sizes up to 16 GiB were listed on the page.
Heroku Postgres
Free: No free plan. Essential 0 is $5/mo (shared, 1 GB storage).
- Classic plans bundle a storage cap; there is no per-GB add-on, so a bigger disk means a bigger plan.
- Essential 0/1/2 ($5/$9/$20, 1/10/32 GB) run on shared resources with no stated RAM, so they are not in RAM-based comparisons.
- Premium plans add high availability. Advanced tier pricing was not printed as text.
† PlanetScale bills are compute only (extra storage rate not printed), so it is shown but not ranked. Aiven and DigitalOcean rows cover only the plans printed as text; see each provider page. Neon rows assume compute always on (730 h/mo). Prices are list, monthly, USD, before tax and egress.