Originally published at LeanStack .
Every week someone asks the same question on Reddit: what is the cheapest way to host a Node.js API with a Postgres database that is not a toy? The honest answer depends on how much downtime and maintenance you can accept, so this guide gives you real 2026 prices for five options and tells you which one fits which situation.
Short answer:
About $3/month: a PC you already own + Cloudflare Tunnel (you pay only electricity and the domain). Fast, but you are the ops team. I ran my production app this way for 12 days ( full setup here ).
$0/month, always on: Google Cloud's free e2-micro, if 1 GB of RAM, a shared CPU and a U.S. region are acceptable. My app runs there now.
About $6/month: one small VPS running both Node.js and Postgres. The cheapest always-on option if you can do basic Linux admin.
About $13/month: Render with a paid web service and database. No servers to manage, predictable bill.
$5 and up: Railway, billed by usage.…