Railway Pricing: Plans, Usage and Real Hosting Costs
Railway pricing starts at $0 for its Free plan, $5 per month for Hobby and $20 per month for Pro. Unlike traditional VPS hosting, Railway charges based on the CPU, memory, storage, and network bandwidth your applications consume, with paid subscriptions counting toward those costs.
Understanding your likely Railway hosting costs requires looking beyond the advertised subscription price. An application with very few users can still generate a substantial bill if its database, background workers and development environments consume memory around the clock.
Our Railway pricing guide breaks down the current tariffs, explains PostgreSQL hosting costs, and includes an interactive calculator based on three application architectures. The calculations use Railway’s published resource rates rather than assumed costs per visitor or unverified hosting benchmarks.
Pricing checked: 29 November 2026. All prices are in US dollars and exclude applicable taxes.
Railway pricing plans compared
| Feature | Free | Hobby | Pro | Enterprise |
|---|---|---|---|---|
| Monthly minimum | $0 | $5 | $20 | Custom |
| Included monthly usage | $1 | $5 | $20 | Contract dependent |
| Maximum RAM per service | 0.5 GB | 48 GB | 1 TB | 2.4 TB |
| Maximum vCPU per service | 1 | 48 | 1,000 | 2,400 |
| Maximum volume size | 0.5 GB | 5 GB | 1 TB | 5 TB |
| Projects | 1 | 50 | 100 | Unlimited |
| Always-on hosting | No | Yes | Yes | Yes |
| Log history | 1 day | 7 days | 30 days | 90 days |
| Support | Community | Community | Railway support | Enterprise support |
| Best for | Experiments | Personal applications | Commercial applications | Large organisations |
The resource limits above represent maximum available capacity, including scaling across replicas where applicable. They are not prepaid allocations of CPU or memory. A Hobby subscription does not include 48 GB of continuously running RAM for $5.
For most independent developers, Hobby is the sensible starting point. Pro becomes more attractive when collaboration, support, larger persistent volumes and production infrastructure requirements become important.
Our Railway hosting review examines the wider platform, including deployment workflows, database management, observability and production limitations.
Is Railway still free?
Railway currently advertises a Free plan with $1 of recurring monthly usage and an introductory trial providing $5 of credits for up to 30 days. Free services sleep when inactive and stop when their available monthly credit is exhausted.
Following its October 2026 security incident, Railway reopened registrations on 2 November, initially requiring new customers to purchase a paid subscription before deploying. Its current documentation again describes free trial deployments, although new customers should confirm their workspace’s deployment eligibility before relying on the free allowance.
Trial accounts may also have restricted outbound networking until they pass Railway’s automated verification process. This can affect applications that depend on external APIs.
Railway pricing calculator
Use the calculator below to estimate your monthly Railway hosting bill. Select one of the three application workloads or enter your own resource consumption. The calculator accounts for included subscription usage, so your plan fee is not charged twice.
What does the Railway Hobby plan actually include?
Railway’s $5 Hobby plan includes $5 of monthly resource consumption. Any unused allowance expires at the end of the billing cycle, and additional consumption is charged at the standard resource rates.
| Monthly resource usage | Hobby bill | Pro bill |
|---|---|---|
| $3 | $5 | $20 |
| $5 | $5 | $20 |
| $12 | $12 | $20 |
| $25 | $25 | $25 |
| $50 | $50 | $50 |
An interesting consequence of this pricing structure is that upgrading from Hobby to Pro need not increase your monthly hosting costs. Once your eligible resource consumption consistently exceeds $20, both plans have the same underlying resource charges.
Pro does not provide discounted CPU or memory rates. Its financial advantage at that point is access to additional platform features without a higher effective minimum payment.
Railway CPU, RAM, storage and bandwidth costs
Railway’s standard application hosting rates apply across the Free, Hobby and Pro plans. CPU and memory consumption are measured over time, so a brief increase in resource usage costs less than maintaining that consumption continuously.
| Resource | Pricing | Example cost |
|---|---|---|
| RAM | $10 per GB-month | 512 MB continuously: approximately $5 |
| CPU | $20 per vCPU-month | 0.1 average vCPU: $2 |
| Persistent volumes | $0.15 per GB-month | 10 GB used: $1.50 |
| Incremental volume backups | $0.15 per GB-month | 5 GB billable backup data: $0.75 |
| Network egress | $0.05 per GB | 100 GB: $5 |
| Object storage buckets | $0.015 per GB-month | 100 GB: $1.50 |
| Standard service builds | Free | $0 |
Railway also offers virtual machines and sandboxes with different tariffs. These cost approximately $50 per GB-month of memory and $50 per vCPU-month of active CPU consumption. Do not apply the standard application hosting rates to AI Agent sandboxes or other VM-based workloads.
Memory is often the deciding cost.
A recurring issue raised by developers using Railway is that memory consumption remains significant even when their applications receive almost no traffic. An idle Node.js application, PostgreSQL database and queue worker can collectively consume more than 1 GB of RAM.
At Railway’s current rates, that represents more than $10 per month before accounting for CPU, persistent storage or bandwidth.
When estimating application costs, measure the memory consumption of the entire deployment, not just the primary web service. Separate frontend services, database connection pools and unused staging environments can materially change the bill.
Railway storage pricing: volumes versus buckets
Railway offers persistent volumes for services that require filesystem access and S3-compatible object storage buckets for files such as images, documents and generated media.
Object storage costs one-tenth of the standard persistent volume rate and includes free bucket egress and S3 API operations. However, a PostgreSQL data directory requires filesystem storage and cannot simply be moved into an object storage bucket.
For an application storing 100 GB of user-uploaded media, volume storage would cost approximately $15 per month compared with $1.50 in a Railway bucket. Serving the files directly from the bucket using signed URLs, where appropriate, can also avoid unnecessary application-level bandwidth charges.
Railway PostgreSQL pricing
Railway does not charge a fixed subscription for a standard PostgreSQL instance. Database hosting follows the same CPU, RAM, persistent storage and network pricing as other container services.
| Database workload | Average RAM | Average CPU | Volume usage | Estimated resource cost |
|---|---|---|---|---|
| Small personal database | 0.25 GB | 0.02 vCPU | 1 GB | $3.05/month |
| Small SaaS database | 0.65 GB | 0.04 vCPU | 3 GB | $7.75/month |
| Growing production database | 1.2 GB | 0.12 vCPU | 10 GB | $15.90/month |
| Heavier database | 4 GB | 0.5 vCPU | 50 GB | $57.50/month |
These are illustrative resource budgets for single-node PostgreSQL deployments, excluding backups, public network egress and application services. The workspace subscription minimum still applies to the combined bill.
Database memory deserves particular attention. PostgreSQL uses memory for shared buffers, query execution, active connections and other processes. Increasing connection limits or running multiple expensive queries simultaneously can increase consumption without an equivalent increase in customer numbers.
Railway also supports PostgreSQL high availability, connection pooling, backups and point-in-time recovery. A high-availability configuration adds further infrastructure, so the single-node estimates above should not be used to budget for a replicated database cluster.
For commercial applications, include incremental backup storage and the cost of maintaining an independent recovery strategy. A cheap database becomes expensive very quickly if restoring it requires several hours of engineering work.
Real monthly costs for three Railway application workloads
The following scenarios illustrate how application architecture affects Railway hosting costs. They use defined resource assumptions rather than claiming that every application with a particular number of users will cost the same amount.
Scenario 1: Small personal application – $5 per month
A lightweight API, portfolio backend or personal automation dashboard running continuously without a separate database.
| Resource | Monthly usage | Cost |
|---|---|---|
| Application RAM | 0.25 GB | $2.50 |
| Application CPU | 0.04 vCPU | $0.80 |
| Network egress | 5 GB | $0.25 |
| Total resource usage | $3.55 | |
| Total Hobby bill | $5.00 |
This application fits comfortably within the Hobby allowance. Adding a PostgreSQL instance with $3.05 of monthly resource consumption would increase the combined bill to approximately $6.60.
Scenario 2: SaaS application with PostgreSQL – $15.75 per month
A small subscription-based application with a combined frontend and API service, a separate PostgreSQL database and incremental volume backups.
| Resource | Monthly usage | Cost |
|---|---|---|
| Application RAM | 0.5 GB | $5.00 |
| Application CPU | 0.08 vCPU | $1.60 |
| PostgreSQL RAM | 0.65 GB | $6.50 |
| PostgreSQL CPU | 0.04 vCPU | $0.80 |
| Database volume | 3 GB | $0.45 |
| Incremental backups | 1 GB | $0.15 |
| Network egress | 25 GB | $1.25 |
| Total Hobby bill | $15.75 |
Annual hosting expenditure would be approximately $189 on Hobby or $240 on Pro at this level of consumption.
One additional continuously running service consuming 0.5 GB of RAM would push the bill above $20 even before its CPU usage was considered. At that point, upgrading to Pro could provide better operational features without increasing the underlying hosting expenditure.
Scenario 3: Production application with background workers – $64.50 per month
A commercial application running two web replicas, two background workers, PostgreSQL, Redis and object storage. This configuration suits applications that process documents, generate reports or handle asynchronous tasks independently of web requests.
| Service | Average combined RAM | Average combined CPU | Compute cost |
|---|---|---|---|
| Two web replicas | 1.4 GB | 0.30 vCPU | $20.00 |
| Two background workers | 1.2 GB | 0.40 vCPU | $20.00 |
| PostgreSQL | 1.2 GB | 0.12 vCPU | $14.40 |
| Redis | 0.2 GB | 0.02 vCPU | $2.40 |
| Total compute | 4 GB | 0.84 vCPU | $56.80 |
| Additional resources | Usage | Cost |
|---|---|---|
| Persistent volumes | 12 GB | $1.80 |
| Incremental backups | 4 GB | $0.60 |
| Network egress | 100 GB | $5.00 |
| Object storage | 20 GB | $0.30 |
| Total additional resources | $7.70 | |
| Total Pro bill including compute | $64.50 |
This deployment costs approximately $774 annually before taxes and external services. It also illustrates why optimising background workers can be more financially useful than optimising the frontend.
The two workers account for $20 of monthly compute costs. If their workload can be converted into scheduled jobs that consume an equivalent amount of CPU but retain memory for fewer hours, the memory component of their bill could fall substantially.
Although the web application has two replicas, the database remains a single node. Additional database replicas, disaster recovery infrastructure and staging environments would increase this budget.
How to prevent unexpected Railway bills
Railway provides sufficient cost controls to make usage-based hosting manageable. The key is configuring them before exposing a deployment to production traffic.
1. Configure spending alerts and hard limits separately
Open the Usage section of your Railway workspace and configure a custom email alert and a hard usage limit.
An email alert warns you when consumption reaches a defined threshold. A hard compute limit takes workloads offline when the threshold is reached. Railway’s Agent usage has separate spending controls.
For a personal project expected to consume $5 per month, a $5 email alert and $10 compute hard limit could be appropriate. A commercial application needs more headroom because an unexpected increase in legitimate customer traffic could otherwise trigger an outage.
Railway explains the available settings in its cost control documentation.
See more of our reporting in Google Top Stories, AI Overviews and AI Mode.
2. Enable serverless mode where sleeping is acceptable
Railway can automatically stop inactive services, eliminating their compute consumption while asleep. However, inactivity is determined by outbound network activity rather than simply the absence of visitors.
Database connection pools, telemetry, background polling and external API calls can prevent an apparently idle application from sleeping. Enable serverless mode, redeploy the service and check whether its memory consumption actually falls to zero during quiet periods.
A service averaging 0.5 GB of RAM while awake for only eight hours per day would consume about $1.67 in monthly memory rather than $5, assuming it sleeps for the rest of the time.
Allow for cold-start delays, particularly when an application depends on several sleeping services.
3. Keep database traffic on private networks
Applications hosted within the same Railway project and environment should normally connect through private networking. Using a public PostgreSQL connection string for internal application requests creates avoidable bandwidth charges and unnecessarily exposes infrastructure.
Check that the application uses the private DATABASE_URL rather than DATABASE_PUBLIC_URL where the standard Railway database variables are available.
4. Audit every environment and replica
Preview deployments, test databases and forgotten staging environments consume real infrastructure resources. Duplicating an application environment can duplicate much of its baseline cost.
Review consumption by service and environment before attempting application-level performance optimisations. Deleting an abandoned staging deployment can save more than hours spent reducing the memory footprint of a live application.
5. Establish a seven-day cost baseline
Run the intended deployment for seven representative days and inspect its actual resource usage. Include both busy and quiet periods, scheduled jobs and normal database activity.
Multiply the seven-day resource consumption cost by approximately 4.29 to estimate a 30-day workload. Apply your subscription minimum afterwards. Do not multiply an invoice containing the subscription fee, as this would distort the estimate.
Track memory, CPU and bandwidth independently. If costs increase, this makes it considerably easier to identify the service responsible rather than attributing every increase to customer growth.
When is Railway more expensive than a VPS?
Railway becomes less financially attractive when applications consume substantial amounts of memory continuously, particularly when those workloads can comfortably share a fixed-price virtual server.
| Consideration | Railway | Traditional VPS |
|---|---|---|
| Billing model | Measured resource consumption | Usually fixed server capacity |
| Idle infrastructure | Running resources remain billable | Included within server rental |
| Deployment automation | Built into the platform | Developer configures it |
| Operating system maintenance | Infrastructure managed by Railway | Typically the customer’s responsibility |
| Scaling | Integrated platform controls | Requires infrastructure planning |
| Monthly predictability | Variable | Generally higher |
| Best workload | Changing or independently scaled services | Stable, continuously running applications |
Calculate your VPS break-even point
Suppose a suitable VPS costs $12 per month. Your Railway application averages 0.1 vCPU, consumes 10 GB of persistent storage and transfers 20 GB of data each month.
CPU, storage and network charges would account for $4.50. This leaves $7.50 of the equivalent VPS budget available for memory, corresponding to 0.75 GB of average Railway RAM consumption.
Above that threshold, Railway’s direct resource costs exceed the hypothetical VPS rental price. However, the comparison holds only if the VPS has sufficient capacity, equivalent backup arrangements, and acceptable performance under peak demand.
There is also an engineering cost. Saving $20 per month on infrastructure is unlikely to be worthwhile if maintaining that infrastructure introduces several additional hours of work every year. Conversely, an experienced developer already maintaining several servers may find that adding another application has very little operational cost.
If you prefer managed application infrastructure but want more predictable service-level pricing, our Railway vs Render comparison examines the differences between the two deployment platforms.
Is Railway worth paying for?
Railway offers good value for developers who want to deploy applications quickly without maintaining the underlying server infrastructure. Its $5 Hobby plan is particularly attractive for lightweight applications, while the Pro plan becomes financially compelling once monthly resource consumption reaches $20.
Your purchasing decision should depend on your application’s baseline resource consumption, especially for continuously running databases and workers. Low traffic does not necessarily mean low hosting costs, and a fixed-price VPS may offer better direct value for memory-heavy applications that rarely need to scale.
Start with the pricing calculator, deploy the smallest complete version of your application and establish a measured cost baseline. That provides a considerably more reliable purchasing decision than choosing a hosting plan based on its advertised starting price.


