Skip to content
runonprem

Cloud vs self-host

VPS vs home server cost calculator

Rent a VPS or run your own small server at home or in the office? Compare the monthly VPS bill with hardware, electricity and other running costs over one, three and five years, and see in which month your own server has paid for itself.

per month
once
years
W
per kWh
per month
Energy
18.25 kWh = $5.48 / month
Own server running cost
$5.48 / month
Own server incl. hardware spread
$12.14 / month
Break-even
month 22
Total afterVPSOwn server
1 year$288.00$465.70
3 years$864.00$597.10
5 years$1,440.00$728.50

How to use it

  1. Enter the monthly price of the VPS or cloud server you would rent (with the storage and backups you need).
  2. Enter the price of comparable own hardware and how many years you expect to use it.
  3. Enter the average power draw measured at the wall and your electricity price per kWh — the power cost calculator lists official prices per country and US state.
  4. Add other monthly costs of self-hosting such as off-site backup storage, a static IP or a faster upload.

Formula and method

hours per month   = 8760 ÷ 12 = 730
energy per month  = watts × 730 ÷ 1000 × price per kWh
own running       = energy per month + other monthly costs
own total (n mo.) = hardware × ⌈n ÷ (lifetime × 12)⌉ + own running × n
VPS total (n mo.) = VPS per month × n
break-even month  = ⌈hardware ÷ (VPS per month − own running)⌉   (within the lifetime)

Worked example

A 24 per month VPS against a 400 mini PC that draws 25 W at 0.30 per kWh: 25 × 730 ÷ 1000 = 18.25 kWh = 5.475 per month. Each month the own server saves 24 − 5.475 = 18.525, so it pays for itself after 400 ÷ 18.525 = 21.6 → month 22. After five years: VPS 24 × 60 = 1,440, own server 400 + 5.475 × 60 = 728.50.

FAQ

Is a home server cheaper than a VPS?

For always-on workloads that need several CPU cores, lots of RAM or many terabytes of storage it often is, because hardware is paid once and efficient mini PCs draw little power. For small workloads a cheap VPS can be cheaper than the electricity of an old desktop.

What power draw should I enter?

The average measured at the wall with a plug-in energy meter over a day or a week, not the power supply rating. Many mini PCs idle at 5–15 W; old desktops and servers often draw far more.

What happens after the hardware lifetime?

The calculator buys the same hardware again at the start of each new lifetime period, so the five-year total includes a replacement when the lifetime is shorter than five years.

Related tools

Formulas reviewed November 27, 2026 by Novian · runs entirely in your browser · methodology