VM instances pricing

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.

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:

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.

  1. 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.

  2. 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 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.

N1 machine types

Iowa (us-central1) Los Angeles (us-west2) Oregon (us-west1) Northern Virginia (us-east4) South Carolina (us-east1) Montréal (northamerica-northeast1) São Paulo (southamerica-east1) Belgium (europe-west1) Finland (europe-north1) Frankfurt (europe-west3) London (europe-west2) Netherlands (europe-west4) Zürich (europe-west6) Mumbai (asia-south1) Singapore (asia-southeast1) Sydney (australia-southeast1) Hong Kong (asia-east2) Taiwan (asia-east1) Tokyo (asia-northeast1) Osaka (asia-northeast2)
Monthly
Hourly
Item On-demand price Preemptible price 1 year commitment price 3 year commitment price
Predefined vCPUs
Predefined Memory
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.

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.

Iowa (us-central1) Los Angeles (us-west2) Oregon (us-west1) Northern Virginia (us-east4) South Carolina (us-east1) Montréal (northamerica-northeast1) São Paulo (southamerica-east1) Belgium (europe-west1) Finland (europe-north1) Frankfurt (europe-west3) London (europe-west2) Netherlands (europe-west4) Zürich (europe-west6) Mumbai (asia-south1) Singapore (asia-southeast1) Sydney (australia-southeast1) Hong Kong (asia-east2) Taiwan (asia-east1) Tokyo (asia-northeast1) Osaka (asia-northeast2)
Monthly
Hourly
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
n1-standard-64
n1-standard-96
Skylake Platform only
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%. Read more about Custom Machine Types.

If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.

N1 high-memory machine types

The following tables show the calculated cost for the N1 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 6.5 GB of memory per vCPU. High-memory instances are ideal for tasks that require more memory relative to virtual CPUs.

Iowa (us-central1) Los Angeles (us-west2) Oregon (us-west1) Northern Virginia (us-east4) South Carolina (us-east1) Montréal (northamerica-northeast1) São Paulo (southamerica-east1) Belgium (europe-west1) Finland (europe-north1) Frankfurt (europe-west3) London (europe-west2) Netherlands (europe-west4) Zürich (europe-west6) Mumbai (asia-south1) Singapore (asia-southeast1) Sydney (australia-southeast1) Hong Kong (asia-east2) Taiwan (asia-east1) Tokyo (asia-northeast1) Osaka (asia-northeast2)
Monthly
Hourly
Machine type Virtual CPUs Memory Price (USD) Preemptible price (USD)
n1-highmem-2 2 13GB
n1-highmem-4 4 26GB
n1-highmem-8 8 52GB
n1-highmem-16 16 104GB
n1-highmem-32 32 208GB
n1-highmem-64 64 416GB
n1-highmem-96
Skylake Platform only
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%. Read more about Custom Machine Types.

If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.

N1 high-CPU machine types

The following tables show the calculated cost for N1 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 0.90 GB of memory. High-CPU machine types are ideal for tasks that require moderate memory configurations for the needed vCPU count.

Iowa (us-central1) Los Angeles (us-west2) Oregon (us-west1) Northern Virginia (us-east4) South Carolina (us-east1) Montréal (northamerica-northeast1) São Paulo (southamerica-east1) Belgium (europe-west1) Finland (europe-north1) Frankfurt (europe-west3) London (europe-west2) Netherlands (europe-west4) Zürich (europe-west6) Mumbai (asia-south1) Singapore (asia-southeast1) Sydney (australia-southeast1) Hong Kong (asia-east2) Taiwan (asia-east1) Tokyo (asia-northeast1) Osaka (asia-northeast2)
Monthly
Hourly
Machine type Virtual CPUs Memory Price (USD) Preemptible price (USD)
n1-highcpu-2 2 1.80GB
n1-highcpu-4 4 3.60GB
n1-highcpu-8 8 7.20GB
n1-highcpu-16 16 14.40GB
n1-highcpu-32 32 28.80GB
n1-highcpu-64 64 57.6GB
n1-highcpu-96
Skylake Platform only
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%. Read more about Custom Machine Types.

