Cheapest way to host a Node.js app in 2026

The real cheapest ways to run a Node.js app in 2026, from $0 free tiers to $4 servers, with verified limits, hidden costs and a cost-per-scenario table.

Published Last verified: 6 min read

Disclosure: This article contains affiliate links. If you buy through them, Solo App Guide may earn a commission at no extra cost to you. Commissions never decide what is recommended; see the affiliate disclosure.

“Cheapest” depends on what your app needs to do. An app that can sleep between requests can be hosted for $0. An app that must answer instantly, 24 hours a day, starts at a few dollars a month. And an app that you will not maintain should not be on a server you have to patch, no matter how cheap. This guide ranks the options by real monthly cost for three common scenarios, using prices from official pricing pages.

No hands-on testing or benchmarks were performed; all limits come from provider documentation.

First, cut what does not need a server

Before comparing Node.js hosts, move everything that can be static to a free static host. Marketing pages, docs, a blog and a single-page app front end do not need Node.js at runtime. Cloudflare states that requests to static assets are free and unlimited, and Render static sites are free (counting against the workspace’s 5 GB Hobby bandwidth). What is left, usually an API, is the only part you pay to run. See static site vs server app for how to split them.

The options, cheapest first

Node.js hosting options by monthly cost (USD)
OptionMonthly costAlways on?Key limit
Oracle Cloud Always Free (VPS)$0YesIdle instances may be reclaimed; you manage the server
Render free web service$0No, sleeps after 15 min750 instance hours/month per workspace; ~1 min wake-up
Railway free plan$0 + usage over $1 creditYes, within credit$1 of monthly credit; 0.5 GB RAM per service
Fly.io shared-cpu-1x 256 MB$2.19YesNo free tier; 256 MB RAM
DigitalOcean Droplet 512 MiB$4YesYou manage the server; 10 GiB disk
DigitalOcean App Platform$5Yes512 MiB RAM, single container
Railway Hobby$5 (includes $5 usage)YesUsage above $5 billed
Hostinger KVM 1$6.49 intro, $11.99 renewalYesPrepaid term; you manage the server
Render StarterAbout $7Yes512 MB RAM; $0.15/GB over bandwidth allowance

Prices are list prices before tax. Database costs are not included.

Scenario 1: a side project that can sleep

Typical app: a hobby API, a Discord bot dashboard, a demo for a portfolio.

Cheapest: Render’s free web service. It costs nothing, deploys from Git, and gives you HTTPS. The catch is the spin-down: after 15 minutes without inbound traffic, the service sleeps, and the next request waits about a minute. Spun-down services do not consume the 750 free instance hours, so one free service can effectively run all month.

Watch out for:

  • Free Render Postgres expires after 30 days (with a 14-day grace period before deletion). Use SQLite on a paid disk, an external free database, or budget for a paid plan.
  • If you exceed the workspace bandwidth and have no payment method on file, free services are suspended for the rest of the month.

Scenario 2: a small app that must always answer

Typical app: an API behind a mobile app, a webhook receiver for Stripe or GitHub, a small SaaS.

Here a sleeping instance is not acceptable: webhook senders retry or give up, and users see a one-minute spinner. The cheapest always-on choices:

  1. Fly.io, $2.19–3.69/month. A shared-cpu-1x machine with 256 MB or 512 MB RAM. Fly.io has no free tier for new organizations, but the entry price is the lowest of the managed options here. Egress is $0.02/GB in North America and Europe; a shared IPv4 address is included.
  2. DigitalOcean Droplet, $4/month. 512 MiB RAM, 10 GiB SSD and 500 GiB transfer. Cheapest if you can administer Linux; $6 gets 1 GiB RAM, which is more comfortable for Node.js.
  3. DigitalOcean App Platform, $5/month. The managed equivalent, with 50 GiB transfer included.
  4. Railway Hobby, $5/month including $5 of usage. At about $10 per GB of RAM per month, a service averaging well under 0.5 GB of memory fits inside the included usage.
  5. Render Starter, about $7/month. The most expensive of the five, but with the simplest multi-service setup and free static sites in the same dashboard.

Rule of thumb: if you are comfortable with ssh and systemctl, a $4–6 Droplet is the cheapest reliable option. If you are not, Fly.io or DigitalOcean App Platform are the cheapest managed ones.

Scenario 3: zero budget, always on

