Neon vs Railway: which one does your ai app actually need?
updated · #3 vs #4 in backend, database & deploy · prices checked
which one should you use?
need a Postgres that branches per pull request and naps when idle? Neon. need somewhere to run your API, worker or agent all day, with a database next to it? Railway. Railway ranks higher on our board, but for "which database host" most builders still want Neon.
#3 vs #4 of 5 backends, both 8.0/10. same score, Railway ahead on our tiebreak.
#3 of 5 in backends
Railway
numptr says8.0/10
deploy the lot, pay for what you use. no faff.
- best for
- long-running backends, workers, agents
- why 8.0
- $5 Hobby minimum is about as low as it gets.
#4 of 5 in backends
Neon
numptr says8.0/10
Serverless Postgres that dozes off when nobody's looking. Free plan, no card.
- best for
- spiky workloads, per-PR database branches
- why 8.0
- scale-to-zero, branching, 100 free projects. no card needed.
who wins for which job
a Postgres that branches and scales to zero
Neon
best for: spiky workloads, per-PR database branches.
long-running backends, workers and agents
Railway
best for: long-running backends, workers, agents.
a free plan you can use without a paid upgrade
Neon
Neon free tier: 100 projects, 100 CU-hours, 1 GB storage and 5 GB egress per project, 20 GB storage total across all projects, no credit card. Railway: 30-day trial with $5 credits, then a limited free plan (signups reopened nov 2, 2026 after the oct security incident, but new accounts must pick Hobby or Pro before deploying; free trial deploys still unavailable for now).
overall, on our scores
Railway, on tiebreak
level on 8.0/10; Railway #3, Neon #4 on our tiebreak.
the differences, side by side
rank
Railway#3 of 5 in backends
Neon#4 of 5 in backends
numptr score
Railway8.0/10
Neon8.0/10
best for
Railwaylong-running backends, workers, agents
Neonspiky workloads, per-PR database branches
free tier
Railway30-day trial with $5 credits, then a limited free plan (signups reopened nov 2, 2026 after the oct security incident, but new accounts must pick Hobby or Pro before deploying; free trial deploys still unavailable for now)
Neon100 projects, 100 CU-hours, 1 GB storage and 5 GB egress per project, 20 GB storage total across all projects, no credit card
paid plans
RailwayHobby $5 minimum (includes $5 usage); Pro $20 minimum (includes $20 usage)
NeonLaunch: usage-based, $0.106/CU-hour + $0.35/GB-month (typical ~$15/mo); Scale usage-based
# straight from our rankings data. prices from each vendor's own page.
pick neither if
quick answer: neon vs railway looks like a database fight, but it isn't quite. Railway is #3 of 5 on our backends board at 8.0/10 because it deploys the code that has to stay up: APIs, queue workers, agents, with a Postgres template on the same canvas. Neon is #4 (8.0/10) and does a different job: serverless Postgres that splits storage from compute, branches like git, and scales to zero when idle. Railway also runs Postgres, so there's overlap, but most people searching "which database host" want Neon's branching and scale-to-zero; pick Railway when you want the whole always-on stack. as of nov 6, 2026, Railway signups are open again, but new accounts still need Hobby or Pro before deploying.
the short version
| Neon | Railway | |
|---|---|---|
| our rank | #4, 8.0/10 | #3, 8.0/10 |
| what it is | serverless Postgres (lakebase) with branching, scale to zero, auth, object storage and functions | a platform that deploys your apps, databases, workers and agent sandboxes |
| your code runs | queries against Postgres; Neon functions separately | as always-on services, billed per second for CPU, memory and disk |
| database | Postgres that autoscales and naps; pgvector included | one-click Postgres template (official image), optional high availability, pgvector from the template marketplace |
| free | 100 projects, 100 CU-hours, 1 GB storage and 5 GB egress per project, 20 GB storage total across all projects, no credit card | free trial deployments paused for new accounts as of nov 2, 2026 (see below) |
| paid | Launch: usage-based, $0.106/CU-hour + $0.35/GB-month (typical ~$15/mo); Scale usage-based | Hobby $5 minimum (includes $5 usage); Pro $20 minimum (includes $20 usage) |
ranks and scores come straight from our backend board, and nobody pays to move up it.
why Railway ranks higher
it runs anything that has to stay up. your API, the queue worker, the agent loop and the Postgres they talk to, side by side in one project. that's what our board rates it for: long-running backends, workers and agents. Neon is still the database, not the host for that always-on process.
pay for what actually runs. CPU, memory and disk are billed by the second (about $20 per vCPU and $10 per GB of memory a month if left on), volumes $0.15 per GB-month, egress $0.05 per GB. stopped services cost nothing. Hobby is $5 a month including $5 of usage; Pro is $20 a month per workspace with $20 included and unlimited seats.
Postgres next door. add Postgres from the project canvas, connect with the DATABASE_URL it hands you, convert it to a high availability cluster when you need it, and grab a pgvector template from the marketplace. it's the official Docker image with SSL, private by default. change the image, start command or variables and Railway says it's yours to manage.
sandboxes for agents. Railway Sandboxes are isolated Linux VMs for agents, builds and untrusted code, billed on the CPU actually used and memory held, so a sandbox waiting on a model costs almost nothing.
the honest bit: Railway paused new signups after its oct 21, 2026 security incident and reopened them on nov 2, 2026 (status update at 2:19 PM ET), but new accounts must subscribe to Hobby or Pro before deploying, and free trial deployments are still unavailable. so for anyone new, Railway costs at least $5 a month from day one. if you signed up before oct 21, Railway recommends rotating the keys you store there. more in Vercel vs Railway and Supabase vs Railway.
where Neon wins
Postgres that branches like git. a Neon branch is a copy-on-write clone of your data, from now or from a point in the past, and it's instant. schema-only branching is there if your data is sensitive. Free and Launch include 10 branches per project, Scale includes 25, and extras are $1.50 per branch-month (prorated hourly). that's the per-PR database pattern coding agents love, and Railway's one-click Postgres doesn't do it the same way.
it naps. compute scales to zero after 5 minutes idle and wakes in a few hundred milliseconds when you query it, so you pay for active time, not 24/7. on the free plan the nap is mandatory; on Launch you can switch it off; on Scale it's fully configurable. a CU is about 4 GB of RAM plus CPU and SSD, and Free includes 100 CU-hours per project a month.
the free plan is built for lots of small projects. as of nov 6, 2026 (Neon's pricing page last updated 2026-10-31): 100 projects, 1 GB of Postgres storage per project and 20 GB total across the account, 5 GB of egress per project, 100 CU-hours per project, up to 60k auth MAU per project, 5 GB of object storage per project, and no credit card. Neon doesn't pause free projects for inactivity; idle compute just scales to zero. compare that with Railway's Hobby-or-pro gate for new deploys.
it's built for agents. there's an official Neon MCP server, agent skills, plugins for Claude Code, Codex and Cursor, and an agent plan for platforms that spin up thousands of databases. free allows 100 projects with no per-project fee, which is the database-per-tenant pattern.
the honest bit: Neon is still the database. its pricing now lists managed Better Auth, object storage, functions, an ai gateway and a realtime beta, but your always-on API or agent still needs somewhere to live. that's Railway's job, or Vercel's for serverless routes. more on the Postgres side in Neon vs Supabase, Neon vs Vercel and Neon pricing.
which should you pick?
- serverless Postgres that branches per PR and scales to zero: Neon
- a database per tenant or per agent (up to 100 free): Neon
- a Python or Node API that's always on: Railway (new accounts need Hobby or Pro before deploying)
- queue workers, crons, long agent runs: Railway
- your own backend plus Postgres on one bill: Railway
- both, which is fine: Postgres on Neon (with branches for previews), always-on services on Railway
- Postgres plus auth, storage and vectors as a service in one box: Supabase (#1). see Neon vs Supabase and Supabase vs Railway
- a Next.js front end and serverless ai routes: Vercel (#2). see Neon vs Vercel and Vercel vs Railway
- a realtime TypeScript backend, not Postgres: Convex (#5). see Convex vs Neon, Convex vs Vercel and Convex vs Railway
the rest of the field
the table: the rest of the field
| rank | tool | best for | free tier | paid from | numptr score |
|---|---|---|---|---|---|
| #4 | Neon | spiky workloads, per-PR database branches | 100 projects, 100 CU-hours, 1 GB storage and 5 GB egress per project, 20 GB storage total across all projects, no credit card | Launch: usage-based, $0.106/CU-hour + $0.35/GB-month | 8.0/10 |
| #3 | Railway | long-running backends, workers, agents | 30-day trial with $5 credits, then a limited free plan (signups reopened nov 2, 2026 after the oct security incident, but new accounts must pick Hobby or Pro before deploying; free trial deploys still unavailable for now) | Hobby $5 minimum | 8.0/10 |
| #1 | Supabase | full-stack ai apps needing auth and vectors | 500 MB DB, 50K MAU; pauses after 1 week inactive; limit of 2 active projects | Pro from $25/mo | 9.0/10 |
| #2 | Vercel | front ends and serverless ai routes | Hobby $0 (personal, non-commercial) | Pro $20/mo including $20 usage credit | 8.5/10 |
| #5 | Convex | TypeScript devs wanting realtime sync | free & Starter: $0 then pay as you go | Professional $25/developer/mo | 7.5/10 |
faq
is Neon better than Railway?
on our board, Railway is #3 (8.0/10) and Neon #4 (8.0/10). Railway wins for long-running code; Neon wins when the question is really "which Postgres host". most ai apps that need both an always-on process and a branching database use one of each.
can Railway replace Neon as my database?
for plain Postgres, yes: Railway deploys Postgres from a template it maintains. you don't get Neon's copy-on-write branches, scale-to-zero compute, or the 100-free-projects pattern. if those are why you looked at Neon, stay on Neon.
does Neon host my API or agent?
not as an always-on process. Neon runs Postgres (plus its own functions, auth and object storage on the pricing page), but a worker that has to stay up for hours belongs on Railway, or on serverless routes if the job fits that shape.
Neon vs Railway pricing: which is cheaper?
they bill for different things. Neon is free for 100 projects (1 GB storage each, 20 GB account total), then Launch is usage-based at $0.106 per CU-hour and $0.35 per GB-month (a small intermittent database is about $15 a month on Neon's own estimate). Railway's Hobby is $5 a month with $5 of usage included, then per-second CPU, memory and disk; new accounts need Hobby or Pro before deploying right now. more in Neon pricing.
are Railway signups open?
yes, since nov 2, 2026, but not for free yet: Railway's status page says new customers must subscribe to Hobby or Pro before deploying, and free trial deployments remain temporarily unavailable. signups had been paused since its oct 21 security incident; existing users' services stayed online.
sources
checked 2026-11-06, ~00:50 ET
- Neon pricing (Free, Launch and Scale; 100 projects, 1 GB/project and 20 GB account storage, 100 CU-hours, 5 GB egress, auth MAU, object storage, functions, CU-hour and storage rates, branching, scale to zero; page last updated 2026-10-31): https://neon.com/pricing
- Railway pricing (free trial, Free, Hobby $5, Pro $20 per workspace with unlimited seats, per-second usage rates, sandboxes): https://railway.com/pricing
- Railway plans docs (subscription pricing, included usage, resource rates): https://docs.railway.com/pricing/plans
- Railway Postgres guide (one-click Postgres, database_url, high availability, pgvector template): https://docs.railway.com/guides/postgresql
- Railway status (signups reopened nov 2, 2026, 19:19 UTC; new customers must subscribe to Hobby or Pro before deploying; free trial deployments temporarily unavailable): https://status.railway.com/incident/O1VGXWU5
- ranks, scores, verdicts and plans: numptr data/tools.json (backend, database and deploy board)