Railway vs Fly.io
for running containers.
Both run your containers and bill per second. Railway leans toward a managed workflow; Fly.io toward running Machines in many regions with more control.
Facts checked against each provider's own pages
The short answer
Railway vs Fly.io on the facts
| Railway | Fly.io | |
|---|---|---|
| Category | App platform (PaaS) | App platform (PaaS) |
| Pricing model | Plan fee that counts toward usage, plus per-resource usage (RAM, CPU, egress, volumes)[4] | Pay for resources used, no monthly platform fee[3] |
| Entry paid plan | Hobby $5/mo (includes $5 of usage); Pro $20/mo (includes $20 of usage)[4] | No plans; smallest Machine (shared-cpu-1x, 256 MB) $2.19/mo running continuously in iad/ewr[3] |
| Free tier | 30-day trial with a one-time $5 credit, then $1 of credit per month (1 vCPU / 0.5 GB RAM per service)[7] | No free tier; new accounts get a $1 trial credit, and personal-org bills under $5/mo are waived[3] |
| Compute billing granularity | Per second: $0.00000386 per GB-second of memory, $0.00000772 per vCPU-second[8] | Machines billed per second while running; stopped Machines pay $0.15/GB/mo for root filesystem only[3] |
| Internet egress (first paid tier) | $0.05/GB, all regions and plans[4] | $0.02/GB North America and Europe; $0.04/GB Asia Pacific, Oceania, South America; $0.12/GB Africa and India[3] |
| Included transfer | No separate allowance; egress draws on the plan's included usage credit[4] | None for new organizations; inbound and same-region transfer free[3] |
| Regions / locations | 4 regions: US West, US East, EU West, Southeast Asia (counted from list)[2] | 17 regions (counted from list)[1] |
| Deploy model | GitHub repo, Dockerfile, Docker image, or railway up from the CLI[9] | fly launch (uses or generates a Dockerfile, or --image) then fly deploy; Machines API[14] |
| GPUs | No: Railway says it does not currently offer GPU instances[10] | GPU Machines are not being removed but no new version is coming (Feb 2025 post); no GPU prices on the current pricing page[15] |
| Managed databases | One-click PostgreSQL, MySQL, Redis and MongoDB[5] | Fly Managed Postgres from $38/mo (Basic), with HA and backups[16] |
| Preview environments | Yes: PR environments per pull request, removed on merge or close[6] | Not built in; official blueprint deploys per-PR review apps with GitHub Actions[17] |
| Persistent volumes | Yes: volumes at $0.15/GB/mo; Hobby up to 5 GB, Pro up to 1 TB[11] | Yes: Fly Volumes (local NVMe) $0.15/GB/mo, one per Machine, not replicated automatically[18] |
| Scale to zero | Yes: Serverless (formerly App Sleeping) sleeps a service with no outbound traffic and wakes it on the next request[12] | Yes: Fly Proxy autostop/autostart with min_machines_running = 0[19] |
| Config file | railway.json / railway.toml are deprecated (stop being read 2026-12-01); replacement is .railway/railway.ts[13] | fly.toml[20] |
Which to pick, by use case
| If you need… | Pick | Why |
|---|---|---|
| Users on several continents | Fly.io | 17 regions[1] including South America, Africa, Asia and Oceania. |
| A team that wants databases and previews built in | Railway | One-click Postgres, MySQL, Redis and MongoDB[5]; Fly's previews need a GitHub Actions setup[17]. |
| Idle services that should cost nothing | Either | Fly autostop/autostart[19]; Railway Serverless sleeps idle services[12]. |
| Managed Postgres with HA | Fly.io | Fly Managed Postgres plans include HA and backups, from $38/month[16]. |
How each bills
Railway meters memory and CPU per second ($0.00000386 per GB-second, $0.00000772 per vCPU-second)[8], with Hobby at $5/month including $5 of usage[4]. Fly bills Machines per second while running, and only the root filesystem ($0.15/GB/month) while stopped[3]; there's no plan fee, and the smallest Machine is $2.19/month running continuously[3].
Moving from Railway to Fly.io
fly launch uses an existing Dockerfile or generates one[14], fly secrets import loads variables in bulk[21], and Postgres moves with pg_dump into Fly Managed Postgres[22]. The Railway to Fly.io guide covers the gotchas, including Railway's sealed variables.
Run Railway and Fly.io together
You don't have to pick one. AW3 Host connects both your Railway and Fly.io accounts and deploys to either from one dashboard and API. Run the service on both while you verify Fly's regions, then move traffic across by weight.
Weighted routing splits traffic between them by percentage, canary and blue-green releases promote or roll back a version in one step, and failover driven by health checks every 60 seconds moves traffic to the healthy side. Daily cost sync and budget policies show both providers' spend side by side; secrets are encrypted per environment. Free tier: 500 credits a month; Pro: $29/month.
Frequently asked questions
- Is Fly.io cheaper than Railway?
- For egress from North America and Europe, Fly.io's $0.02/GB is lower than Railway's $0.05/GB. For compute, both bill per second; compare your own CPU and memory use against each pricing page.
- Does Fly.io have a free tier like Railway's trial?
- Fly.io gives new accounts $1 of trial credit and waives personal-organization bills under $5 a month. Railway offers a 30-day trial with a one-time $5 credit, then $1 of credit per month.
- Which has more regions, Railway or Fly.io?
- Fly.io lists 17 regions; Railway lists 4 (US West, US East, EU West and Southeast Asia).
Sources
- Fly.io Docs: Regions. https://fly.io/docs/reference/regions/ (checked 2026-11-16)
- Railway Docs: Regions. https://docs.railway.com/deployments/regions (checked 2026-11-16)
- Fly.io Docs: Pricing. https://fly.io/docs/about/pricing/ (checked 2026-11-16)
- Railway Docs: Plans. https://docs.railway.com/reference/pricing/plans (checked 2026-11-16)
- Railway Docs: PostgreSQL. https://docs.railway.com/databases/postgresql (checked 2026-11-16)
- Railway Docs: Environments. https://docs.railway.com/environments (checked 2026-11-16)
- Railway Docs: Free trial. https://docs.railway.com/pricing/free-trial (checked 2026-11-16)
- Railway: Pricing. https://railway.com/pricing (checked 2026-11-16)
- Railway Docs: Migrate from Render. https://docs.railway.com/platform/migrate-from-render (checked 2026-11-16)
- Railway: AI agent workers guide (GPU availability). https://railway.com/guides/ai-agent-workers (checked 2026-11-16)
- Railway Docs: Volumes. https://docs.railway.com/volumes (checked 2026-11-16)
- Railway Docs: Serverless. https://docs.railway.com/deployments/serverless (checked 2026-11-16)
- Railway Docs: Config as code. https://docs.railway.com/config-as-code (checked 2026-11-16)
- Fly.io Docs: Create an app with fly launch. https://docs.fly.io/launch/create (checked 2026-11-16)
- Fly.io Blog: We Were Wrong About GPUs (2025-02-14). https://fly.io/blog/wrong-about-gpu/ (checked 2026-11-16)
- Fly.io Docs: Managed Postgres. https://docs.fly.io/postgres (checked 2026-11-16)
- Fly.io Docs: Review apps blueprint. https://docs.fly.io/blueprints/review-apps-guide (checked 2026-11-16)
- Fly.io Docs: Volumes overview. https://docs.fly.io/volumes/overview (checked 2026-11-16)
- Fly.io Docs: Autostop/autostart. https://docs.fly.io/launch/autostop-autostart (checked 2026-11-16)
- Fly.io Docs: App configuration (fly.toml). https://docs.fly.io/reference/configuration (checked 2026-11-16)
- Fly.io Docs: Secrets. https://docs.fly.io/apps/secrets (checked 2026-11-16)
- Fly.io Docs: Import into Managed Postgres. https://docs.fly.io/postgres/import (checked 2026-11-16)
Your next deploy
goes everywhere.
Connect a provider, point a service at it, and ship. Add the second provider when you're ready.
No card needed · Free tier · Pay as you go after that