Skip to main content
← Journal·AI AutomationsOctober 7, 2026·10 min read

Postgres Hosting Compared: Supabase, Neon, Railway, RDS

Postgres hosting compared on published prices: free tiers, connections, backups and branching on Supabase, Neon, Railway and AWS RDS, with picks by stage.

A

Founder of IImagined.ai

Quick answer

For Postgres hosting, pick Supabase if you want auth, storage and a predictable plan around your database, Neon if you want pure Postgres with scale to zero and cheap branches, Railway if your app already runs there and you want usage billing, and AWS RDS when you need AWS networking or compliance. Below are each provider's published rates (checked October 2026) and illustrative monthly costs for three workload stages.

The best Postgres hosting for most new apps is Supabase or Neon: Supabase when you want auth, storage and a fixed monthly plan around the database, Neon when you want only Postgres with scale to zero and cheap branches. Railway suits apps already deployed there, and AWS RDS is the pick once you need AWS networking, compliance controls or reserved pricing.

Prices and limits checked October 2026 on each provider's official pages: Supabase pricing, Neon pricing, Railway pricing and Amazon RDS for PostgreSQL pricing (US East, N. Virginia). Workload costs below are illustrative calculations from those published rates, not measurements of a running app.

Most comparisons stop at the free tier. That is the wrong place to decide, because the free tier is the one stage every provider handles well. The real differences show up when a database must stay on all day, keep backups, accept connections from serverless functions and give each pull request its own copy of the data. This page prices those exact things. If you are still choosing the rest of the stack, start with our guide to building an AI SaaS, which places the database in the full launch order.

The verdict in one view
Pick Supabase or Neon if
  • You are pre-launch or under a few thousand users
  • You deploy on Vercel or another serverless host
  • You want preview databases per pull request
  • One person runs the whole stack
Pick Railway or RDS if
  • Your app servers already run on Railway (pick Railway)
  • You need VPC networking, IAM or AWS compliance (pick RDS)
  • Your load is steady and you can reserve capacity (pick RDS)
  • You want the database next to long-running workers

Postgres hosting providers compared side by side

All four run standard PostgreSQL, so your schema, queries and extensions such as pgvector move with you. What differs is how you pay, how connections are handled, how backups work and whether you can branch the database. The table summarises the published terms.

SupabaseNeonRailwayAWS RDS
Pricing modelPlan fee plus compute sizePure usage: CU-hours plus GB-monthsPlan minimum plus per-second usageHourly instance plus provisioned storage
Free optionFree plan: 500 MB, 2 active projects, pauses after 1 week idleFree plan: 100 projects, 100 CU-hours and 1 GB each30-day trial with $5 credit, then a limited free planNew AWS accounts: up to $200 in credits
Entry paid tierPro from $25/month, $10 compute credit includedLaunch: $0.106 per CU-hour, $0.35 per GB-month, no minimumHobby: $5 minimum, $5 usage includeddb.t4g.micro from $0.016/hour (us-east-1)
ConnectionsMicro: 60 direct, 200 pooled; scales with sizepgBouncer pooling up to 10,000 connectionsPostgres defaults; pooling guide in docsDepends on instance memory; RDS Proxy available separately
BackupsPro: daily, kept 7 days; PITR $100/month per 7 daysInstant restore up to 7 days on LaunchVolume backups daily/weekly/monthly; optional PITRAutomated backups, retention up to 35 days
Branching$0.01344 per branch-hour10 branches per project included on LaunchPreview environments duplicate the serviceNone; restore a snapshot to a new instance

Sources, checked October 2026: provider pricing pages linked above; Railway backups and point-in-time recovery docs; AWS backup retention docs; AWS Free Tier.

Is there good free Postgres hosting?

