Heroku vs Render vs Railway pricing is hard to compare, because each one sells something different: fixed dynos, fixed instances plus storage, or per-second usage. This guide prices the same small app on all three: one web service with 512 MB of RAM and one Postgres database with 1 GB of data, running all month. You get the monthly total, the math behind it, and where each platform is the better pick. A fourth column shows Hubfly space, so you can see what a plain allocation-billed container costs next to them. Every price links to the vendor's own page, read on 9 November 2026.
Try it on Hubfly space: price your own app in the Create Container cost panel before you deploy anything.
Heroku vs Render vs Railway pricing: the short answer
| Platform | Web app | Postgres (1 GB of data) | Monthly total | How it bills |
|---|---|---|---|---|
| Heroku | Basic dyno, 0.5 GB: $7.00 | Essential-0: $5.00 | $12.00 | Fixed monthly maximum, prorated to the second |
| Render | 512 MB instance: $7.00 | $6 instance + 1 GB storage at $0.30: $6.30 | $13.30 | Fixed plan price, prorated to the second, Hobby workspace $0 |
| Railway | Usage | Usage | $7.26 quiet / $20.45 busier ($5 minimum) | Per second of measured CPU, RAM and volume |
| Hubfly space | 0.5 vCPU, 512 MB, always on: $2.23 | Managed PostgreSQL Nano + 1 GiB: $1.92 | $4.15 | Allocated CPU and RAM, no plan or seat fee |
Prices from Heroku pricing, Render pricing, Railway pricing and Hubfly space pricing, all read 9 Nov 2026. Bandwidth isn't included; it has its own section below.
The cheapest line isn't automatically the right one. Render's $13.30 includes point-in-time recovery for the database; the $4.15 doesn't include any backups. Read "Where each one wins" before you decide.
The app being priced
To compare like with like, the same setup is priced everywhere:
-
Web service: one instance with 512 MB of RAM and about half a CPU, always on. That matches Render's
0.5c-512mbplan and Heroku's 0.5 GB dynos. - Database: Postgres with 1 GB of data, always on.
- A month is 730 hours.
- No free tiers in the totals. Free tiers sleep, expire or cap out, so they get their own section.
Heroku: $12.00 a month
- Basic dyno: $7 a month, 0.5 GB RAM (pricing).
- Heroku Postgres Essential-0: $5 a month, 1 GB disk, 20 connections (pricing).
- $7 + $5 = $12.00.
Heroku "prorates all costs to the second", and the listed price is the most you pay for a dyno that runs all month (usage and billing). It bills on wall-clock time, so an idle dyno costs the same as a busy one.
Cheaper option: Eco is $5 a month for a pool of 1,000 dyno hours shared by all your Eco dynos, and an Eco web dyno sleeps after 30 minutes without web traffic (Eco dyno hours). Eco plus Essential-0 is $10 if a sleeping app is fine.
What the $5 database doesn't include: Essential plans have no rollback. Rollback starts on the Standard tier (4 days) (Postgres plans).
Render: $13.30 a month
- Web service, "less than 1 CPU" with 512 MB (
0.5c-512mb): $7 a month (pricing). - Postgres,
0.1c-256mb: $6 a month (pricing). - Postgres storage: $0.30 per GB a month (pricing). You pick the size when you create the database: 1 GB or any multiple of 5 GB, and it can grow but never shrink (Render docs). So 1 GB adds $0.30.
- Hobby workspace: $0 plus compute (pricing).
- $7 + $6 + $0.30 = $13.30.
Watch the storage steps. After the first GB, Render's sizes jump in 5 GB steps, so a database with 6 GB of data needs a 10 GB disk ($3.00), not 6 GB.
Two more lines can change the answer. The Pro workspace is $25 a month on top of compute once you need more than one seat, and Hobby includes 5 GB of bandwidth, then $0.15 per GB (pricing).
Railway: $7.26 quiet, $20.45 busier
Railway bills what your services actually use, per second (pricing):
- CPU: $0.00000772 per vCPU-second
- Memory: $0.00000386 per GB-second
- Volume: $0.00000006 per GB-second
Over a 730-hour month (2,628,000 seconds):
- CPU: $0.00000772 × 2,628,000 = $20.29 per vCPU-month
- Memory: $0.00000386 × 2,628,000 = $10.14 per GB-month
- Volume: $0.00000006 × 2,628,000 = $0.16 per GB-month
The Hobby plan is a $5 minimum that covers your first $5 of usage: a $3 month bills $5, an $8 month bills $8 (understanding your bill).
Because the bill follows usage, here are two cases for the app and database together:
- Quiet (average 0.1 vCPU and 0.5 GB RAM, 1 GB volume): 0.1 × $20.29 + 0.5 × $10.14 + 1 × $0.16 = $2.03 + $5.07 + $0.16 = $7.26.
- Busier (average 0.5 vCPU and 1 GB RAM, 1 GB volume): 0.5 × $20.29 + 1 × $10.14 + $0.16 = $10.14 + $10.14 + $0.16 ≈ $20.45 (unrounded $10.144 + $10.144 + $0.158).
Memory is the line people underestimate. Postgres and most web runtimes hold their RAM even when nobody is using the app, so check the memory graph of the app you have today before you trust the quiet case.
One limit worth knowing: Hobby allows up to 5 GB of volume storage. A bigger database means the Pro plan, which has a $20 minimum (pricing).
Hubfly space: $4.15 a month
Hubfly space bills the CPU and RAM you allocate, not what you use (pricing):
- CPU: $0.004 per vCPU-hour
- RAM: $0.002 per GB-hour
- Storage: $0.00001536 per GB-hour (about $0.011 per GB-month)
Web service: a Dedicated container with 0.5 vCPU, 512 MB of RAM, 4 GB of disk and Auto Sleep off:
- CPU: 0.5 × $0.004 × 730 = $1.46
- RAM: 0.5 × $0.002 × 730 = $0.73
- Disk: 4 × $0.00001536 × 730 = $0.04
- Total: $2.23 a month
That's exactly what the cost panel shows when you create the container:
Database: Managed PostgreSQL, Nano size (0.25 vCPU, 512 MiB), with 1 GiB of storage:
- Compute: (0.25 × $0.004 + 0.5 × $0.002) × 730 = $1.46
- Management fee, 30% of compute while running: $0.44
- Storage, 1 GiB of data plus the 1 GiB system disk: 2 × $0.00001536 × 730 = $0.02
- Total: $1.92 a month
$2.23 + $1.92 = $4.15. There's no workspace, seat or project fee on top. For a closer look at the database side, see How to get a managed PostgreSQL database for about $2 a month.
Running Postgres in a container instead: a second 0.5 vCPU / 512 MB container ($2.23) plus a 1 GB volume ($0.01) comes to $4.48 for the pair (unrounded $2.235 × 2 + $0.011). You manage Postgres yourself.
Where each one wins
A lower total doesn't settle it. Here's where each platform is the better pick, based on what their own pages say.
Heroku wins if you're already there or need its add-ons. The Elements Marketplace sells add-ons that plug straight into an app (pricing). Staying costs you no migration work, and the $5 Postgres plan is fine for small data. Rollback, though, starts at the Standard Postgres tier.
Render wins on database safety at a low price. Paid Render Postgres databases include point-in-time recovery: a 3-day window on a Hobby workspace and 7 days on Pro (pricing). The page also lists logical exports for paid instances. If losing an hour of data would hurt, $13.30 with recovery beats $4.15 without it.
Railway beats Heroku and Render when your app is quiet most of the time. You pay for what runs, and Serverless can put a service to sleep once it stops sending outbound traffic; the docs say it sleeps somewhere between 5 and 10 minutes after the last outbound packet (Serverless docs). The pricing page also lists built-in database and volume backups (pricing).
Hubfly space wins on the lowest fixed price for an always-on app. $4.15 is a straight line: allocation × rate × hours, with no plan fee. You can also set a monthly budget cap per project. The dashboard describes it as a hard stop: you get emails at 80% and 90%, and at the cap the project's running containers and managed services are stopped and new starts and deploys are blocked until you raise or remove the cap, or the next month starts. Stopped workloads don't restart on their own, so set the cap above your normal monthly spend.
Where Hubfly space loses today:
-
No database backups yet. Automatic backups for Managed PostgreSQL are marked "coming soon" in the dashboard, and exports aren't available yet. Run your own scheduled
pg_dumpto somewhere else until they ship. - Allocation billing charges idle time. An idle 0.5 vCPU container still costs $1.46 a month of CPU. For an app that's idle most of the day, turn Auto Sleep on so it stops billing compute while asleep.
- A smaller ecosystem than Heroku's add-on marketplace.
When the database grows to 10 GB
Small apps rarely stay small. Here's the same app with 10 GB of Postgres data:
| Platform | What changes | New total |
|---|---|---|
| Heroku | Essential-1 ($9, 10 GB) instead of Essential-0 | $7 + $9 = $16.00 |
| Render | 10 GB of storage at $0.30 | $7 + $6 + $3.00 = $16.00 |
| Railway | 10 GB is over the Hobby limit of 5 GB, so you need Pro ($20 minimum) | $20.00 at least, more if usage passes $20 |
| Hubfly space | Managed Nano with 10 GiB: $2.02 | $2.23 + $2.02 = $4.26 (unrounded $2.235 + $2.021) |
Hubfly space math for 10 GiB: $1.46 compute + $0.44 management + 11 GiB × $0.00001536 × 730 ($0.12) = $2.02.
Free tiers: what you actually get
None of these are in the totals, because each one sleeps, expires or caps out.
| Platform | What's free | The catch |
|---|---|---|
| Heroku | No free dyno plan on the pricing page. Eco is the cheapest at $5 for 1,000 hours (Eco) | Eco web dynos sleep after 30 minutes without traffic |
| Render | Free web service and free Postgres (free plans) | Web spins down after 15 minutes without inbound traffic and takes about a minute to come back; 750 free hours a month; free Postgres expires after 30 days, then 14 days' grace before deletion |
| Railway | 30-day trial with $5 credits, then $1 a month (pricing) | Up to 1 vCPU and 0.5 GB RAM per service and 0.5 GB of volume storage after the trial |
| Hubfly space | 360 compute hours a month on the shared tier (pricing) | Shared containers auto-sleep when idle. Creating resources needs a one-time deposit of $5 or more, which stays in your balance as credit |
Render's free database is the one to watch: it's gone about 44 days after you create it. Fine for a demo, dangerous for anything real.
Bandwidth: the line that breaks totals
- Render: 5 GB a month on Hobby, then $0.15 per GB (pricing).
- Railway: $0.05 per GB of egress (pricing).
- Heroku and Hubfly space: confirm egress terms on their pricing pages before you plan heavy traffic.
At 50 GB a month, Render adds 45 × $0.15 = $6.75 and Railway adds 50 × $0.05 = $2.50. For an image- or video-heavy app, bandwidth can cost more than compute.
What can go wrong
- You compare allocation with usage. Railway's quiet case assumes 0.5 GB of RAM in total. If your app and database hold 1.5 GB all month, memory alone is $15.22. Fix: open your current app's memory graph and use the real number.
- You forget Render's storage line. The $6 database price doesn't include storage. Fix: add $0.30 per GB, and remember sizes past 1 GB come in 5 GB steps.
- The database outgrows the plan. Heroku Essential-0 stops at 1 GB, and Railway Hobby at 5 GB of volume. Fix: price the database at the size it will be in six months.
- A team fee appears later. Render Pro is $25 a month; Railway Pro is a $20 minimum. Fix: if more than one person will run the workspace, price in Render Pro or Railway Pro from the start.
-
You assume backups. Heroku Essential has no rollback, and Hubfly space Managed PostgreSQL has no automatic backups yet. Fix: schedule
pg_dumpto separate storage on any plan without recovery, and run one practice restore.
FAQ
Is Railway cheaper than Render?
For a quiet app, yes: about $7.26 against $13.30 for this setup. For a busy one, no: about $20.45. Railway follows your usage; Render charges the plan price whatever you use.
Is Render cheaper than Heroku?
Not for this setup. Heroku is $12.00 ($7 dyno + $5 Postgres) and Render is $13.30 ($7 + $6 + $0.30 storage). At 10 GB of data they tie at $16.00.
What's the cheapest way to host a small app with Postgres in 2026?
Of these four, Hubfly space at $4.15 a month for an always-on app. Railway's usage billing beats Heroku and Render when the app is idle most of the day, but its Hobby plan never bills less than $5. Check what each price leaves out, especially backups.
Does Heroku still have a free tier?
No. The pricing page lists no free dyno plan; the cheapest is Eco at $5 a month for 1,000 dyno hours, and Eco web dynos sleep after 30 minutes without traffic.
Does Render delete free databases?
Yes. A free Render Postgres database expires 30 days after creation and is deleted after a further 14-day grace period unless you upgrade it.
How does the Railway $5 Hobby plan work?
It's a minimum, not a fee on top. Your first $5 of usage is covered; if you use $8, you pay $8.
Which one includes database backups at this price?
Render includes point-in-time recovery (3 days on Hobby). Railway's pricing page lists built-in database and volume backups. Heroku Essential has no rollback, and Hubfly space Managed PostgreSQL backups are still coming.
Go further on Hubfly space
- Move an existing app: follow How to migrate from Render to Hubfly space or How to move your app from Railway to Hubfly space.
- Cap your spend: set a monthly budget on the project so a busy month can't surprise you. At the cap, running apps stop, so leave headroom. See the billing docs.
- Add a managed database: create a Managed PostgreSQL instance and bind it to your app. See the databases docs.
Weighing more than these three? Best Heroku alternatives in 2026 prices seven options.
Price your own app
Your Hubfly space bill for a container is one formula: (vCPU × $0.004 + GB RAM × $0.002) × 730 + disk GB × $0.011. For this post's web service: (0.5 × 0.004 + 0.5 × 0.002) × 730 + 4 × 0.011 = $2.23.
Try it on Hubfly space: set your sizes in the Create Container step and the cost panel shows the monthly price before you deploy.
By Octave · drafted with AI, tested on Hubfly · Last updated 9 November 2026


Top comments (0)