g5.xlarge

g5.xlarge is an AWS EC2 instance with 4 vCPUs, 16 GiB memory, 1 GPU (AMD EPYC 7R32). In US East (N. Virginia) it costs $1.006 per hour on demand ($734.38 per month) for Linux; a 1-year reserved instance with no upfront costs $0.6338 per hour, 37% less. Spot capacity is about $0.499 per hour. It is sold in 19 regions.

Prices by region

USD per hour, Linux. Reserved prices are no upfront, standard. Cheapest on-demand first.

RegionOn-demandSpot1-yr reserved3-yr reserved1-yr savings plan3-yr savings plan
US East (N. Virginia) us-east-1$1.006$0.499$0.6338$0.4346$0.7922$0.5432
US East (Ohio) us-east-2$1.006$0.5495$0.6338$0.4346$0.7922$0.5432
US West (Oregon) us-west-2$1.006$0.5733$0.6338$0.4346$0.7922$0.5432
Europe (Spain) eu-south-2$1.06$1.06––$0.8348$0.5724
EU (Stockholm) eu-north-1$1.067$0.4653$0.6722$0.4609$0.8403$0.5762
Canada (Central) ca-central-1$1.117$0.4185$0.7037$0.4825$0.8796$0.6032
EU (Ireland) eu-west-1$1.123$0.6096$0.7075$0.4851$0.8844$0.6064
Israel (Tel Aviv) il-central-1$1.179$0.4204$0.7429$0.5094$0.9286$0.6367
Asia Pacific (Mumbai) ap-south-1$1.208$0.5591$0.761$0.5219$0.9513$0.6523
Middle East (UAE) me-central-1$1.234$0.319$0.7774$0.5331$0.9718$0.6664
Asia Pacific (Seoul) ap-northeast-2$1.237$0.577$0.7793$0.5344$0.9741$0.668
EU (Frankfurt) eu-central-1$1.258$0.5578$0.7925$0.5435$0.9907$0.6793
EU (London) eu-west-2$1.277$0.4429$0.8045$0.5517$1.006$0.6896
EU (Paris) eu-west-3$1.277$0.4255––$1.006$0.7755
Asia Pacific (Sydney) ap-southeast-2$1.308$0.5918$0.824$0.5651$1.03$0.7063
Asia Pacific (Jakarta) ap-southeast-3$1.408$0.1408$0.887$0.6083$1.109$0.7603
Asia Pacific (Tokyo) ap-northeast-1$1.459$0.7062$0.9192$0.6303$1.149$0.7879
Asia Pacific (Hong Kong) ap-east-1$1.549–$0.9757$0.6691$1.22$0.8364
South America (Sao Paulo) sa-east-1$1.71$0.3376$1.077$0.7387$1.347$0.9234

Prices by operating system in US East (N. Virginia)

Operating systemOn-demand /hr1-yr reserved /hr3-yr reserved /hr
Linux$1.006$0.6338$0.4346
Ubuntu Pro$1.013––
SUSE$1.062$0.6838$0.4796
RHEL$1.064$0.6914$0.4922
RHEL HA$1.134$0.7614$0.5622
Windows$1.19$0.8178$0.6186

Specs

ComputeValue
vCPUs4
Physical cores2
Threads per core2
Architecturex86_64
ProcessorAMD EPYC 7R32
CPU makerAMD
Clock speed2.8 GHz
Sustained clock3.3 GHz
Processor featuresAMD Turbo; AVX; AVX2
BurstableNo
MemoryValue
Memory (GiB)16
AcceleratorsValue
GPUs1
GPU1 × NVIDIA A10G
GPU memory24 GB
NetworkingValue
NetworkUp to 10 Gbps
Network baseline2.5 Gbps
Network peak10 Gbps
Enhanced networkingYes (ENA)
EFANo
IPv6Yes
Max network interfaces4
IPv4 addresses per interface15
StorageValue
Storage1 x 250 GB NVMe SSD
Local disks1 × 250 GB SSD
EBS optimizedYes
EBS over NVMeRequired
EBS throughputUp to 3500 Mbps
EBS baseline bandwidth700 Mbps
EBS max bandwidth3,500 Mbps
EBS baseline throughput87.5 MB/s
EBS max throughput437.5 MB/s
EBS baseline IOPS3,000
EBS max IOPS15,000
Max EBS volumes25
Instance detailsValue
Instance typeg5.xlarge
Familyg5
CategoryGPU instance
Current generationYes
Normalization factor1
Bare metalNo
HypervisorNitro
Placement groupsCluster, Partition, Spread
HibernationNo
Nitro EnclavesYes
Boot modesLegacy BIOS, UEFI

Compare g5.xlarge

Other processors

Other generations

Other g5 sizes

SizevCPUsMemory (GiB)On-demand /hr
g5.xlarge416$1.006
g5.2xlarge832$1.212
g5.4xlarge1664$1.624
g5.8xlarge32128$2.448
g5.12xlarge48192$5.672
g5.16xlarge64256$4.096
g5.24xlarge96384$8.144
g5.48xlarge192768$16.288

Prices updated 2026-11-12 from AWS public price lists. Compare all AWS EC2 instances.