Oracle Cloud’s Always Free tier is the only option in this list that is both $0 and always on. It includes up to two AMD micro instances with 1 GB RAM each, or Arm (A1) capacity equivalent to 2 OCPUs and 12 GB RAM, 200 GB of block storage and 10 TB of outbound data per month.

The trade-offs are real:

  • Oracle may reclaim idle instances: if, over a 7-day period, 95th-percentile CPU and network utilization stay under 20% (and memory under 20% for A1 shapes). A quiet hobby app can match that pattern.
  • You administer the server yourself: updates, firewall, TLS and backups.
  • Always Free block volumes must be in your tenancy’s home region.

Treat it as a great free lab and a risky home for something people depend on.

Hidden costs that change the ranking

  • Databases. A managed Postgres is often more than the app itself. DigitalOcean’s dev database is $7/month; Render’s free one expires. SQLite on the same server costs nothing if you back it up.
  • Bandwidth. Render bills $0.15/GB after the workspace allowance (5 GB on Hobby); DigitalOcean App Platform bills $0.02/GiB after 50 GiB; Fly.io charges $0.02/GB in North America and Europe. Serving images or downloads from the app server can make bandwidth the biggest line item.
  • Renewals. Hostinger’s KVM 1 is $6.49/month introductory but renews at $11.99/month.
  • Your time. A $4 server that needs an hour a month of maintenance is not cheaper than a $7 managed service if you value that hour.

Checklist: keep a cheap host cheap

  • Move static assets and pages to a free static host or CDN
  • Set NODE_ENV=production and install with npm ci --omit=dev to keep memory and disk small
  • Use a health check endpoint so the platform restarts a hung process
  • Set a spending limit or billing alert where the provider supports it
  • Back up the database somewhere other than the app server
  • Write down how to redeploy from scratch (a Dockerfile or a short README)

Bottom line

  • $0, can sleep: Render free web service.
  • $0, always on, you manage it: Oracle Cloud Always Free, accepting the reclaim risk.
  • Cheapest always-on managed: Fly.io from $2.19/month, then DigitalOcean App Platform at $5.
  • Cheapest always-on with full control: a $4–6 DigitalOcean Droplet.
  • Simplest always-on with free static hosting alongside: Render Starter at about $7.

Worked example: a webhook receiver for under $5

A solo developer needs a small Node.js service that receives Stripe and GitHub webhooks, writes to SQLite and sends a notification. It must answer within seconds at any time of day, so a sleeping free tier is ruled out.

Options and monthly cost:

  • Fly.io shared-cpu-1x, 256 MB: $2.19/month, plus a small amount of egress at $0.02/GB. A webhook receiver’s traffic is tiny, so the bill stays close to the machine price. Add a volume if SQLite must persist.
  • DigitalOcean $4 Droplet: fixed $4/month with 500 GiB of transfer. More setup (Node.js, a process manager, Caddy for HTTPS), but the same box can later host a second small service.
  • Railway Hobby: $5/month, with $5 of usage included. At about $10 per GB of RAM per month, a 128–256 MB process averaging low CPU stays within the included usage.

Any of the three is under $5. The choice comes down to whether you prefer a managed deploy (Fly.io, Railway) or a server you control (Droplet).

FAQ

Can I run Node.js on shared web hosting? Some hosts now support it. Hostinger, for example, documents Node.js web apps on its Business and Cloud plans, with Node.js 18 to 24. The low introductory prices require long prepaid terms, so compare the renewal price.

Is a free tier fine for a portfolio project? Yes. A one-minute wake-up after inactivity is acceptable for a demo that recruiters open once. Mention it in the README so nobody thinks the app is broken.

What about serverless functions? They can be the cheapest option for low, spiky traffic, because you pay per request. They fit request-response APIs well, but not long-running processes, websockets or background workers.

Sources

  1. Render: Free instances
  2. Render: Outbound bandwidth
  3. Render pricing
  4. Cloudflare Workers static assets: billing and limitations
  5. Oracle Cloud Always Free resources
  6. Railway pricing
  7. Fly.io pricing
  8. DigitalOcean Droplet pricing
  9. DigitalOcean App Platform pricing
  10. Hostinger VPS hosting

Last verified: . Prices, limits and policies come from the official pages listed under Sources, not from hands-on testing. Providers change them often, so confirm on the provider's own page before you buy. Spotted something out of date? Tell us.