Yes, for building and testing. The free tiers differ in what happens when you stop using them, and that matters more than the storage number.

  • Neon Free gives up to 100 projects, each with 100 CU-hours of compute a month and 1 GB of storage, with compute sizes up to 2 CU. Compute scales to zero after 5 minutes of inactivity, so an idle project uses nothing. Neon's own example: at the default 0.25 CU, 100 CU-hours covers about 400 hours of active time.
  • Supabase Free includes a 500 MB database, shared CPU with 500 MB of RAM, 5 GB of egress and the rest of the Supabase platform (auth for 50,000 monthly active users, 1 GB of file storage). It is limited to two active projects, has no automatic backups, and pauses projects after one week of inactivity.
  • Railway starts with a 30-day trial that includes a one-time $5 credit, then a free plan with up to 0.5 GB of RAM per service and 0.5 GB of volume storage. It is enough to try the Postgres template, not to run a product.
  • AWS gives new accounts up to $200 in Free Tier credits over six months, which can cover a small RDS instance while you learn the console.

What each provider costs for a realistic workload

Headline prices do not compare cleanly: Supabase sells a plan plus a compute size, Neon bills compute by the hour it runs, Railway bills per second for the memory and CPU the container uses, and RDS bills an instance by the hour plus provisioned storage. To make them comparable, the table prices three stages from each provider's published rates (checked October 2026), using 730 hours a month.

