g2vsg4

Size for size, g2 is on average 29% cheaper than g4 on demand in Iowa, across 4 shared sizes. Same size, one generation apart.

At a glanceg2g4
Sizes here87
From$0.7068/hr$1.518/hr
vCPUs4 to 966 to 384
Memory16 to 384 GiB22 to 1440 GiB
Architecturex86_64x86_64
CategoryAccelerator optimized, GPUAccelerator optimized, GPU

On-demand prices by size in Iowa

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

Key differences

The biggest lead each family has.

Where g2 leads
On-demand priceCheaper in 4 of 4 shared sizes
29% cheaper
Sizes8 sizes here vs 7
1 more
Where g4 leads
Spot priceLower in 3 of 4 shared sizes
Cheaper spot
Largest size384 vCPUs vs 96
Bigger

Keep exploring

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

Pay the committed rate, with commitment protection

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

Connect Google Cloud account