g2vsg5

Size for size, g2 is on average 29% cheaper than g5 on demand in US East (N. Virginia), across 2 shared sizes. Same size, one generation apart.

At a glanceg2g5
Sizes here28
From$0.65/hr$1.006/hr
vCPUs8 to 324 to 192
Memory15 to 60 GiB16 to 768 GiB
Architecturex86_64x86_64
CategoryGPUGPU

On-demand prices by size in US East (N. Virginia)

USD per hour for Linux. Pick a size to compare the two types.

Sizeg2g5g5 vs g2
2xlargeg2.2xlarge $0.65g5.2xlarge $1.212▲ 86%
8xlargeg2.8xlarge $2.60g5.8xlarge $2.448▼ 6%

Key differences

The biggest lead each family has.

Where g2 leads

No clear lead on the measures we compare.

Where g5 leads
Spot priceLower in 2 of 2 shared sizes
Cheaper spot
Sizes8 sizes here vs 2
6 more
Largest size192 vCPUs vs 32
Bigger

Keep exploring

Each family's own page, and how it compares with others.

g22 sizes
Every size in the g2 family

Compare g2 with

g58 sizes
Every size in the g5 family

Compare g5 with

Pay the committed rate, with commitment protection

A 1-year reservation on these families is 37–37% below on-demand here. Connect your cloud accounts to unlock greater savings with commitment protection.

Connect AWS account