Compare · US

Cheapest 2 vCPU, 4 GB VM

AWS, Azure and GCP list prices for a Linux VM with at least 2 vCPUs and 4 GB, in us-east-1, eastus and us-central1. The smallest fit from each family, 730 hours a month, no discounts applied except the commitment columns.

Other regions: Europe · Asia Pacific. Nearby sizes: 1 vCPU / 2 GB · 4 vCPU / 8 GB.

Cheapest per cloud

CloudOn-demand /mo1-year /mo3-year /mo
AWS us-east-1$49.64
c6g.large
$36.21
c6g.large
$23.94
c6g.large
Azure eastus$45.26
Standard_D2pls_v6
$26.67
Standard_D2pls_v6
$17.19
Standard_D2pls_v6
GCP us-central1$42.40
e2-custom-2-4096
$30.82
e2-standard-2
$24.89
c4a-highcpu-2

Commitments: AWS Compute Savings Plan, Azure reservation, GCP committed use discount — no upfront where there is a choice.

AWS · us-east-1 · on-demand, Linux

TypevCPUGBArch/hr/mo
c6g.large2.04arm64$0.0680$49.64
c7g.large2.04arm64$0.0725$52.92
c6a.large2.04x86_64$0.0765$55.84
c6gd.large2.04arm64$0.0768$56.06
m6g.large2.08arm64$0.0770$56.21

Azure · eastus · on-demand, Linux

TypevCPUGBArch/hr/mo
Standard_D2pls_v624arm64$0.0620$45.26
Standard_D2pls_v524arm64$0.0680$49.64
Standard_D2ps_v628arm64$0.0702$51.25
Standard_D2plds_v524arm64$0.0768$56.06
Standard_D2ps_v528arm64$0.0770$56.21

GCP · us-central1 · on-demand, Linux

TypevCPUGBArch/hr/mo
e2-custom-2-409624x86_64$0.0581$42.40
e2-standard-228x86_64$0.0670$48.92
n2d-custom-2-409624x86_64$0.0732$53.46
c2d-highcpu-224x86_64$0.0750$54.72
c4a-highcpu-224arm64$0.0758$55.30

Run it with the API

This page is one /api/v1/compare call. Change the requirements, regions or category and run your own:

curl -s https://api.cloudcostdata.com/api/v1/compare \
  -H "X-API-Key: $CCD_API_KEY" -H "Content-Type: application/json" \
  -d '{"category": "vm", "regions": {"aws": "us-east-1", "azure": "eastus", "gcp": "us-central1"},
       "requirements": {"vcpus": 2, "memory_gib": 4}, "limit": 5}'

Get a free API keyHow /compare works