EC2 Instance Type Guide

Decode AWS EC2 instance names. Learn what each letter, number, and size means so you can pick the right instance for your workload.

How Instance Names Work

m6g.2xlarge
m

Instance Family

Defines the hardware category (general purpose, compute, memory, etc.)

6

Generation

Higher = newer hardware, better price/performance. Always prefer latest gen.

g

Processor Suffix

Optional. Indicates processor type or special capability (AMD, Graviton, NVMe, etc.)

2xl

Size

Determines vCPU and memory. Each step up roughly doubles both.

Instance Families

m

General Purpose

Balanced compute, memory, and networking. Best for web servers, app servers, small databases.

c

Compute Optimized

High CPU performance. Best for batch processing, gaming servers, scientific modeling, HPC.

r

Memory Optimized

High memory-to-CPU ratio. Best for large databases, in-memory caching, real-time analytics.

x

Memory Optimized (Extreme)

Extreme memory capacity. Best for SAP HANA, large in-memory databases.

t

Burstable General Purpose

Baseline CPU with burst capability using CPU credits. Best for dev/test, low-traffic apps.

i

Storage Optimized

High-speed NVMe SSD instance storage. Best for NoSQL databases, data warehousing.

d

Dense Storage

High-density HDD storage. Best for distributed file systems, Hadoop, data lakes.

p

GPU — ML Training

NVIDIA GPUs for ML training and HPC. Best for deep learning, computational finance.

g

GPU — Graphics & Inference

NVIDIA GPUs for graphics and ML inference. Best for video encoding, game streaming.

inf

AWS Inferentia

Custom AWS Inferentia chips for ML inference at scale. Best for NLP, computer vision.

trn

AWS Trainium

Custom AWS Trainium chips for ML training. Best for large language models.

f

FPGA

Field Programmable Gate Arrays for hardware acceleration. Best for genomics, financial analytics.

vt

Video Transcoding

Xilinx FPGAs for real-time video transcoding.

Processor & Capability Suffixes

These letters appear after the generation number and indicate the processor type or a special hardware capability.

SuffixMeaning
aAMD EPYC processor — typically 10% cheaper than Intel equivalent
gAWS Graviton (ARM) processor — best price/performance ratio, up to 40% cheaper
nHigher network bandwidth — up to 100 Gbps
dLocal NVMe SSD instance storage included
eExtra memory or storage capacity
zHigh sustained all-core turbo frequency (up to 4.5 GHz)
bBlock storage optimized — higher EBS bandwidth
iIntel processor (explicitly marked in newer generations)

Size Tiers

Sizes below are for the m5 family as reference. Other families follow the same doubling pattern but with different base ratios.

SizevCPUMemory
nano10.5 GiB
micro11 GiB
small12 GiB
medium14 GiB
large28 GiB
xlarge416 GiB
2xlarge832 GiB
4xlarge1664 GiB
8xlarge32128 GiB
12xlarge48192 GiB
16xlarge64256 GiB
24xlarge96384 GiB
48xlarge192768 GiB
metalvariesvaries

Quick Tips

💡

Always use latest generation

Newer generations offer better performance at the same or lower price. Prefer m7 over m5.

💰

Try Graviton (g suffix)

ARM-based Graviton instances are up to 40% cheaper with comparable or better performance for most workloads.

T-series for variable workloads

If your app has low average CPU but occasional spikes, t3/t4g instances with burst credits are very cost-effective.

🎯

Match family to workload

Don't over-provision. A memory-heavy DB needs r-series, not m-series with extra RAM.

Ready to compare prices?

Search any instance type and instantly see on-demand, reserved instances, savings plans, and spot prices side by side — across every AWS region.

Open Calculator