Guides · FOR

How much does it cost to host a Go web service?

We are paid if you buy through an 'Order' link. 'Visit' links pay us nothing.

By Shubham Saini, editor. Published 1 Nov 2026; figures from prices read 25-28 Nov 2026, each with its own read date.

Prices in this guide, checked 28 Nov 2026

  1. Ethernet Servers KVM SSD VPS 1 GB1 vCPU, 1 GB, 55 GB SSD

    $3/mo final price, no VAT addedchecked 28 Nov 2026

  2. InterServer 1 slice1 vCPU, 2 GB, 40 GB SSD

    $3/mochecked 28 Nov 2026

  3. AlphaVPS Cheap C2G2 vCPU, 2 GB, 30 GB NVMe (RAID-10)

    $3.28/mo before tax · billed €2.99 (euro rate of 27 Nov 2026)checked 25 Nov 2026

How we pick: the plans this guide names, then the providers it names, then the cheapest we would pick, in that order, each one you can order today; cheapest first within each of the three. Prices in this table were checked 28 Nov 2026 on each provider's own site. How we check prices

A Go web service on its own fits the smallest server most providers sell, and that costs from $3 a month. The cheapest with at least 1 vCPU, 1 GB RAM and 20 GB of disk is InterServer 1 slice (1 vCPU, 2 GB RAM, 40 GB SSD), read on 28 Nov 2026. 81 of the 103 providers we track sell this size, and 40 of them charge $6.89 or less (prices read 25-28 Nov 2026). Put Postgres on the same box and the size to buy is 2 vCPU and 4 GB, from $4.37 before tax, billed in euros (AlphaVPS Cheap C4G).

What a Go service asks of the server

A Go service is one compiled program. Five facts from Go's own docs decide what it needs:

  • One file to copy, nothing to install. Building for Linux on a Mac or Windows laptop (GOOS=linux GOARCH=amd64 go build) is cross-compiling, and Go turns cgo off by default when it cross-compiles, so the binary links no C libraries. The server needs no Go toolchain and no language runtime.
  • The vCPU count is the parallelism. GOMAXPROCS, the number of threads that run Go code at once, defaults to the CPUs the server shows. Since Go 1.25 it also follows a container's CPU limit and is read again while the program runs. There is no worker count to tune: a second vCPU is used as soon as the plan has one.
  • A memory ceiling you set yourself. GOMEMLIMIT (Go 1.19 and later) puts a soft limit on all the memory the Go runtime uses. The GC guide's rule of thumb for a service with a fixed amount of memory is to leave 5-10% headroom for memory the runtime does not know about. On a 1 GB server, count the OS first.
  • A cheaper garbage collector since Go 1.26. The Green Tea collector is on by default. The Go team expects 10-40% less collection overhead in programs that lean on the collector, and about 10% more on Intel Ice Lake, AMD Zen 4 and newer CPUs.
  • Two releases are supported. Go 1.27 (released 19 August 2026) and Go 1.26; each major release is supported until two newer ones ship.

The first size priced below is the plan finder's smallest, 1 vCPU, 1 GB RAM and 20 GB of disk. That is room for the binary, the OS and the logs; it is a floor, not a measurement of your service.

Sources, all read 1 Nov 2026: the Go release history, the Go 1.25 and Go 1.26 release notes, the cgo documentation and the GC guide.

Which VPS gives the most measured speed per dollar?

The cheapest servers for a Go service, 25-28 Nov 2026

Each provider's cheapest plan with at least 1 vCPU, 1 GB RAM and 20 GB of disk and a public IPv4 address, cheapest first. Per month includes an IPv4 address billed on top; Read gives each price's read date and how it was read.

The 10 cheapest servers with at least 1 vCPU, 1 GB RAM and 20 GB of disk, one per provider, cheapest first
Provider Plan vCPU / RAM / disk Per month Terms Read
InterServer 1 slice 1 / 2 GB / 40 GB SSD $3.00 month to month 28 Nov, provider page
Ethernet Servers KVM SSD VPS 1 GB 1 / 1 GB / 55 GB SSD $3.00 month to month 28 Nov, provider page
AlphaVPS Cheap C2G 2 / 2 GB / 30 GB NVMe $3.28 before tax, billed in euros 25 Nov, read by hand
Hostodo EPYC-2G1C32GN 2 / 2 GB / 32 GB NVMe $3.50 month to month 28 Nov, provider page
Cherry Servers Cloud VPS 1 (Gen 2) 1 / 1 GB / 20 GB SSD $3.51 before tax 28 Nov, provider page
Kamatera Basic 1 / 1 GB / 20 GB NVMe $4.00 month to month 28 Nov, provider page
CloudServer Linux KVM 1GB 1 / 1 GB / 25 GB SSD $4.00 month to month 28 Nov, provider page
KhanWebHost VPS-CA2 1 / 2 GB / 20 GB NVMe $4.00 month to month 28 Nov, provider page
STRATO VPS S 1 / 2 GB / 60 GB NVMe $4.38 billed in euros 28 Nov, provider page
Alwyzon Virtual Server XS (G3) 2 / 2 GB / 40 GB NVMe $4.92 before tax, billed in euros 28 Nov, provider page

