On-demand, Linux
$0.033506/ hr
$24.46/mo · lowest in Iowa (us-central1)
3-yr commitment, Linux
$0.015078/ hr
Lowest in Iowa (us-central1)
Spot, Linux
$0.005214/ hr
Lowest in Las Vegas (us-west4)
Per unit
$0.016753/ vCPU-hr
$0.008377 / GiB-hr, at the lowest rate
Compute
2vCPUs
Shared core • x86-64
Memory
4GiB
2 GiB / vCPU
GiB per vCPU: 2
Architecture: x86-64
CPU: Mixed (Intel / AMD)
Cores: Shared core

On AWS

The nearest AWS machines to e2-medium by vCPU and memory, at On-demand Linux rates in Northern Virginia (us-east4 ↔ us-east-1).

MachineSizeOn-demand Linuxvs e2-medium
e2-mediumThis page · Google Cloud, us-east42 vCPU · 4 GiB$0.037735/hr—
t3a.mediumsame 2 vCPU and 4 GiB; Intel or AMD vs AMD2 vCPU · 4 GiB$0.0376/hr0.4% less
t3.mediumsame 2 vCPU and 4 GiB; Intel or AMD vs Intel2 vCPU · 4 GiB$0.0416/hr10% more
t2.mediumsame 2 vCPU and 4 GiB; Intel or AMD vs Intel2 vCPU · 4 GiB$0.0464/hr23% more

Matched on vCPU and memory, then CPU vendor, then rate; a larger size is offered only when nothing is the same size. On-demand Linux only: Spot and commitments work differently on the two clouds, so they aren't compared here.

How this price is built

Google bills a VM by its parts, each with its own SKU. These are the parts of the On-demand Linux rate in Iowa (us-central1). The total is the published price; the parts add up to it.

PartSKUGoogle's rateQuantityPer hour
vCPUE2 Instance Core running in Americas
CF4E-A0C7-E3BF
$0.021812 per hour1 vCPU$0.021812
MemoryE2 Instance Ram running in Americas
F449-33EC-A5EF
$0.002924 per GiB-hour4 GiB$0.011694
On-demand, Linux$0.033506

Windows adds the Windows Server licence: 2 vCPU × $0.046 per hour (SKU 92D2-8A8F-DF54) = $0.0920/hr, the same in every region and on every basis.

Rates by region

On-demand: Pay-as-you-go rate, composed from Google's per-vCPU and per-GiB SKUs

Lowest$0.033506 / hrIowa (us-central1)
Highest$0.053609 / hrDammam (me-central2)
Regions42With a Linux On-demand price
RegionLinux (On-demand)Windows (On-demand)
africa-south1
Johannesburg
$0.036858$0.128858
asia-east1
Taiwan
$0.038796$0.130796
asia-east2
Hong Kong
$0.046881$0.138881
asia-northeast1
Tokyo
$0.042983$0.134983
asia-northeast2
Osaka
$0.042983$0.134983
asia-northeast3
Seoul
$0.042983$0.134983
asia-south1
Mumbai
$0.040242$0.132242
asia-south2
Delhi
$0.040242$0.132242
asia-southeast1
Singapore
$0.041333$0.133333
asia-southeast2
Jakarta
$0.045053$0.137053
australia-southeast1
Sydney
$0.047541$0.139541
australia-southeast2
Melbourne
$0.040408$0.132408
europe-central2
Warsaw
$0.040542$0.132542
europe-north1
Finland
$0.036889$0.128889
europe-north2
Stockholm
$0.035181$0.127181
europe-southwest1
Madrid
$0.039538$0.131538
europe-west1
Belgium
$0.036858$0.128858
europe-west10
Berlin
$0.043169$0.135169
europe-west12
Turin
$0.043222$0.135222
europe-west2
London
$0.043168$0.135168
europe-west3
Frankfurt
$0.043168$0.135168
europe-west4
Netherlands
$0.036886$0.128886
europe-west6
Zurich
$0.043891$0.135891
europe-west8
Milan
$0.038866$0.130866
europe-west9
Paris
$0.038866$0.130866
me-central1
Doha
$0.040709$0.132709
me-central2
Dammam
Highest
$0.053609$0.145609
me-west1
Tel Aviv
$0.036856$0.128856
northamerica-northeast1
Montreal
$0.036886$0.128886
northamerica-northeast2
Toronto
$0.036886$0.128886
northamerica-south1
Mexico
$0.036521$0.128521
southamerica-east1
Sao Paulo
$0.053185$0.145185
southamerica-west1
Santiago
$0.047913$0.139913
us-central1
Iowa
Lowest
$0.033506$0.125506
us-east1
South Carolina
Lowest
$0.033506$0.125506
us-east4
Northern Virginia
$0.037735$0.129735
us-east5
Columbus
Lowest
$0.033506$0.125506
us-south1
Dallas
$0.039537$0.131537
us-west1
Oregon
Lowest
$0.033506$0.125506
us-west2
Los Angeles
$0.040245$0.132245
us-west3
Salt Lake City
$0.040245$0.132245
us-west4
Las Vegas
$0.037735$0.129735

Monthly is 730 hours and annual is 8,760. Windows prices include the Windows Server licence.

What the prices include

  • Regions. e2-medium is priced in the 42 regions where Compute Engine runs it in at least one zone. It may run in only some of a region's zones.
  • Windows. The Windows Server licence costs $0.046 per visible vCPU per hour, charged on both of this type's visible vCPUs: Google's flat shared-core licence rate covers only f1-micro and g1-small. Spot and commitments don't discount it, so it's added at the full rate on every basis.
  • Spot. Google can stop a Spot VM at any time and changes Spot prices up to once every 30 days.
  • Commitments. The 1-yr and 3-yr rates are resource-based committed use discounts: you commit to an amount of E2 vCPU and memory in one region and pay for it whether you use it or not. Flexible (spend-based) commitments discount less and aren't shown.
  • Sustained use. E2 gets no sustained-use discount.

Other E2 machine types

Machine typevCPUMemory (GiB)Lowest On-demand, Linux
e2-micro21$0.008376/hr
e2-highcpu-222$0.04947/hr
e2-small22$0.016753/hr
e2-medium24$0.033506/hr
e2-standard-228$0.067011/hr
e2-highmem-2216$0.0904/hr
e2-highcpu-444$0.09894/hr
e2-standard-4416$0.134023/hr
e2-highmem-4432$0.180799/hr
e2-highcpu-888$0.197881/hr
e2-standard-8832$0.268046/hr
e2-highmem-8864$0.361599/hr
e2-highcpu-161616$0.395762/hr
e2-standard-161664$0.536091/hr
e2-highmem-1616128$0.723197/hr
e2-highcpu-323232$0.791524/hr
e2-standard-3232128$1.072183/hr