AWS M4 instance types

M4 is a general purpose Amazon EC2 family with 6 instance types, from 2 – 64 vCPUs and 8 GiB – 256 GiB of memory, running on Intel Xeon E5-2676 v3 (Haswell). Linux on demand starts at $0.10 per hour.

general purposex86-64
sizes
6
vCPUs
2 – 64
memory
8 GiB – 256 GiB
processor
Intel Xeon E5-2676 v3 (Haswell)
on-demand from
$0.10

per hour · 16 regions

M4 sizes and prices

Linux, hourly, US East (N. Virginia) (other regions on each size's page)

SizevCPUMemoryLocal storageOn-demandMonthlySpot1-yr
m4.large28 GiB–$0.10$73.00$0.05$0.062
m4.xlarge416 GiB–$0.20$146$0.0934$0.1239
m4.2xlarge832 GiB–$0.40$292$0.1785$0.2478
m4.4xlarge1664 GiB–$0.80$584$0.3553$0.4956
m4.10xlarge40160 GiB–$2.00$1,460$0.9391$1.239
m4.16xlarge64256 GiB–$3.20$2,336$1.403$1.982

M4 equivalents on other clouds

closest match to m4.2xlarge (8 vCPU, 32 GiB)

AzureD8as v5Dasv5 family · 8 vCPU · 32 GiB$0.344/hr · East USDasv5 family →
Google Cloude2-standard-8E2 family · 8 vCPU · 32 GiB$0.268/hr · IowaE2 family →
AkamaiG8 Dedicated 32x8Dedicated CPU (G8) family · 8 vCPU · 32 GiB$0.42/hr · Newark, NJDedicated CPU (G8) family →
Vultrvbm-4c-32gbBare Metal family · 8 vCPU · 32 GiB$0.164/hr · New JerseyBare Metal family →

Other general purpose families on AWS

M4 FAQ

What sizes does the AWS M4 family have?

M4 has 6 instance types, from m4.large (2 vCPU, 8 GiB) to m4.16xlarge (64 vCPU, 256 GiB). They run on Intel Xeon E5-2676 v3 (Haswell).

What is the cheapest M4 instance type?

m4.large at $0.10 per hour (Linux, on demand) in US East (N. Virginia), about $73.00 per month.

What is M4 best for?

M4 is a general purpose family. Balanced CPU and memory (about 4 GiB per vCPU) for web apps, services and most workloads.