Custom Machine Types

Create Compute Engine VMs with optimal amounts of vCPU and memory.

View documentation for this product

Tailor your Compute Engine instances

Tailor your Compute Engine instances

Custom Machine Types is a feature of Compute Engine that lets you easily create a machine type customized to your needs. With Custom Machine Types, you can create virtual machines with the optimal amount of CPU and memory for your workloads. Create a machine type with as little as 1 vCPU and up to 64 vCPUs, or any even number of vCPUs in between. You can configure up to 6.5 GB of memory per vCPU.

Tailored, configurable infrastructure

By offering Custom Machine Types and predefined machine types, Compute Engine allows you to tailor your infrastructure to your workload. And you aren’t locked in to your choice. Compute Engine’s stop/start feature allows you move your workload to a smaller or larger Custom Machine Type instance, or to a predefined configuration.

Find your optimal pricing

Custom Machine Types are priced by the resources they use (i.e. vCPU, memory). You can predictably calculate the cost of Custom Machine Type shapes in any configuration. Optimize your Compute Engine pricing by adding or subtracting resources above or below the next predefined machine type. For some use cases, you could save 50% or more compared to predefined types at other public cloud providers by configuring an optimal machine for your workload on Google Cloud Platform.

Enable it instantly

Create VMs with Custom Machine Types using the Compute Engine UI, a simple gcloud command line invocation, or the API.

gcloud compute instances create my-vm --custom-cpu 4 --custom-memory 5 


Programmatic access

Supported by the gcloud command line tool and through our API. It’s as easy as --custom-cpu {VCPUS} --custom-memory {MEMORY}.

Console configuration

In the Create instance page, use the Customize option and build a virtual machine to fit your needs.

OS support

CentOS, CoreOS, Debian, OpenSUSE, Red Hat, SLES, Ubuntu, and Windows. Or bring your own Linux variant.

Familiar capabilities

As a feature of Compute Engine, Custom Machine Types offer all the same capabilities as predefined machine types. If you already use Compute Engine, you will find Custom Machine Types very familiar.

Predictable pricing

Custom Machine Types are priced based on hourly usage per vCPUs and per GB of memory. A 8 vCPU 20 GB memory VM costs twice as much as a 4 vCPU 10 GB memory VM.

Automatic discounts

With sustained use discounts, we automatically give you discounted prices for long-running workloads with no sign-up fees or up-front commitment.

Commitment savings

With committed use discounts you can save up to 57% with no up-front costs or instance-type lock in.

Preemptible and custom

For batch jobs and other fault-tolerant workloads, you can customize and save more by making your custom machines Preemptible VMs.

The true value of cloud is realized when customers can scale their workloads horizontally and vertically. Custom machine types put the control in the hands of customers by letting them choose what they need.

Janakiram MSV, Contributor, Forbes Magazine

Technical resources


Custom Machine Types are billed per vCPUs memory provisioned to each instance. The US rates for Custom Machine Types are as follows:

Item US Region Hourly Price (billed per second) With sustained use discount at 100% usage When configured as a preemptible VM
vCPU $0.033174 / vCPU $0.023228 / vCPU $0.00698 / vCPU
Memory $0.004446 / GB $0.003112 / GB $0.00094 / GB
Google Cloud

Get started

Learn and build

New customers get $300 in free credits to learn and build on Google Cloud for up to 12 months.

Need more help?

Our experts will help you build the right solution or find the right partner for your needs.