# Heroku vs Railway in 2026: pricing, deploys and databases compared

Heroku bills a dyno tier you pick. Railway bills CPU and memory per second for what a running service uses, after a plan fee that includes usage. Neither page, read on November 3, 2026, is a forecast of the other. Unbroker is a third option: app CPU and memory follow the capacity you configure while replicas run.

Canonical URL: https://unbroker.cloud/compare/heroku-vs-railway
Reviewed: Checked Nov 3, 2026. Heroku and Railway figures were read on railway.com/pricing and heroku.com/pricing that day.

[Home](https://unbroker.cloud) / [Alternatives](https://unbroker.cloud/alternatives) / [Heroku vs Railway](https://unbroker.cloud/compare/heroku-vs-railway)

[Deploy your first service](https://app.unbroker.cloud/login)

## At a glance

The table uses each vendor's own published numbers. It does not turn a dyno into a per-second estimate, or the other way around.

| Topic | Heroku | Railway | Unbroker |
| --- | --- | --- | --- |
| Plan shape | Eco $5 a month, sleeps after 30 minutes, personal accounts. Basic $7, always on. Standard-1X $25. Performance-M $250. The pricing page did not list a $0 dyno. | Hobby $5 a month with $5 of usage. Pro $20 a month per workspace with $20 of usage. The fee is a minimum commitment. | Free is $0 inside published caps. Pro is $25 a month with $25 of usage credit. The credit does not roll over. |
| App compute | You pay the dyno tier you select. Eco and Basic list 0.5 GB of RAM. Standard-1X lists 0.5 GB. | CPU and memory are billed per second of use. The published monthly constants are $20 per vCPU and $10 per GB, held for a full month. A stopped service does not accrue that compute charge. | $0.03 per vCPU-hour and $0.015 per GiB-hour of the capacity you configure, while replicas run. |
| Deploy | The Eco row lists deploy with Git and Docker. | Railway documents Git and Docker deployment, a CLI, and agent integrations. This page does not restate the template catalog. | A Git repository and a framework preset. Pro also builds a Dockerfile or runs an image. GitHub-connected services can deploy on push. Pro can open a pull-request preview. |
| Database | Heroku Postgres Essential-0 is $5 a month, with 1 GB of disk, a connection limit of 20, and shared RAM. | Database services run on the platform. The Postgres template page describes a single node, and high availability as a separate conversion. This page does not rank backup guarantees. | An Apps database node you operate, or a provider-operated cluster on Pro. Recovery depends on the engine and plan. |

## Pricing models

Heroku's pricing page lists a ladder of dyno types. Eco is $5 a month and sleeps after 30 minutes of inactivity. Basic is $7 and is always on. Standard-1X is $25. Performance-M is $250. Those are fixed monthly prices for the tier, not a reading of CPU used that second.

Railway's pricing page lists Hobby at $5 a month with $5 of included usage, and Pro at $20 a month per workspace with $20 of included usage. Past that credit, CPU is billed at the per-second rate whose monthly constant is $20 per vCPU, and memory at $10 per GB. Billing is still per second.

A quiet Eco dyno and a Railway service that bursts are not the same invoice. Price the process you will actually run on each page. Do not add the two ladders together.

## Deploys

Heroku's Eco row says you can deploy with Git and Docker. This page does not restate buildpacks, review apps, or the CLI, because those are not on the pricing table that was read.

Railway documents Git and Docker deployment, a CLI, and agent integrations. A running service meters CPU and memory even with no traffic. A stopped service does not accrue that compute charge.

On Unbroker you connect a Git repository and use a framework preset. Pro also builds a Dockerfile or runs a container image. A GitHub-connected service can deploy on push to the configured branch, and Pro can open a preview for a pull request.

## Databases

Heroku Postgres Essential-0 is listed at $5 a month, with 1 GB of disk, a connection limit of 20, and shared RAM. Standard-0, a different tier, is listed at $50 a month with 4 GB of RAM and 64 GB of disk. The plan rows also name downtime figures. This page does not treat those figures as a promise beyond the row.

Railway's Postgres template page, read the same day, says the template deploys a single node that Railway maintains. High availability, with automatic failover, is a conversion you apply later. Backups are described as a feature you add. This comparison does not rank those controls against Heroku's plan rows.

Unbroker can run a database image as a private Apps service, or a provider-operated cluster on Pro. You still own schemas, queries, and the recovery plan you test. Backup behavior is not the same on every engine.

## When to pick Heroku

Pick Heroku when you want a named dyno tier with a fixed monthly price, and the app already thinks in dynos, config vars, and Heroku Postgres. Eco fits a personal app that can sleep. Standard-1X is the always-on tier at the price listed above.

## When to pick Railway

Pick Railway when you want CPU and memory billed from what the service uses, per second, and a plan fee that includes a matching usage credit. A stopped service does not accrue that compute charge. If the workload sits idle, that meter and a dyno you leave running are different bills.

## A third option: Unbroker

Unbroker hosts the app from Git and can add a provider-operated database or a Linux cloud server on the same account. App CPU and memory follow configured capacity while replicas run, at $0.03 per vCPU-hour and $0.015 per GiB-hour. Pro is $25 a month with $25 of usage credit.

A Linux cloud server is a separate flat monthly size, on Pro, in the European Union, US Central, US East, and US West. It is not a dyno and not a per-second app meter. Read the [Heroku alternative](/alternatives/heroku) and the [Railway alternative](/alternatives/railway) for the longer notes. [Usage and capacity](/blog/usage-vs-capacity-billing) is the billing difference written out.

## Questions

### Is Railway better than Heroku?

Not as a universal answer. Heroku sells a dyno tier at a fixed monthly price. Railway meters CPU and memory per second after a plan fee. The better fit is the bill and the workflow you already have, not a winner on this page.

### How do Railway and Heroku prices differ?

It depends on the workload. On November 3, 2026, Heroku listed Eco at $5 a month for a dyno that sleeps, and Standard-1X at $25. Railway listed Hobby at $5 with $5 of usage, then per-second CPU and memory. A quiet dyno and a busy service are not the same invoice. Compare the process you will run. This page does not convert one price into the other.

### Does Heroku still have a free tier?

The Heroku pricing page read on November 3, 2026 did not list a $0 dyno. The lowest listed dyno was Eco at $5 a month, and it sleeps after 30 minutes of inactivity. Personal accounts only, on that row.

### How do I move from Heroku to Railway or another PaaS?

From Heroku to Unbroker, start at the Heroku migration page: inventory, recreate from Git, rehearse Postgres, then DNS. From Railway to Unbroker, use the Railway migration page. This page does not describe a Heroku-to-Railway transfer.

## Sources

- [Heroku pricing](https://www.heroku.com/pricing)
- [Railway pricing](https://railway.com/pricing)
- [How Railway billing works](https://docs.railway.com/pricing/understanding-your-bill)
- [Railway PostgreSQL](https://docs.railway.com/databases/postgresql)
- [Unbroker pricing](https://unbroker.cloud/pricing)

## Related

- [Heroku alternative](https://unbroker.cloud/alternatives/heroku)
- [Railway alternative](https://unbroker.cloud/alternatives/railway)
- [Migrate from Heroku](https://unbroker.cloud/migrate/heroku)
- [Migrate from Railway](https://unbroker.cloud/migrate/railway)
- [Migrate from Render](https://unbroker.cloud/migrate/render)
- [Railway pricing](https://unbroker.cloud/compare/railway-pricing)
- [Railway vs Render](https://unbroker.cloud/compare/railway-vs-render)
- [Fly.io vs Railway](https://unbroker.cloud/compare/fly-io-vs-railway)
- [Usage and capacity](https://unbroker.cloud/blog/usage-vs-capacity-billing)