Stage (illustrative)SupabaseNeonRailwayAWS RDS
Prototype (idle most of the day, under 500 MB)$0 on Free$0 on Free$5 Hobby minimumCredits, then about $14 on db.t4g.micro
Launched app (always on, about 5 GB)About $30 (Pro + Small)About $22 (Neon's "low load" example)About $8 (assumed 0.5 GB RAM, 0.1 vCPU)About $26 single-AZ, $52 Multi-AZ (db.t4g.small)
Growing app (8 GB RAM class, 50 GB)About $130 (Pro + Large)About $172 (fixed at 2 CU all month)About $69 (assumed 4 GB RAM, 1 vCPU)About $128 single-AZ, $258 Multi-AZ (db.m7g.large)

Illustrative calculations, not measurements. Supabase: $25 Pro plus compute ($15 Small, $110 Large) minus the $10 compute credit, plus $0.125 per GB of disk over 8 GB. Neon Launch: $0.106 per CU-hour and $0.35 per GB-month; the launched-app row uses Neon's published low-load example (190 CU-hours, 5 GB), and the growing row assumes a fixed 2 CU (about 8 GB RAM) all month with autoscaling off. Railway: $0.00000386 per GB of RAM per second, $0.00000772 per vCPU per second and $0.00000006 per GB of volume per second, with the stated usage assumptions. RDS us-east-1 on-demand: db.t4g.micro $0.016/hour, db.t4g.small $0.032 (Multi-AZ $0.065), db.m7g.large $0.168 (Multi-AZ $0.337), gp3 storage at the 20 GB minimum or 50 GB, $0.115 per GB-month (Multi-AZ $0.23). Egress, history storage and support plans are excluded.

Three things stand out. First, at the launched-app stage everyone lands in a similar band, so price should not be the deciding factor there; features should. Second, Railway looks cheapest on paper because it bills what the container actually uses, but that number moves with load, and the assumptions above are yours to replace with real metrics. Third, high availability roughly doubles the RDS line because Multi-AZ runs a standby; Neon's storage is multi-AZ by default, Supabase reserves uptime SLAs for Enterprise, and Railway offers a Postgres high-availability conversion on its own pricing terms.

Where each provider fits
Database only
Supabase Pro on a fixed compute size
Supabase for the platform, Neon for spiky side databases
Database plus backend extras
AWS RDS (reserve it once load is stable) or Railway next to your app
Neon with scale to zero and autoscaling limits
Steady load
Spiky or idle load

Supabase: Postgres plus the backend around it

Supabase gives each project a dedicated Postgres instance and builds auth, file storage, realtime, edge functions and an auto-generated API around it. Pro starts at $25 a month and includes $10 of compute credit, enough for one Micro instance (1 GB RAM, 60 direct and 200 pooled connections). Each larger size raises both: Small is $15 (90 direct, 400 pooled), Medium $60, Large $110 on 2 dedicated vCPUs and 8 GB (160 direct, 800 pooled). Pro also includes 8 GB of disk per project, 250 GB of egress, daily backups kept 7 days, and a spend cap that is on by default (all checked October 2026 on the Supabase pricing page).

The costs that surprise people are add-ons: point-in-time recovery is $100 a month per 7 days of retention, branching is $0.01344 per branch-hour (about $9.81 for a branch left running all month), and each additional project starts at $10 a month for compute. Pick Supabase when the extras replace services you would otherwise wire together. Our Supabase full-stack tutorial shows that setup end to end.

Neon: serverless Postgres with branching

Neon separates storage from compute, so the database can scale to zero when idle and autoscale under load. On the Launch plan you pay $0.106 per CU-hour (one CU is about 4 GB of RAM) and $0.35 per GB-month of storage, with no monthly minimum, sizes up to 16 CU, 10 branches per project included, and instant restore up to 7 days. History storage for that restore window is billed at $0.20 per GB-month of retained changes. Extra branches cost about $0.002 per branch-hour. Scale raises the CU-hour rate to $0.222 and adds SLAs, HIPAA and private networking (checked October 2026 on the Neon pricing page).

Two settings control the bill: a maximum autoscaling size, which acts as a cost ceiling, and scale to zero on every non-production branch. Neon notes that an always-on database at the 0.25 CU minimum uses about 182.5 CU-hours a month, which is the floor for a small production app. Pick Neon for serverless apps, per-pull-request preview databases and many small databases.

Railway: Postgres next to your app servers

Railway deploys Postgres as a service from its SSL-enabled image based on the official Postgres image, inside the same project as your app. Billing is per second for the RAM and CPU the service uses, plus volume storage and $0.05 per GB of egress. Hobby has a $5 minimum that includes $5 of usage; Pro has a $20 minimum with $20 included and higher limits (checked October 2026 on the Railway pricing page).

Backups are a volume feature: daily backups are kept 6 days, weekly 27 days and monthly 89 days, billed at volume rates for the incremental data, and Railway's docs describe them as still under development. Point-in-time recovery is available for Postgres through a storage bucket with a roughly four-week window. The trade-off is that Railway's database support scope is narrower than a dedicated database host: change the template's image or start command and the database becomes yours to manage. Pick Railway when your API, workers and cron jobs already live there and private networking between them matters. If you self-host automation tools on the same project, our n8n self-hosting guide covers the Postgres side.

AWS RDS for PostgreSQL: the grown-up default

RDS bills an instance by the hour and storage by the GB you provision. In US East, a db.t4g.micro is $0.016 an hour and a db.m7g.large (2 vCPU, 8 GiB) is $0.168, with Multi-AZ roughly double. gp3 storage is $0.115 per GB-month with a 20 GiB minimum and 3,000 IOPS baseline, and backup storage is free up to 100% of your provisioned database storage (checked October 2026 on the RDS for PostgreSQL pricing page). Automated backups support retention of up to 35 days. T4g and T3 instances run in Unlimited mode, so sustained CPU above baseline adds $0.075 per vCPU-hour.

There is no branching, no scale to zero and more to configure: VPC, security groups, parameter groups and IAM. In return you get the full AWS toolbox, reserved instances and Database Savings Plans for steady load, and a database that sits beside the rest of your AWS infrastructure. Pick RDS when a customer contract, compliance review or existing AWS footprint asks for it.

How do you keep Postgres hosting cheap?

Cost controls that work on every provider
  • Use the pooled connection string from serverless functions
  • Set a spend cap (Supabase) or autoscaling maximum (Neon)
  • Turn on scale to zero for every non-production database
  • Delete preview branches when the pull request closes
  • Keep the restore window as long as you need, not longer
  • Index the queries your app actually runs before upsizing compute
  • Store files in object storage, not in database rows

The biggest lever is usually not the provider but idle compute. A preview database left running all month, or a dev project that never scales down, can cost as much as production. If you also call model APIs from the same app, our Claude API pricing breakdown covers the other large line on an AI product's bill.

Our picks by stage

From prototype to scale
  1. 1
    Prototype

    Neon Free for pure Postgres, or Supabase Free if you want auth and storage too. Both are standard Postgres, so nothing needs rewriting later.

  2. 2
    Launch

    Supabase Pro or Neon Launch. Turn on backups you can restore, and test one restore before customers arrive.

  3. 3
    Traction

    Size compute from real metrics. Add point-in-time recovery once losing an hour of data would hurt.

  4. 4
    Scale or compliance

    Stay if the provider meets your needs, or move to RDS with logical replication for a low-downtime cutover.

Building an AI product on top of this stack is what our AI SaaS Builder program covers, from the database schema to auth, billing and deployment.

Moving between providers later

Because all four are standard Postgres, leaving is a data move, not a rewrite. Use pg_dump and pg_restore for small databases with a short maintenance window, or logical replication to keep a new database in sync until you switch the connection string. The lock-in is in the extras: Supabase auth users and storage buckets, Neon branch workflows in CI, Railway private networking, AWS IAM and VPC rules. Keep migrations in your repository and secrets in environment variables, and any of these providers can be swapped in a weekend.

Postgres hosting: FAQ

What is the best Postgres hosting for a new SaaS?

For most new SaaS products, Supabase or Neon. Supabase fits when you also want auth, storage and realtime from one provider, and its Pro plan gives a predictable monthly bill. Neon fits when you want only Postgres, scale to zero and cheap branches for preview environments. Move to AWS RDS when you need AWS networking, compliance or reserved pricing.

Is there free Postgres hosting that works for real projects?

Yes, within limits. Neon's Free plan includes 100 projects with 100 CU-hours of compute and 1 GB of storage each, and scales to zero when idle. Supabase Free includes a 500 MB database and two active projects, but pauses projects after a week of inactivity and has no automatic backups. Both suit prototypes, not paying customers.

What is the cheapest Postgres hosting for a small always-on app?

On published rates checked October 2026, a small always-on database on Railway Hobby or Neon Launch can cost less than $25 a month, because both bill for usage rather than a fixed instance. Supabase Pro costs about $30 with a Small compute add-on, and RDS on a db.t4g.small is in the same range. Your real bill depends on traffic.

Does Supabase use real Postgres?

Yes. Supabase states that every project gets its own dedicated Postgres instance, and you can connect with any Postgres client using the direct connection string or the pooler. The extras, such as auth, storage and the REST API, are built around that database. You can export it with standard Postgres tools if you leave.

Do I need connection pooling for Postgres on serverless?

Usually yes. Serverless functions open many short-lived connections, and Postgres has a fixed connection limit. Supabase lists a pooler allowance for each compute size, Neon offers pgBouncer-based pooling of up to 10,000 connections, Railway documents a pooling setup, and RDS offers RDS Proxy as a separate service. Use the pooled connection string from serverless code.

How hard is it to move Postgres between providers later?

Not very hard, because all four run standard Postgres. A pg_dump and pg_restore, or logical replication for a live cutover, moves the data. The work is in the extras: Supabase auth and storage, Neon branching workflows and RDS networking do not transfer. Keep schema migrations in your repo so the database can be rebuilt anywhere.

All Access · all four programs · $99/mo

Pick the stack once, then ship.

The AI SaaS Builder program, included in All Access, walks through the database, auth, billing and deployment for an AI product, with the other three programs, live coaching and the private community in one subscription.

Start All Access — $99/mo →30-day money-back guarantee
Free · no signup

Ask builders in the free Discord

Compare notes on Postgres hosts, stacks and launch costs with other builders.

About the author

Written by Anyro, Founder of IImagined.ai. IImagined.ai is a founder-led education platform teaching Instagram growth, AI influencers, digital products, and AI automation.

Results vary; no income is guaranteed.

All-Access subscription

Every program. Member benefits.
One subscription.

Use all four premium programs with weekly live coaching, a private community, and the resource vault.

Confirm current lessons, downloadable resources and member-benefit arrangements before purchasing.

  • All 4 premium programs plus free Futures Trading
  • Weekly live coaching calls
  • Private community access
  • Resource vault and templates
  • 30-day money-back guarantee, cancel anytime
$99/ month
$99 for the first month · $702 to buy all four standalone
Start All-AccessOr browse standalone programs
30-day money-back guarantee · $99/month · cancel anytime