24 providers sell this size for $5 a month or less. AlphaVPS, STRATO and Alwyzon bill in euros, so the dollar figure moves with the ECB rate (1.0957 dollars per euro on 27 Nov).

What each step up in memory costs

The binary is small; what the service keeps in memory sets the size, and so does a database on the same box. Each row is the cheapest plan per provider at that size or larger, and the price that half of the providers stay at or under:

The cheapest server and the middle of the market at four sizes, one plan per provider
Memory, at least vCPU / disk, at least Cheapest provider Plan Per month Terms Half of them charge up to
1 GB 1 / 20 GB InterServer 1 slice $3.00 month to month $6.89 (40 of 81 providers)
2 GB 1 / 20 GB InterServer 1 slice $3.00 month to month $10.00 (40 of 81 providers)
4 GB 2 / 20 GB AlphaVPS Cheap C4G $4.37 before tax, billed in euros $18.99 (40 of 80 providers)
8 GB 4 / 80 GB Contabo Cloud VPS 4 $6.60 before tax, plus a $2.40 setup fee $38.99 (34 of 68 providers)

At those half-way prices, a service that fits in 1 GB costs $12.10 a month less than one that needs 4 GB ($6.89 against $18.99), $145.20 a year. Prices read 21-28 Nov 2026.

How does VPS price grow with RAM?

The names you know, at the service's size and the database's

The best-known clouds at 1 GB and at 4 GB, cheaper first
Provider 1 GB plan Per month 4 GB plan Per month Terms Read
Vultr Regular 1GB $5.00 Regular 4GB $20.00 month to month 28 Nov, provider API
Akamai Cloud (Linode) Nanode 1GB $5.00 Linode 4GB $24.00 month to month 28 Nov, provider API
DigitalOcean Basic 1GB $6.00 Basic 4GB $24.00 month to month 28 Nov, provider page
Hetzner CPX02 · Shared AMD $6.59 CPX22 · Shared AMD $20.09 1 GB: Helsinki; $8.09 in Germany, $5.99 server + $0.60 IPv4; 4 GB: Helsinki; $23.59 in Germany, $19.49 server + $0.60 IPv4; before tax 28 Nov, provider API
AWS Lightsail General 1GB $7.00 General 4GB $24.00 month to month 28 Nov, provider API

Read every day since 5 Oct, none of these 8 prices has changed.

Platforms we do not price

Railway, Fly.io, Render and Google Cloud Run build and run a Go service straight from a repository, and most guides to Go hosting recommend them. We do not read their prices yet, so this page quotes none of them.

Deploying the binary: one build command and one systemd unit

On your own machine, one static binary for a Linux server:

GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o myservice .
scp myservice deploy@your-server:/opt/myservice/

/etc/systemd/system/myservice.service on the server:

[Unit]
Description=Go web service
After=network-online.target
Wants=network-online.target

[Service]
User=deploy
WorkingDirectory=/opt/myservice
ExecStart=/opt/myservice/myservice
# Below the memory free -m reports as available, less 5-10% headroom (GC guide).
Environment=GOMEMLIMIT=700MiB
Restart=on-failure

[Install]
WantedBy=multi-user.target

Start it with systemctl enable --now myservice. Put Caddy or Nginx in front for TLS, or serve TLS from the Go program itself.

Related

Every price above carries its read date and how it was read. How we read them: methodology.

Replaces the 22 September 2026 version of this page, which recommended Hetzner CX22 at $4.60, CX32 at $7.60 and CPX31 at $15.60 a month. On the Hetzner price list read 28 Nov 2026, CX22 and CX32 are no longer on it, and CPX31 is sold only in the United States, from $74.09 a month with IPv4, before tax.