Cheapest Heroku alternatives in 2026: what an app and a Postgres really cost
THE SHORT ANSWER
On Heroku, one always-on Basic dyno plus an Essential-0 Postgres costs $12 a month. Northflank's free Sandbox runs the same pair for $0, though its docs say it isn't for production. Fly.io comes to $6.19 with a 256 MB machine and its $4 Developer Postgres, and Railway to about $6.55 for a small, mostly idle app. A €5.99 Hetzner server running Coolify costs about the same and holds many apps, but you run it yourself. EthioDeploy Pro is $10 with a 1 GB container and the database included, DigitalOcean App Platform is $12, Render $13.30 and Koyeb over $50.
What is the cheapest Heroku alternative?
It depends on how small the app is and how much you mind the fine print. For one always-on web app with a small Postgres, these are the cheapest options we found, all from list prices read on November 24, 2026:
- Northflank Sandbox is free and doesn't sleep, but you need a card on file and its docs say not to use it for production.
- Fly.io is $6.19 a month for a 256 MB machine and the $4 Developer Postgres, which pauses after 15 minutes without connections.
- Railway is about $6.55 for an app and a database that each average 256 MB and very little CPU. A busier app costs more.
- A VPS with Coolify is €5.99 plus VAT on Hetzner for 2 vCPU and 4 GB, enough for several small apps, if you are willing to run the server.
EthioDeploy, our product, is not the cheapest for the smallest app. Pro is $10 a month, and it pulls ahead when the app needs 1 GB of memory, because the database is part of the plan. The full table is below.
What does one app and a Postgres cost on each?
The workload: one web app that runs all month without sleeping, plus a Postgres with about 1 GB of data. Each row uses the smallest paid size that fits, sorted from cheapest. Prices exclude tax.
| Platform | App + database | Per month | The catch |
|---|---|---|---|
| Northflank Sandbox | 0.2 vCPU, 512 MB service; 0.1 vCPU, 256 MB Postgres | $0 | Up to $20 of resources free; card required; docs say not for production |
| Fly.io | shared-cpu-1x 256 MB machine ($2.19); Developer Postgres ($4) | $6.19 | Postgres pauses after 15 min without connections, 5 GB cap, one daily backup kept 1 day |
| Hetzner VPS + Coolify | CX23: 2 vCPU, 4 GB, 40 GB disk, shared by app, database and Coolify | €5.99 | You patch, back up and monitor the server; limited stock of this server type |
| Railway Hobby | App and Postgres averaging 256 MB each, light CPU, 1 GB volume | About $6.55 | Usage-based: more RAM or CPU means a bigger bill |
| Northflank, paid | Same sizes as the Sandbox row, plus a 1 GB disk | $8.22 | Per-second billing; disk and egress extra |
| EthioDeploy Pro | 1 GB container; Postgres, MySQL or Redis with 5 GB storage | $10 | One region, no persistent volumes, young company |
| Heroku Eco + Essential-0 | Eco dyno ($5); 1 GB Postgres ($5) | $10 | Not always on: Eco sleeps after 30 minutes without traffic |
| DigitalOcean App Platform | 512 MiB container ($5); dev database ($7) | $12 | Dev database isn't backed up by default; managed Postgres costs more |
| Heroku Basic + Essential-0 | Basic dyno, 512 MB ($7); 1 GB Postgres ($5) | $12 | Postgres capped at 1 GB and 20 connections, no rollback |
| Render | Starter, 512 MB ($7); Basic-256mb Postgres ($6) + 1 GB ($0.30) | $13.30 | The next web size is 2 GB at $25 |
| Koyeb Pro | $29 plan; eco-micro 512 MB ($2.68); Small Postgres ($29.76) + 1 GB ($0.50) | $52 to $62 | No free plan for new accounts; $10 of included compute may or may not cover the database |
Hetzner bills in euros, so its row sits among the $6 to $7 options rather than at an exact dollar figure. The Railway row is an estimate: $10 per GB of RAM and $20 per vCPU a month, applied to an app averaging 256 MB and 0.05 vCPU, and a database averaging 256 MB and 0.02 vCPU. The Northflank rows use its rates of $0.01667 per vCPU-hour and $0.00833 per GB-hour.
What if the app needs 1 GB of memory?
Many real apps outgrow 256 or 512 MB: a Next.js server, a Django app with a few workers, anything that loads a model or a big dependency. Here is the same comparison with an always-on app that needs 1 GB:
| Platform | 1 GB app + small Postgres | Per month |
|---|---|---|
| Hetzner VPS + Coolify | The same 4 GB server as above | €5.99 |
| EthioDeploy Pro | 1 GB container, database included | $10 |
| Fly.io | shared-cpu-1x 1 GB ($6.70) + Developer Postgres ($4) | $10.70 |
| Northflank | 0.5 vCPU, 1 GB ($12) + Postgres ($2.70) + 1 GB disk | $14.82 |
| Railway | 1 GB and 0.1 vCPU on average ($12) + database as above ($3.05) | About $15 |
| DigitalOcean App Platform | 1 GiB fixed ($10) or shared ($12) + dev database ($7) | $17 to $19 |
| Render | No 1 GB size: 2 GB ($25) + Postgres ($6.30) | $31.30 |
| Heroku | Standard-2X, 1 GB ($50) + Essential-0 ($5) | $55 |
| Koyeb Pro | $29 plan + eco-small 1 GB ($5.36) + Small Postgres ($30.26) | $55 to $65 |
At this size the order changes. EthioDeploy and Fly.io are within a dollar of each other, and Heroku's price jumps because its only 1 GB dyno is Standard-2X. A self-managed server is still the cheapest by far, for the same reason as before: you pay for the machine, not for each app.
What do the cheap options leave out?
- Northflank Sandbox allows 2 services, 2 jobs and 1 database. Northflank asks for a payment method before you create anything, and its billing docs say the free tier shouldn't run production apps. On October 30, 2026 it also had a security incident in which stored secrets were decrypted; its report is linked below.
- Fly.io puts new accounts on a Free plan with $5 of usage a month once you add a card, but the app and database above add up to more than $5, and Fly.io then bills the whole month at standard rates, including the first $5. The Developer Postgres has 256 MB of memory per node, 20 connections, no maintenance window and no direct support, and a paused cluster takes about 15 seconds to wake.
- Railway bills what each service uses. That suits small, quiet apps and makes the bill hard to predict for busy ones. Its Postgres is a template on a volume, so backups are something you turn on.
- A VPS with Coolify is cheap for the hardware, and every app and database on it is your responsibility: OS updates, Coolify updates, backups and alerts. Coolify needs 2 CPU cores and 2 GB of RAM for itself. Our Coolify vs a managed PaaS post covers that work in detail.
- EthioDeploy runs in one region with no persistent volumes and no cron service type. Pro's usage quota covers about 6 small sites or 2 mid-sized apps; past it, usage comes out of a prepaid wallet.
- Heroku Essential-0 holds 1 GB and 20 connections, with no rollback and an expected uptime of 99.5%. Eco is the only plan under $7, and it sleeps.
Is there a free Heroku alternative?
Heroku itself has had no free dynos since November 2022. Among the options here, Northflank's Sandbox is the only free one that keeps an app and a database running without sleeping. EthioDeploy's Free plan runs one project with a 512 MB database, but the app sleeps after 30 minutes idle and wakes on the next request. Render has free web services that sleep after 15 minutes and a free Postgres that expires after 30 days. For the full list, see free backend hosting.
Which one should I pick?
- A hobby project or a demo that should stay up for free: Northflank's Sandbox, accepting that its docs rule out production use.
- A tiny production API that barely uses memory: Fly.io or Railway, both under $7.
- Several apps and you are comfortable on a Linux server: a Hetzner server with Coolify. Nothing else here comes close on price per app.
- One app that needs 1 GB with its database, at a fixed price: EthioDeploy Pro at $10, or Fly.io at $10.70 if you want to pick a region.
- You want what Heroku does, with cron jobs and a polished managed Postgres: Render, at $13.30.
Moving off Heroku involves more than price. Procfiles, Scheduler jobs and add-ons map differently on each platform; the Heroku alternatives roundup covers that side.
Questions
Northflank's free Sandbox costs $0 for one service and one database, but its docs say it shouldn't be used for production. Among paid options, Fly.io is $6.19 a month for a 256 MB machine and its $4 Developer Postgres, and Railway is about $6.55 for a small, mostly idle app and database. On Heroku the same pair costs $12.
$12 a month for a Basic dyno ($7, 512 MB, always on) and an Essential-0 Postgres ($5, 1 GB, 20 connections). Eco at $5 is cheaper but sleeps after 30 minutes without traffic. A 1 GB dyno is Standard-2X at $50.
Yes, by a lot once you have several apps. Hetzner's CX23 with 2 vCPU and 4 GB is €5.99 a month plus VAT and can hold several small apps and databases, and self-hosted Coolify is free. You take on OS updates, Coolify updates, backups and monitoring yourself.
For a small app and Postgres, Railway is usually cheaper: about $6.55 a month of usage against $13.30 on Render. For an app that keeps 2 GB and a full vCPU busy, Render's fixed $25 instance costs less than Railway's usage.
EthioDeploy Pro is $10 a month for always-on containers with 1 GB each and a Postgres, MySQL or Redis database with 5 GB of storage. On Heroku, a 1 GB dyno plus the smallest Postgres is $55. For a 512 MB app, Heroku Basic plus Essential-0 is $12.
Sources
Checked on November 24, 2026:
- Heroku pricing
- Heroku Eco dyno hours
- Heroku Postgres plans
- Render pricing
- Railway pricing plans
- Fly.io pricing
- Fly.io Free plan
- Fly.io Managed Postgres
- Fly.io Managed Postgres Developer plan
- Koyeb pricing
- Koyeb pricing FAQ
- Koyeb databases
- Koyeb is joining Mistral AI
- Northflank pricing
- Northflank billing docs
- Northflank incident report: October 30 security incident
- DigitalOcean App Platform pricing
- Hetzner Cloud: Cost-Optimized servers
- Coolify pricing
- Coolify installation requirements
Push a repo. Get a URL.
Start freeJoin the EthioDeploy Telegram
Release notes as they ship, plus deploy help from the team and other developers.