If you're shipping a small web app with a database, the old default was Heroku. In 2026 most developers land on one of three platforms instead: Railway, Render or Fly.io. All three deploy from Git and run Postgres next to your code. They differ on billing, free plans and how much database work they handle.
Our verdict: Railway is the best app host for most small projects in 2026. Its usage-based pricing makes a web service plus Postgres cheaper than the fixed instances elsewhere, and its dashboard is the fastest way from repo to running app. Render is the pick if you want a predictable flat bill and a real free tier, and Fly.io wins when your users are spread across the world.
The Short Version
Best overall: Railway. Pay per second for what you use, $5 Hobby plan includes $5 of usage, and the smoothest setup of the three.
Best for predictable bills and free hosting: Render. Fixed instance prices from $7 a month, free web services that sleep after 15 minutes, and Postgres from $6 a month.
Best for global apps: Fly.io. 17 regions, Machines from $2.19 a month, and managed Postgres with high availability from $38 a month.
Best for Next.js frontends: Vercel, paired with a database elsewhere. Cheapest at scale: Coolify on your own VPS.
Prices at a glance
Prices checked October 15, 2026, on each company's own pricing page.
| Platform | Pricing model | Free option | Smallest always-on app | Managed Postgres from | Regions |
|---|---|---|---|---|---|
| Railway | Usage, billed per second | $5 trial credit, then Free plan with $1/mo | Hobby $5/mo, includes $5 usage | Usage-based (RAM, CPU, $0.15/GB volume) | 4 |
| Render | Fixed instance + plan | Free web service, sleeps after 15 min | $7/mo (512 MB) | $6/mo (256 MB), storage $0.30/GB | 5 |
| Fly.io | Usage, per Machine | Trial: 2 hours of runtime or 7 days | $2.19/mo (256 MB) | $38/mo (1 GB, HA), storage $0.28/GB | 17 |
Railway: the fastest path from repo to app
Railway shows your project as a canvas: drop in a GitHub repo, add Postgres from the same menu, and the two connect over a private network with the connection string already filled in. Cron jobs are a schedule field on any service, with runs at least 5 minutes apart.
Pricing is the big difference. Instead of choosing an instance size, you pay for what each service actually uses: $20 per vCPU per month, $10 per GB of RAM per month and $0.15 per GB of volume storage, billed by the second. Hobby is $5 a month and includes $5 of usage. Pro is $20 a month per workspace with $20 of usage. New accounts get a $5 trial credit for 30 days, then a Free plan with $1 of monthly credit and 0.5 GB of RAM per service.
An optional Serverless setting puts idle services to sleep after about 5 to 10 minutes without outbound traffic, so you stop paying for compute. The next request wakes them, slowly, and may return a 502. You can also set a hard spending limit. Postgres can be converted to a high-availability cluster, and Railway runs four regions: California, Virginia, Amsterdam and Singapore.
The catch: usage pricing is hard to predict before launch, and hitting your hard limit takes every workload offline. Railway's Postgres is a maintained template rather than a fully hands-off database, and if you change its image or start command, it's yours to manage.
Render: flat prices and the best free tier
Render feels the most like classic Heroku. You pick an instance type per service and pay a fixed monthly price, prorated by the second. The Hobby workspace is $0 plus compute, with up to 25 services and 5 GB of bandwidth. Pro is $25 a month plus compute, with autoscaling and 25 GB of bandwidth.
Web services start at $7 a month for 512 MB and 0.5 CPU, and $25 gets you 1 CPU and 2 GB. Background workers use the same instance prices. Cron jobs are billed by the minute from $0.00016, with a $1 monthly minimum per job. Postgres starts at $6 a month for 256 MB of RAM, or $19 for 1 GB, with storage at $0.30 per GB and point-in-time recovery for 3 days on Hobby and 7 days on paid workspaces.
The free tier is the most useful of the three. Free web services get 750 instance hours a month per workspace, but they spin down after 15 minutes without traffic and take about a minute to wake. Free Postgres is limited to 1 GB and expires 30 days after you create it. Background workers and cron jobs can't run on free instances.
The catch: you pay for the full instance even when your app idles, and the free database disappears after a month. Render has five regions: Oregon, Ohio, Virginia, Frankfurt and Singapore.
Fly.io: built for running close to users
Fly.io turns your Docker image into lightweight VMs called Machines and lets you place them in any of 17 regions, from Ashburn to Tokyo, Sydney and Johannesburg. That's the main reason to pick it. You drive it from the flyctl command line.
Machines bill by the second while they run. A shared-cpu-1x with 256 MB is $2.19 a month and a shared-cpu-2x with 512 MB is $4.39 in Ashburn, with other regions priced higher. Stopped Machines cost $0.15 per GB of root filesystem, and Machines can auto-stop when idle and restart on the next request. Volumes are $0.15 per GB and egress starts at $0.02 per GB.
Managed Postgres starts at $38 a month for the Basic plan with 1 GB of RAM, plus $0.28 per GB of storage. Every plan includes high availability, automated backups and connection pooling. There's no built-in cron; a Machine can run on a fuzzy hourly, daily, weekly or monthly schedule instead.
The catch: there's no free tier. New accounts get a trial of 2 hours of Machine runtime or 7 days, whichever ends first. Managed Postgres costs more than five times Render's cheapest database, and Fly asks for the most infrastructure knowledge of the three.
Worked example: a small app with Postgres
Here's an estimate for one web service with about 512 MB of RAM and one small Postgres database with 1 GB of data, running all month. These are estimates from published prices, not quotes, and they leave out bandwidth.
- Railway, about $10.65 a month: assuming the app averages 0.5 GB of RAM and 0.1 vCPU, and Postgres averages 0.25 GB and 0.05 vCPU, usage comes to $7.50 for RAM, $3 for CPU and $0.15 for the volume. The $5 Hobby fee counts toward that.
- Render, about $13.30 a month: a $7 Starter web service, a $6 Basic-256mb database and 1 GB of storage at $0.30. Moving to the 1 GB database brings it to about $26.30.
- Fly.io, about $42.67 a month: a $4.39 shared-cpu-2x Machine, $38 for Basic managed Postgres and $0.28 for 1 GB of storage. Self-run Postgres is cheaper but unmanaged.
What about Vercel, Netlify and Coolify?
Vercel is the natural home for a Next.js frontend. Hobby is free but limited to personal, non-commercial use, and Pro is $20 a month per developer seat with $20 of included usage. Teams often pair it with a database on one of the platforms above. Netlify plays the same role for static and Jamstack sites, with a free plan, Personal at $9 a month and Pro at $20 a month with unlimited members.
Coolify gives you a Railway-style dashboard on a server you rent. The self-hosted version is free, and Coolify Cloud is $5 a month to manage two of your servers, plus $3 for each extra one. It's often the lowest bill for several apps, but patching and backups become your job. Our best VPS guide covers which servers to pair it with, and VPS vs local hosting covers when a box at home is enough.
The verdict
Railway is the best app hosting platform for most small projects in 2026. It's the cheapest of the three for a web service plus Postgres, and the quickest to set up.
Choose Render if you'd rather know your bill in advance or need a free tier for demos. Choose Fly.io when latency across regions matters more than price.
FAQ
Is Railway better than Render?
For most small apps, yes. Railway bills per second for the CPU and RAM you actually use, so a web service plus Postgres usually costs less than Render's fixed $7 web and $6 database instances. Render is better for a flat bill or a free demo.
Does Render's free plan sleep?
Yes. Render's free web services spin down after 15 minutes without traffic and take about a minute to wake up. Free Postgres is limited to 1 GB and expires 30 days after creation.
Is Fly.io cheaper than Railway?
For compute alone, Fly.io can be cheap, with Machines from $2.19 a month. With managed Postgres, which starts at $38 a month on Fly.io, a small app usually costs more there than on Railway or Render.
What is the best Heroku alternative in 2026?
Railway is the best Heroku alternative for most developers in 2026, with fast Git deploys, built-in Postgres and plans from $5 a month. Render is the closest match to Heroku's fixed-instance model, and Fly.io is best for multi-region apps.
Where should I host Next.js and Postgres?
Put the Next.js frontend on Vercel, or run the whole app on Railway or Render, which can host both the Node server and Postgres. Vercel's Hobby plan is non-commercial only, so commercial projects need Pro at $20 a month per seat.