g5 family

The g5 family has 8 sizes on AWS EC2, from 4 to 192 vCPUs and 16 to 768 GiB of memory. In US East (N. Virginia), on-demand prices run $1.006 to $16.288 per hour for Linux. It is sold in 19 regions and listed as GPU.

Sizes and prices in US East (N. Virginia)

TypevCPUsMemory (GiB)GPUsOn-demand /hrSpot /hr1-yr reserved /hr
g5.xlarge4161$1.006$0.499$0.6338
g5.2xlarge8321$1.212$0.8303$0.7636
g5.4xlarge16641$1.624$0.7309$1.023
g5.8xlarge321281$2.448$0.8379$1.542
g5.12xlarge481924$5.672$2.087$3.573
g5.16xlarge642561$4.096$1.139$2.58
g5.24xlarge963844$8.144$2.808$5.131
g5.48xlarge1927688$16.288$8.461$10.261

Compare g5

Same generation

Categories

Regions

Prices in USD per hour for Linux; reserved prices are 1 year, no upfront. Updated 2026-11-12 from AWS public price lists. Compare all AWS EC2 instance types.