If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.

N1 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.

For example, instead of using an n1-standard-8 machine type when you need a machine type with 6 vCPUs, you can create an instance with a custom machine type that has 6 vCPUs and 22.5 GB of memory. Creating a custom machine type can save you up to 40% compared to selecting a larger machine type. Custom machine types are billed according to the number of vCPUs and the amount of memory used.

Read the Creating Instances with Custom Machine Types 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.

Iowa (us-central1) Los Angeles (us-west2) Oregon (us-west1) Northern Virginia (us-east4) South Carolina (us-east1) Montréal (northamerica-northeast1) São Paulo (southamerica-east1) Belgium (europe-west1) Finland (europe-north1) Frankfurt (europe-west3) London (europe-west2) Netherlands (europe-west4) Zürich (europe-west6) Mumbai (asia-south1) Singapore (asia-southeast1) Sydney (australia-southeast1) Hong Kong (asia-east2) Taiwan (asia-east1) Tokyo (asia-northeast1) Osaka (asia-northeast2)
Monthly
Hourly
Item On-demand price Preemptible price 1 year commitment price 3 year commitment price
Custom vCPUs
Custom Memory
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.

N1 extended custom memory

For custom machine types, any memory up to and including 6.5 GB of memory per vCPU is charged at the standard custom vCPU and memory pricing rate. Any memory above the 6.5 GB per vCPU is charged according to the extended memory prices that are described in detail below. See the Extended Memory page to learn how to create instances with custom machine types and extended memory.

Iowa (us-central1) Los Angeles (us-west2) Oregon (us-west1) Northern Virginia (us-east4) South Carolina (us-east1) Montréal (northamerica-northeast1) São Paulo (southamerica-east1) Belgium (europe-west1) Finland (europe-north1) Frankfurt (europe-west3) London (europe-west2) Netherlands (europe-west4) Zürich (europe-west6) Mumbai (asia-south1) Singapore (asia-southeast1) Sydney (australia-southeast1) Hong Kong (asia-east2) Taiwan (asia-east1) Tokyo (asia-northeast1) Osaka (asia-northeast2)
Monthly
Hourly
Item Price (USD) Preemptible price (USD)
Extended custom memory
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.

N2 machine types

Iowa (us-central1) Los Angeles (us-west2) Oregon (us-west1) Northern Virginia (us-east4) South Carolina (us-east1) Montréal (northamerica-northeast1) São Paulo (southamerica-east1) Belgium (europe-west1) Finland (europe-north1) Frankfurt (europe-west3) London (europe-west2) Netherlands (europe-west4) Zürich (europe-west6) Mumbai (asia-south1) Singapore (asia-southeast1) Sydney (australia-southeast1) Hong Kong (asia-east2) Taiwan (asia-east1) Tokyo (asia-northeast1) Osaka (asia-northeast2)
Monthly
Hourly
Item On-demand price Preemptible price 1 year commitment price 3 year commitment price
Predefined vCPUs
Predefined Memory
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.

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.

Iowa (us-central1) Los Angeles (us-west2) Oregon (us-west1) Northern Virginia (us-east4) South Carolina (us-east1) Montréal (northamerica-northeast1) São Paulo (southamerica-east1) Belgium (europe-west1) Finland (europe-north1) Frankfurt (europe-west3) London (europe-west2) Netherlands (europe-west4) Zürich (europe-west6) Mumbai (asia-south1) Singapore (asia-southeast1) Sydney (australia-southeast1) Hong Kong (asia-east2) Taiwan (asia-east1) Tokyo (asia-northeast1) Osaka (asia-northeast2)
Monthly
Hourly
Machine type Virtual CPUs Memory Price (USD) Preemptible price (USD)
n2-standard-2
n2-standard-4