Contents
If you want to publish a web app for about $5 a month, start with two questions. Does the server need to stay running when nobody is visiting? Where will user data live? You can serve a static landing page from $0. A small API can stay running on one instance from a little over $2 per 30 days. If you need PostgreSQL, estimate what it costs to try the app during a free trial and what it costs to keep it online afterward.
Prices are published rates in US dollars, checked November 9, 2026. Amounts exclude taxes.
Choose a host based on what needs to run
Landing page or portfolio → static hosting
Startup delay is acceptable → free tier or on-demand hosting
Requests need a prompt response → always-on hosting
Posts or bookings → add a database to the hosting estimate
Static sites can start at $0. Sites that serve HTML, CSS, and images, and apps whose built JavaScript runs entirely in the browser, can be deployed as static files. With Cloudflare Workers static assets, requests that return files without running Worker code are free. Check the cost of server-side work if your app handles form submissions or generates HTML on each request. Cloudflare static asset billing · Serving browser-based apps
A free web service can work for a demo that can wait. Render's free web service sleeps after 15 minutes without inbound traffic. The next request wakes it, which Render says takes about one minute. That may be fine for a demo you use yourself. For a webhook receiving notifications from another service, the sender may time out first. Free services share 750 instance hours per workspace per calendar month. Once those hours run out, free web services are suspended until the next month. Render's free web service limits
A low-traffic API can also start on demand. On Google Cloud Run, you can set the minimum instance count to zero and select request-based billing. Estimate your cost using the request count and the CPU and memory allocated during startup, request processing, and shutdown. The first request when there are zero instances has to wait for startup. Outbound traffic has separate pricing terms. Cloud Run pricing · Instance autoscaling
Compare four hosts for an always-on app
These estimates cover one small web server running for a month. Fly.io and KamuiDash use 720 hours, or 30 days. Render lists a monthly rate, and Railway bills for monthly usage. The table excludes extra charges for storage, custom domains, network traffic, and builds. Providers allocate CPU and measure memory differently.
On a narrow screen, scroll the table horizontally.
| Provider and configuration | Estimated cost for one app | What to budget for |
|---|---|---|
Fly.io shared-cpu-1x (Ashburn, US) |
$2.19 per 30 days (256 MB) or $3.69 per 30 days (512 MB) | Costs depend on Machine runtime and region. Outbound traffic and other extras are billed separately. Pricing · Always-on settings |
| KamuiDash Nano or Small (Tokyo) | $3 per 30 days (256 MiB) or $5 per 30 days (512 MiB) | Base fee for one replica. Apps do not automatically sleep during idle periods. Usage beyond included allowances for traffic, deployment, and other items is billed separately. Pricing and plans · Runtime behavior |
| Railway Hobby | From $5 per month | Includes $5 of usage each month. You pay the difference if CPU, memory, outbound traffic, and other usage exceed $5. Unused allowance expires each month. Railway pricing |
Render paid web service (0.5c-512mb, 512 MB) |
$7 per month | One instance in a $0-per-month Hobby workspace. Paid web services do not sleep when idle. Check bandwidth and build-time overages. Pricing · Render FAQ |
Fly.io can create two Machines on the first deployment with the default configuration. The table prices one Machine in Ashburn. If two 512 MB Machines both run continuously for 30 days, the Machines alone cost $7.38. Fly.io first-deploy settings
Railway's starting price depends on usage. Suppose you disable Serverless sleep and keep the app running. Across the billing period, it averages 0.5 GB of memory and 0.05 vCPU, with 1 GB of outbound traffic. The resource charges add up to $5 + $1 + $0.05 = $6.05. Hobby includes $5 of usage, so your total bill is $6.05. At 0.75 GB of average memory with everything else unchanged, the bill rises to $8.55. Include idle periods when estimating memory usage for an always-on app. Railway usage rates · Serverless settings
What PostgreSQL costs during a trial and afterward
A booking app can store its bookings in a separate database so they survive a redeploy. If you are trying it out, some plans let you test the app and the database together. If users will depend on it, check the cost after the trial ends.
KamuiDash charges $0 in base fees for the app and PostgreSQL for 30 days
The KamuiDash free trial lets you try a 256 MiB app and a PostgreSQL database with 3 GiB of storage in the same project for 30 days. Both base fees are $0, and the app does not automatically sleep when idle. Your bill is $0 if usage stays within the included allowances and you do not use a custom domain or object storage. KamuiDash free trial and pricing
With a payment method registered and automatic upgrade enabled, the project switches to PRO at the end of the 30 days. If you do not move to a paid plan, the project is suspended. You can resume by upgrading within 14 days of suspension. After that deadline, the project and database are deleted. What happens when the trial ends
Running the app and database on paid plans
These three examples put the app and PostgreSQL with the same provider. Add the app and database costs to estimate what you will pay after a trial ends.
- KamuiDash charges $3 for a Nano app and $6 for a Nano database, for $9 in base fees per 30 days. The database has 3 GiB of storage and allows six app connections. A 512 MiB Small app with the same database costs $11 in base fees. Usage beyond the included request and database processing allowances adds to the bill. KamuiDash pricing
- Render comes to $13.30 per month using the official guide's rate for 1 GB of database storage. That is $7 for the app, $6 for
0.1c-256mbPostgres compute, and $0.30 for storage. Free Postgres has 1 GB of storage and becomes inaccessible 30 days after creation. The database is deleted if you do not upgrade within the following 14 days. Compute pricing · Database storage pricing · Free Postgres limits - Fly.io charges $38 per month for Managed Postgres Basic, including automatic failover and backups. Storage on v2 is billed by actual usage, and older v1 clusters are billed by provisioned capacity. Running the table's 512 MB Machine for 30 days and using 1 GB of storage on Basic v2 in the same Ashburn region for 30 days comes to about $41.97 before traffic charges. Fly.io Managed Postgres pricing
- On Railway, add the database's CPU, memory, and volume costs. With the $6.05 app above, add a PostgreSQL service averaging 0.25 GB of memory and 0.02 vCPU across the billing period, with a 1 GB volume. The database adds $3.05, for $9.10 per month in total. This estimate assumes one database node, a private connection within the same project, and no outbound traffic from the database to external destinations. Railway usage rates · Private networking
Hosting the database separately to reduce ongoing costs
Neon provides PostgreSQL independently of your app host. Its free plan includes 1 GB of database storage per project, and the database costs $0 within the monthly usage limits. If the Railway app stays at $6.05 per month including traffic sent to the external database, and Neon stays within its free limits, the total is $6.05 per month. Railway usage rates · Neon Free plan
Neon's Free plan suspends compute after five minutes of inactivity, so the next connection may have to wait for startup. Each project gets 100 CU-hours of compute (compute size multiplied by running time) and 5 GB of outbound transfer per month. If either runs out, database compute stays suspended until the next billing period while you remain on Free. The compute and transfer allowances reset each billing period. The 1 GB storage limit applies continuously. Neon Free plan limits
What to check before you publish
- Choose the components you need. Write down whether the app can use static hosting, needs a server, or needs a database. If it needs a server, decide how long the first request after an idle period can wait.
- Measure memory. Run the production startup command locally or in a test environment. Check memory right after startup, while idle, and during overlapping normal operations. If the app does not fit within 256 MiB, estimate using the next size up.
- Make a 30-day cost breakdown. Add what you will actually use, such as traffic, file storage, builds, and a custom domain. Sending a 1 MB image 10,000 times, for example, is about 10 GB a month. For some small apps, traffic can put you over budget before memory does.
To keep your first deployment within budget, compare the cost of running the components you need for a full month. If the estimate is too high, consider how much startup delay users can tolerate and whether the database can live with a separate provider.
Related reading
- Compare Cloudflare’s free tier and KamuiDash costs for side projects
- Can you host a web app for free? Free-tier limits and when to upgrade
- How much does it cost to host a side-project web app with a database?
KamuiDash is a PaaS for deploying web apps from GitHub and provisioning PostgreSQL in the Tokyo region.