- The four cost tiers, from free to flat-managed, and who each is for
- The three hidden line items that make 'cheap' expensive: backups, connections, your time
- When self-hosting stops being the cheap option
- The false economies to avoid by name
'Cheap PostgreSQL hosting' is really three different searches: free because it's a toy, minimal dollars because it's a side project, and predictable dollars because it's a business on a budget. The right answer differs for each - and the wrong answers mostly fail the same way: a hidden lifecycle rule or missing backup that turns 'cheap' into 'lost the data'. Here's the landscape with the fine print read for you. (Disclosure: Swyftstack is our product; it appears below with the same scrutiny.)
Tier 0: Free databases - know the lifecycle rules
Several platforms offer a free Postgres: typical patterns as of mid-2026 include Supabase's free project tier (pauses after inactivity), Neon's free tier (scale-to-zero with monthly compute/storage allowances), and Render's free database (historically time-limited - expiring databases are deleted). The pattern to internalize: free tiers are priced in lifecycle risk instead of dollars. Sleeping databases add cold-start latency; expiring databases add a calendar bomb; caps add a growth ceiling. All fine for a demo, a course project, a prototype. The moment strangers' data lands in the tables, the project has outgrown free - that's the exact line we draw in our side-project hosting guide.
Tier 1: The $5-15 VPS, self-managed
A small VPS running Postgres (ideally via Docker) is the cheapest real database on the market and a genuinely good teacher. The invoice is honest; the total cost hides in four recurring jobs that are now yours: OS and Postgres patching, disk monitoring (full disks are the classic Postgres killer), connection pooling, and above all off-host backups you have restored at least once. Budget the honest hours. If the point is learning or the workload is chunky-and-steady, this tier wins; if the point is 'cheap production for my SaaS', keep reading.
Tier 2: Usage-based small plans (Railway, Neon paid, Aurora Serverless-style)
Usage billing means a quiet app costs very little - and a busy month, a runaway query, or a crawler costs more than you guessed. These plans are excellent when your workload is genuinely spiky and you'll watch the meter. For steady side projects, the psychological cost is real: every traffic spike is a billing event. Check each provider's current floor pricing and - always - the backup story on the small tiers.
Tier 3: Flat-price managed (the 'boring business' tier)
Fixed monthly price, database plus backups included, no meter anxiety. DigitalOcean-style instance plans start around the price of lunch; Swyftstack's Launch plan is $19/mo flat for managed PostgreSQL and object storage together, with daily backups, one-click restore, and PgBouncer pooling included rather than upsold - that bundling is the honest pitch, since most apps need file storage anyway and pay for it separately elsewhere. The general rule for this tier: you're paying a modest premium specifically to delete the hidden line items from the other tiers. Verify the same three things everywhere: backups included and restorable, connection limits that survive your app count, published overage rates.
The three hidden line items, everywhere
Backups. The single most expensive thing a cheap plan can lack. If backups cost extra, add that to the sticker price; if restores aren't self-serve, add an incident's delay to your recovery time.
Connections. Cheap tiers cap low. A handful of serverless functions or a few app instances hit the cap fast - the fix is pooling, so prefer plans that include it.
Your attention. Meters to watch, tiers to babysit, servers to patch. Attention is the side project's scarcest resource; spend it on the product.
Recommendations by situation
Learning / throwaway: any free tier, or Postgres in local Docker (setup guide) - costs nothing, teaches plenty.
Side project with real users: smallest flat-price managed plan with included daily backups. This is the sweet spot for $15-25/mo.
Spiky or preview-heavy workloads: usage-based serverless (Neon-style) with a billing alert set on day one.
Tight budget + real ops skills: VPS, with automated off-host backups and a tested restore before the first user signs up.
Situation | Cheapest sane option | Hidden cost |
|---|---|---|
Learning / toy | Free tier | Sleeps, expires, small caps |
Side project | $5-15 VPS | You run backups + upgrades |
Bursty small app | Usage-based plan | Spikes in busy months |
Real business, budget | Flat managed plan | Higher floor, no surprises |
Cheapest option by situation.
Cheapest option by situation.
The false economies, named
A few patterns show up so often in 'my cheap hosting went wrong' stories that they deserve explicit warnings. The backup-less year: running a $5 database for a year saves perhaps $180 against a managed plan; a single unrecoverable data event costs the project. That's not a trade, it's a lottery ticket bought monthly. The free-tier hostage: data living on an expiring or pausing tier that you keep meaning to move - the deadline arrives during your busiest week, because deadlines do. Export now; decide later from a position of calm. The connection-cap ambush: the $7 plan whose 20-connection ceiling forces an upgrade to $50 the week your app gets traffic - check caps against your realistic fleet arithmetic before committing, not after the error page. The egress surprise: cheap storage of files that get served constantly, on providers that price the serving - the storage comparison covers why bytes-out is the number that matters.
The unifying test for any cheap option: write down what happens in the three bad scenarios - data loss, traffic spike, provider policy change - before signing up. Cheap plans that survive all three scenarios on paper are genuine bargains, and they do exist; the rest are deferred invoices.
And a timing note that reframes the whole search: the cheapest database decision is usually the one you make BEFORE launch, when migration costs nothing. Spending an hour on this comparison at project start - rather than after users arrive and every option carries a migration - is the highest-return hour in the budget. If you're reading this post-launch with data on the wrong tier, the good news is that Postgres migrations are genuinely routine: a verified dump-and-restore during a quiet hour, and the decision becomes revisable after all.
Sanity anchor for the budget-anxious: at current market rates, the gap between 'risky cheap' and 'safe cheap' for a database is roughly $10-15 a month - the difference between a bare instance and one with backups, or between a free tier and the smallest paid plan. Framed annually, you are deciding whether your project's entire data history is worth about the cost of one dinner. Most projects, honestly assessed, clear that bar the day they have a second user.
Cheap hosting is a great decision exactly up to the moment it costs you data or a weekend. Price the backups and the pager, not just the invoice.
Frequently asked questions
What's the cheapest way to host PostgreSQL?
Raw dollars: a small VPS running Postgres yourself (a few dollars monthly) - if you price your setup time, patching, and backup discipline at zero. Cheapest without carrying your own pager: a small flat-price managed plan in the $15-25/mo range that includes daily backups. Free tiers are cheapest for throwaway projects only.
Are free Postgres tiers safe for production?
Read the lifecycle fine print before trusting one: common patterns include databases that sleep after inactivity (cold-start latency), hard storage caps, and free databases that expire and are deleted after a fixed window. Great for demos and learning; wrong for anything whose data you'd miss.
What hidden costs should I check on a cheap plan?
Three recurrers: backups (included? restorable? retained how long?), connection limits (low caps force an upgrade the first time you run a few app instances), and egress/overage pricing. A $5 plan that charges for backups and forces a $50 upgrade at 25 connections is not a $5 plan.
When does self-hosting stop being the cheap option?
The first time it costs you a weekend - a botched upgrade, a full disk, or a restore you've never practiced. If your time has any billing rate, one incident a year erases years of the VPS-vs-managed price gap. Self-host to learn or because you have real ops skills, not purely to save $15/mo.