This page describes the cost of running a Compute Engine VM instance with any of the following machine types, as well as other VM instance-related pricing. To see the pricing for other Google Cloud Platform products, see the GCP pricing list.
Google Compute Engine charges for usage based on the following price sheet. A bill is sent out at the end of each billing cycle, listing previous usage and charges. Prices on this page are listed in US dollars (USD).
For Compute Engine, disk size, machine type memory, and network usage are calculated in gigabytes (GB), where 1 GB is 230 bytes. This unit of measurement is also known as a gibibyte (GiB).
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
You can also find pricing information with the following options:
- See the estimated costs of your instances and Compute Engine resources when you create them in the Google Cloud Platform Console.
- Estimate your total project costs with the Google Cloud Pricing Calculator.
Billing model
The following billing model applies to all vCPUs, GPUs, and memory resources. The billing model also applies to several premium images that you run on Compute Engine instances.
All vCPUs, GPUs, and GB of memory are charged a minimum of 1 minute. For example, if you run your virtual machine for 30 seconds, you will be billed for 1 minute of usage.
After 1 minute, instances are charged in 1 second increments.
Instance uptime
Instance uptime is measured as the number of seconds between when you start an
instance and when you stop an instance, the latter being when the instance
state is TERMINATED. In some cases, your instance can suffer from
a failure and be marked as TERMINATED by the system; in these
cases, you will not be charged for usage after the instance reaches the
TERMINATED state. If an instance is idle, but still has a state
of RUNNING, it will be charged for instance uptime. The easiest
way to determine the status of an instance is to use
gcloud compute with the
gcloud compute instances list command or to visit the Google Cloud Platform Console.
In the case of reservations, instance uptime is measured as the number of seconds between when you create a reservation and when you delete that reservation. Reserved resources are billed at standard rates, whether they are started or not.
Note that Google Compute Engine bills for a minimum of 1 minute of usage, so if you use an instance for 30 seconds of uptime, you are billed for 1 minute. After 1 minute, your instance is billed on a per-second basis. For more information, see the billing model.
Resource-based pricing
Each vCPU and each GB of memory on Compute Engine is billed separately rather than as part of a single machine type. You still create instances using predefined machine types, but your bill reports them as individual vCPUs and memory used per hour.
Resource-based pricing allows Compute Engine to apply sustained use discounts to all of your predefined machine type usage in a region collectively rather than to individual machine types.
vCPU and memory usage for each machine type can receive one of the following discounts:
Discount types cannot be combined. Preemptible VM instances cannot receive sustained use discounts or committed use discounts.
The following sections describe prices for machine types based on vCPU and memory resources, but also include the calculated cost for each machine type. You can also use the Google Cloud Pricing Calculator to better understand prices for different configurations.
General-purpose machine type family
General-purpose machine-types offer predefined and custom machine types in each region. Predefined machine types have a preset number of vCPUs and amount of memory, but are billed using the resource-based pricing model. Custom machine types are billed according to the resource-based pricing.
Compute Engine provides automatic sustained use discounts for all of the predefined vCPU and memory resources that you use in a region. Sustained use discounts for predefined machine types are calculated separately from custom, memory-optimized, compute-optimized, and shared-core machine types. Depending on the machine type, sustained use discounts differ between N1 and N2 machine types:
- N1 machine types can receive a sustained use discount up to 30%.
- N2 machine types can receive a sustained use discount up to 20%.
For more information, see Sustained use discounts.
Not all machine types are guaranteed to be available in all zones all the time. To ensure that a machine type is available when you need it, you can preemptively reserve the machine type in a certain zone. For information about reserving predefined machine types in a specific zone, see Reserving zonal resources.
N2 machine types
| Item | On-demand price | Preemptible price | 1 year commitment price | 3 year commitment price |
|---|---|---|---|---|
| Predefined vCPUs | ||||
| Predefined Memory |
N2 standard machine types
The following tables show the calculated costs for standard predefined machine types in the N2 generation. The vCPUs and memory from each of these machine types are billed by their individual predefined vCPU and memory prices, but these tables provide the cost that you can expect using a specific machine type.
Standard machine types have 4 GB of memory per vCPU.
| Machine type | Virtual CPUs | Memory | Price (USD) | Preemptible price (USD) | |||
|---|---|---|---|---|---|---|---|
| n2-standard-2 | |||||||
| n2-standard-4 | |||||||
| n2-standard-8 | |||||||
| n2-standard-16 | |||||||
| n2-standard-32 | |||||||
| n2-standard-48 | |||||||
| n2-standard-64 | |||||||
| n2-standard-80 | |||||||
| Custom machine type |
If your ideal machine shape is in between two predefined types, using a custom machine type could save you as much as 40%. For more information, see Custom vCPU and memory. |
||||||
N2 high-memory machine types
The following tables show the calculated cost for the N2 high-memory predefined machine types. The vCPUs and memory from each of these machine types are billed by their individual predefined vCPU and memory prices, but these tables provide the cost that you can expect using a specific machine type.
High-memory machine types have 8 GB of memory per vCPU. High-memory instances are ideal for tasks that require more memory relative to virtual CPUs.
| Machine type | Virtual CPUs | Memory | Price (USD) | Preemptible price (USD) | |||
|---|---|---|---|---|---|---|---|
| n2-highmem-2 | 2 | 16GB | |||||
| n2-highmem-4 | 4 | 32GB | |||||
| n2-highmem-8 | 8 | 64GB | |||||
| n2-highmem-16 | 16 | 128GB | |||||
| n2-highmem-32 | 32 | 256GB | |||||
| n2-highmem-48 | 48 | 384GB | |||||
| n2-highmem-64 | 64 | 512GB | |||||
| n2-highmem-80 | |||||||
| Custom machine type |
If your ideal machine shape is in between two predefined types, using a custom machine type could save you as much as 40%. For more information, see Custom vCPU and memory. |
||||||
N2 high-CPU machine types
The following tables show the calculated cost for N2 high-CPU predefined machine types. The vCPUs and memory from each of these machine types are billed by their individual predefined vCPU and memory prices, but these tables provide the cost that you can expect using a specific machine type.
High-CPU machine types have one vCPU for every 1 GB of memory. High-CPU machine types are ideal for tasks that require moderate memory configurations for the needed vCPU count.
| Machine type | Virtual CPUs | Memory | Price (USD) | Preemptible price (USD) | |||
|---|---|---|---|---|---|---|---|
| n2-highcpu-2 | 2 | 2GB | |||||
| n2-highcpu-4 | 4 | 4GB | |||||
| n2-highcpu-8 | 8 | 8GB | |||||
| n2-highcpu-16 | 16 | 16GB | |||||
| n2-highcpu-32 | 32 | 32GB | |||||
| n2-highcpu-48 | 48 | 48GB | |||||
| n2-highcpu-64 | 64 | 64GB | |||||
| n2-highcpu-80 | |||||||
| Custom machine type |
If your ideal machine shape is in between two predefined types, using a custom machine type could save you as much as 40%. For more information, Custom vCPUs and memory. |
||||||
N2 custom vCPUs and memory
Custom machine types allow you to set a specific number of vCPUs and GB of memory for your instances to match the needs of your workload. Custom machine types save you the cost of running on a larger and more expensive machine type if your application does not require all of the resources provided by that machine type.
Read Creating a VM instance with a custom machine type to learn how to use these machine types.
Sustained use discounts for custom machine types are calculated separately from predefined machine types, memory-optimized types, and shared-core machine types.
Not all machine types are guaranteed to be available in all zones all the time. To ensure that a machine type is available when you need it, you can preemptively reserve the machine type in a certain zone. For information about reserving predefined machine types in a specific zone, see Reserving zonal resources.
For an accurate estimate of your billing with custom machine types, use the Google Cloud Platform Pricing Calculator.
| Item | On-demand price | Preemptible price | 1 year commitment price | 3 year commitment price |
|---|---|---|---|---|
| Custom vCPUs | ||||
| Custom Memory |
N2 extended custom memory
For custom machine types, any memory up to and including 8 GB of memory per vCPU is charged at the standard custom vCPU and memory pricing rate. Any memory above 8 GB per vCPU is charged according to the following extended memory prices. To learn how to create instances with custom machine types and extended memory, see Adding extended memory to a machine type.
| Item | Price (USD) | Preemptible price (USD) |
|---|---|---|
| Extended custom memory |
N1 machine types
| Item | On-demand price | Preemptible price | 1 year commitment price | 3 year commitment price |
|---|---|---|---|---|
| Predefined vCPUs | ||||
| Predefined Memory |
N1 standard machine types
The following tables show the calculated cost for standard predefined machine types in the N1 generation. The vCPUs and memory from each of these machine types are billed by their individual predefined vCPU and memory prices, but these tables provide the cost that you can expect using a specific machine type.
Standard machine types have 3.75 GB of memory per vCPU.
| Machine type | Virtual CPUs | Memory | Price (USD) | Preemptible price (USD) |
|---|---|---|---|---|
| n1-standard-1 | ||||
| n1-standard-2 | ||||
| n1-standard-4 | ||||
| n1-standard-8 | ||||
| n1-standard-16 | ||||
| n1-standard-32 | <td cloud-pricer region="ctrl.region" rate="ctrl.rate" io-hourly="$1.5200" io-monthly="$776.7200" la-hourly="$1.8272" la-monthly="$933.70" ore-hourly="$1.5200" ore-monthly="$776.7200" sc-hourly="$1.5200" sc-monthly="$776.7200" lon-hourly="$1.9584" lon-monthly="$1000.74" ffurt-hourly="$1.9584" ffurt-monthly="$1000.74" nether-hourly="$1.6736" nether-monthly="$855.21" zur-hourly="$2.1268" zur-monthly="$1086.79" spaulo-hourly="$2.4136" spaulo-monthly="$1233.33" mbai-hourly="$1.8255" mbai-monthly="$932.82" mtreal-hourly="$1.6736" mtreal-monthly="$855.21" syd-hourly="$2.1574" syd-monthly="$1102.41" eu-hourly="$1.6736" eu-monthly="$855.21" tw-hourly="$1.7600" tw-monthly="$899.36" sg-hourly="$1.8752" sg-monthly="$958.23" nv-hourly="$1.7120" nv-monthly="$874.83" ja-hourly="$1.9520" ja-monthly="$997.47" osa-hourly="$1.9520" osa-monthly="$997.47" fi-hourly="$1.6736" fi-monthly="$855.21" hk-hourly="$2.1268" hk-monthly="$1 |


