Softwr

Cloud · head to head

Heroku vs Railway

Heroku logo

Heroku

Cloud

Cloud Application Platform

From
$5/month
Free plan
No
Railway logo

Railway

Cloud

Cloud platform that deploys apps, databases and services from a repository

From
Free
Free plan
Yes

The short version

  • Heroku is a cloud platform as a service; Railway is an infrastructure platform.
  • Railway has a free plan, then $20/mo; Heroku starts at $5/mo.
  • Only Heroku lists dynos (containers); only Railway lists git integration.
  • Where Heroku falls short: there is no free dyno tier; the cheapest Eco dyno is $5 per month.
  • Where Railway falls short: the free plan carries $1 of monthly credit and caps a service at 1 vCPU and 0.5 GB.

How do Heroku and Railway differ?

Heroku and Railway differ on starting price ($5/month against Free), pricing model (Subscription against Usage-based) and free tier (No against Yes). Only the attributes on which Heroku and Railway actually diverge.

Attributes where Heroku and Railway differ
AttributeHerokuRailway
Starting price$5/monthFree
Pricing modelSubscriptionUsage-based
Free tierNoYes
PlatformsWeb, API, WorkersWeb, API, Self-hosted
Founded20072021

Identical on both: category (Cloud).

Which features does each one have?

They share 5 listed features; 15 appear only for Heroku and 15 only for Railway. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Heroku

  • Git-based deployment
  • Buildpacks
  • Dynos (containers)
  • Add-ons marketplace
  • Postgres database
  • Logging
  • API
  • Slack

Only in Railway

  • Git integration
  • Zero-config deployment
  • PostgreSQL
  • MySQL
  • Redis
  • Custom domains
  • Monitoring
  • GitLab

Both cover

  • Environment variables
  • GitHub
  • HTTPS
  • Cloud deployment
  • Web support

What is each one used for?

Heroku is most often brought in for application hosting; Railway for deploying applications and databases without managing servers. The jobs each tool is most often brought in to do.

Heroku

  • Application hostingnot Railway
  • Database as a servicenot Railway
  • CI/CD pipelinesnot Railway
  • API deploymentnot Railway

Railway

  • Deploying applications and databases without managing serversnot Heroku
  • Running preview environments and services straight from a repositorynot Heroku

Where do Heroku and Railway fall short?

Heroku's most cited limit: there is no free dyno tier; the cheapest Eco dyno is $5 per month. Railway's: the free plan carries $1 of monthly credit and caps a service at 1 vCPU and 0.5 GB. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Heroku

  • There is no free dyno tier; the cheapest Eco dyno is $5 per month
  • Eco dynos sleep after 30 minutes of inactivity, are restricted to personal accounts and allow only 2 process types
  • Free SSL and 10 process types start at the Basic dyno at $7 per month
  • Private and Shield dyno types require a Private Space, which is billed on top of the dynos
  • Private Space dynos start at $250 per month for Private-M and $500 per month for Private-L
  • Dyno prices are per dyno per month, so an app with several process types multiplies the bill

Railway

  • Plan fees are usage credits rather than allowances, so the $5 Hobby and $20 Pro fees are spent on compute and anything beyond is billed on top
  • The free plan carries $1 of monthly credit and caps a service at 1 vCPU and 0.5 GB
  • Compute is metered per second for both memory and CPU, so cost tracks uptime rather than traffic and an idle service still bills
  • Egress is $0.05 per GB on top of compute
  • The Pro fee is per workspace rather than per user or per project

How much do Heroku and Railway cost?

Heroku starts at $5/mo; Railway has a free plan, with paid plans from $20/mo. Plan by plan below, from each vendor's own pricing page.

Heroku

$5/month
  • Eco Dyno$5/mo
    • 0.5 GB RAM
    • Git/Docker deploy
    • Custom domains
  • Basic Dyno$7/mo
    • 0.5 GB RAM
    • Always-on
    • Free SSL
  • Standard-1X Dyno$25/mo
    • 0.5 GB RAM
    • Horizontal scaling
    • App metrics
  • Standard-2X Dyno$50/mo
    • 1 GB RAM
    • Horizontal scaling
    • App metrics

Railway

Free
  • FreeFree
    • $5 credit/month
    • Community support
    • Unlimited projects
  • Pro$20/mo
    • Private repos
    • Priority support
    • Advanced monitoring

Which should you pick?

Choose Heroku if

  • You need git-based deployment.
  • You work on Web, API, Workers.
  • You also want buildpacks.

Choose Railway if

  • You need git integration.
  • You want to start without paying.
  • You work on Web, API, Self-hosted.
  • You also want zero-config deployment.

Questions people ask

Is Heroku or Railway better?
It depends on the job. Heroku fits application hosting; Railway fits deploying applications and databases without managing servers. Heroku starts at $5/month and Railway at Free.
Which is cheaper, Heroku or Railway?
Railway has a free tier; the other does not. Paid plans start at $5/month for Heroku and Free for Railway.
Does Heroku or Railway run on more platforms?
Heroku runs on Web, API, Workers. Railway runs on Web, API, Self-hosted.
Can I use Railway for free?
Yes. Railway has a free tier, so you can try it without paying. Heroku starts at $5/month.
What is Heroku best used for?
Heroku is most often used for application hosting, database as a service, ci/cd pipelines, api deployment. Of those, application hosting and database as a service are not what Railway is typically brought in for.
What can Heroku do that Railway cannot?
Heroku covers Git-based deployment, Buildpacks, Dynos (containers), Add-ons marketplace. Railway covers Git integration, Zero-config deployment, PostgreSQL, MySQL. Both handle Environment variables, GitHub, HTTPS, Cloud deployment.

Answered from the vendors’ own pages

Heroku: How much does Heroku cost?

Heroku dyno pricing starts at $5 per month USD for the Eco tier (with 30-minute inactivity sleep), $7 per month for Basic (always-on), and scales up to $1,500 per month for Performance-2XL with 126 GB RAM.

Source
Railway: How much does Railway cost?

Railway's Hobby plan is $5 per month and includes $5 of monthly usage credit. Pro is $20 per month per workspace with $20 of credit included. Enterprise is quoted. Usage beyond the included credit is billed per second.

Source
Heroku: What is the cheapest always-on Heroku plan?

The Basic Dyno at $7 per month USD is Heroku's cheapest always-on container option. It provides 0.5 GB RAM, free SSL, and support for 10 process types.

Source
Railway: Does Railway have a free tier?

Yes, two. A one-time Free Trial gives $5 of credit valid for 30 days, and an ongoing Free plan includes $1 per month with 1 vCPU and 0.5 GB per service, 1 replica and 3 days of log history.

Source
Heroku: How is Heroku Postgres priced?

Heroku Postgres Essential tier (shared resources) starts at $5-$20 per month for 1-32 GB disk. Standard tier (dedicated) ranges $50-$12,000 per month. Premium, Private, Shield, and Advanced tiers offer higher performance at corresponding prices.

Source
Railway: What are Railway's resource limits per plan?

The Free plan allows 1 vCPU and 0.5 GB per service with 1 replica. Hobby raises that to 48 vCPU and 48 GB with 6 replicas. Pro allows 1,000 vCPU and 1 TB per service with 42 replicas and 30 days of log history.

Source
Railway: How does Railway bill usage above the included credit?

Railway charges memory at $0.00000386 per GB per second and CPU at $0.00000772 per vCPU per second, with storage volumes at $0.00000006 per GB per second, plus separate egress and object storage fees.

Source
Share

Related pages

Other head to heads