FunctionPriceBook

When serverless is cheaper than a VPS (and when it isn't)

By Editorial team · 2026-03-19

In short: Serverless is cheaper when your traffic is spiky or low-volume, because you pay nothing while idle (scale-to-zero) and most small workloads fit inside a free tier. A small always-on VPS (from ~$4-7/mo) becomes cheaper once your function would run a large fraction of the month, because flat VPS pricing beats per-GB-second billing at high, steady utilisation. The crossover is roughly when sustained serverless compute would exceed the VPS's monthly price.

“Should I use serverless or just rent a server?” is really a question about utilisation. Serverless bills for the time you run; a VPS bills a flat fee whether you use it or not. That single difference decides the cheaper option.

The two billing shapes

When serverless wins

When a VPS (or micro-VM) wins

A middle ground worth knowing: scale-to-zero micro-VMs like Fly.io Machines (~$1.94/mo always-on, $0 when stopped) and Render give you VPS-style flat pricing with scale-to-zero.

A rough rule of thumb

UtilisationCheaper option
Under ~15-20% (spiky/low-volume)Serverless (often free tier)
~20-60% (medium, variable)Depends — model both
Near always-on (>60%)VPS or scale-to-zero micro-VM

Snapshot captured June 2026.

Bottom line

Don’t assume serverless is automatically the cheap choice — it’s cheap for idle-heavy workloads. For steady load, a $5 VPS or a Fly.io Machine usually wins. Estimate your serverless side of the comparison with the calculator, and see the hidden costs of serverless before you decide.

Frequently asked questions

Is serverless always cheaper than a server?

No. Serverless is cheaper for spiky, low-volume or bursty workloads because you pay only while running and most small apps fit in a free tier. For steady, always-on, high-utilisation workloads a flat-rate VPS (from ~$4-7/month) is usually cheaper than per-GB-second serverless billing.

Where is the break-even between serverless and a VPS?

Roughly where your serverless compute would run a large fraction of every month. If a function is effectively always busy, its GB-seconds add up to more than a small VPS's flat fee. A useful rule of thumb: if utilisation is under ~15-20%, serverless usually wins; if it's near always-on, a VPS or a scale-to-zero micro-VM like Fly.io is usually cheaper.

Related articles

Last updated: 2026-03-19