How Much Does a PostgreSQL Database Actually Cost?

What a PostgreSQL database really costs in 2026: self-hosted on a VPS vs managed (Supabase, Neon), whether Postgres is free, and the backup line that decides the bill.

The honest cost of PostgreSQL in 2026: from $0 on your own VPS to $100+/month managed. What you actually pay for, and the hidden costs nobody lists.

The two ways to pay

  1. Self-hosted on a VPS — the database engine is free; you pay for the box and your ops time.
  2. Managed — a vendor runs it; you pay a monthly fee plus storage/IO/connection pricing.

PostgreSQL itself is $0 either way — this is a comparison of operations, not license.

Self-hosted: real numbers (on a shared VPS)

Your app VPS already pays for the box; Postgres just uses its RAM/disk:

Setup Box DB cost
Small app + Postgres share a 4 GB VPS €4.49 €0 (shared)
Dedicated DB box (4 GB VPS) €4.49 ~€4.49
Dedicated DB for heavier data (8 GB VPS) €8.49 ~€8.49
+ extra NVMe volume priced per GB by the provider

Verified (2026-11-06): OVHcloud VPS-1 = €4.49, VPS-2 = €8.49, both with a daily backup. Hetzner no longer sells the CX22/CX32 this table was originally built on and was serving no prices when checked.

Hidden costs of self-hosting: your time for upgrades (minor versions), pg_dump backups, monitoring disk, and restoring when something breaks. Estimated: 2-4 hours/month of ops.

Managed: real numbers (verified 2026-11-06)

Provider Entry What you get Notable pricing
Supabase $25/mo Pro 8 GB disk, $10 compute credit covering one Micro instance 1 GB RAM on that Micro; PITR +$100/mo per 7 days retention
Neon pay per use Launch: $0.106 per CU-hour, storage $0.35/GB-month A CU awake all month = 730 × $0.106 ≈ $77

Two corrections to the older version of this table: Neon is not a $19 flat plan, it is metered per CU-hour; and the number that decides a managed bill is often the backup add-on, not the database. Supabase’s point-in-time recovery is $100/month on top of the plan, twenty times the VPS in the row below.

AWS RDS, DigitalOcean Managed and Cloud SQL are not in the table because their price depends on region, engine and storage class, and I have not re-read their calculators for this date. If you are comparing those, read the calculator yourself rather than trusting an older blog table — including this one.

Entry costs are $15–30/month — and the smallest tier on every provider is too small for a real workload.

Is PostgreSQL free?

The software is, and that is not a marketing line: PostgreSQL is under the PostgreSQL Licence, you can download it, run it on as many machines as you like and ship it inside a product without paying anyone. apt install postgresql costs nothing and the official images on Docker Hub are free to pull.

What is not free is everything around the process:

  • The machine. €4.49/month for a 4 GB VPS at OVHcloud (read 2026-11-06).
  • The person. Patching a major version, testing a restore and watching the disk are hours, and hours have a price even when they are yours.
  • The recovery. A backup you have never restored is a hope, not a backup. Managed providers charge for the version that works: Supabase prices PITR at $100/month per 7 days of retention.

So the honest answer to “is PostgreSQL free?” is that the database is free and the database service is not. The bill is the server plus whatever your time is worth — which is the calculation the rest of this guide is about.

The real comparison table

Self-hosted (€4.49 VPS) Managed (Supabase/Neon)
Monthly base €4.49 $25 to ~$77
Backups Your script (~1h setup) Built-in
Scaling Buy bigger box Autoscale (pricey)
High availability DIY (replica/failover) Built-in (usually)
Migrations You You (same SQL)
Exit Move the dump anywhere Export + move (easy for Supabase/Neon — pure Postgres)
Pause/risk Never Supabase pauses inactive projects

The cost curve (real workloads)

Workload Self-hosted/mo Managed/mo
Hobby (100 MB) $4.49 $0 (free tier)
Side project (1 GB) $4.49 $19–25
Product (10 GB, 1M rows) $8.49 $40–70
Serious (50 GB, reporting) $17 (CX32 + volume) $80–150

Self-hosting wins on cost at every non-zero scale; managed wins on your time and sleep.

The decision that actually matters

  • Choose managed when: you’d otherwise skip backups, your time is billable, or you need point-in-time recovery/HPA without studying it.
  • Choose self-hosted when: you run a budget operation, you’re comfortable with pg_dump + a cron, and a couple of hours of setup saves you $300/year per project.

Our recommendation

Our recommendation for most readers: start free-tier managed (Supabase/Neon free), move to self-hosted on your own VPS the moment the free tier starts hurting. At ~$8 a month on a dedicated CX box you match managed pricing while owning the data entirely.

Common problems

  • The free tier that pauses: Supabase pauses inactive projects after 7 days — a surprise 20-second cold start on first visit every week.
  • “Storage is cheap”: managed storage overages ($3.50/GB on Neon) sneak into bills faster than compute.
  • One-click backup is not a backup: test the restore, on self-hosted and managed.

Related guides