Cloud SQL Pricing

Pricing for Cloud SQL depends on your instance type:

MySQL Second Generation pricing

Second Generation pricing is composed of the following charges:

Instance Pricing

Instance pricing for Second Generation is charged for every minute that the instance is running (the activation policy is set to ALWAYS). The charge depends on the machine type you choose for the instance, and the region where the instance is located. Select your region from the dropdown on the pricing table.

Read replicas and failover replicas are charged at the same rate as stand-alone instances.

Iowa Oregon Northern Virginia South Carolina Montréal São Paulo Belgium London Netherlands Frankfurt Singapore Sydney Mumbai Taiwan Tokyo
Monthly
Hourly
Machine Type Virtual CPUs RAM (GB) Maximum Storage Capacity Maximum Connections Price (USD) Sustained Use Price (USD)
db-f1-micro* Shared 0.6 3,062 GB 250
db-g1-small* Shared 1.7 3,062 GB 1,000
db-n1-standard-1 1 3.75 10,230 GB 4,000
db-n1-standard-2 2 7.5 10,230 GB 4,000
db-n1-standard-4 4 15 10,230 GB 4,000
db-n1-standard-8 8 30 10,230 GB 4,000
db-n1-standard-16 16 60 10,230 GB 4,000
db-n1-standard-32 32 120 10,230 GB 4,000
db-n1-standard-64 64 240 10,230 GB 4,000
db-n1-highmem-2 2 13 10,230 GB 4,000
db-n1-highmem-4 4 26 10,230 GB 4,000
db-n1-highmem-8 8 52 10,230 GB 4,000
db-n1-highmem-16 16 104 10,230 GB 4,000
db-n1-highmem-32 32 208 10,230 GB 4,000
db-n1-highmem-64 64 416 10,230 GB 4,000
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.

*Shared CPU machine types (db-f1-micro and db-g1-small) are not covered by the Cloud SQL SLA.

Storage and Networking Pricing

Storage and networking prices for Second Generation instances depend on the region where the instance is located. Select your region from the dropdown on the pricing table.

Iowa Oregon Northern Virginia South Carolina Montréal São Paulo Belgium London Netherlands Frankfurt Singapore Sydney Mumbai Taiwan Tokyo
  Price
Storage
Network Ingress to Cloud SQL: Free
Note: Egress charges may apply on the source. For example, egress from Compute Engine is charged at the external IP addresses rate.

Egress from Cloud SQL: See Network Egress Pricing

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

Network Egress Pricing

When network traffic leaves a Cloud SQL instance, the charge applied depends on the destination of the traffic, and in some cases, whether a partner is involved.

Internet egress is network traffic leaving a Cloud SQL instance to a client that is not a Google product, such as using a local server to read data from Cloud SQL.

Destination Price
Compute Engine instances Within the same region: free
Between regions within North America: $0.12/GB
Between regions outside of North America: $0.12/GB
Google Products (except Compute Engine) Intra-continental: free
Inter-continental: $0.12/GB
Internet egress using Google Cloud Interconnect $0.05/GB
Internet egress (not using Google Cloud Interconnect) $0.19/GB

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

MySQL Second Generation pricing examples

You can use the Google Cloud Platform Pricing Calculator to get pricing estimates for your Cloud SQL instances. Here are a few example calculations:

Use case Configuration details Monthly cost Pricing Calculator
Test instance
  • db-f1-micro machine type
  • Shared CPU
  • 0.6 GB memory
  • 10 GB storage
  • Running 7 days a week, 24 hours per day
  • Not highly available
  • No backups
  • us-central1 region
$9 Pricing example
Test instance, stopped when not in use
  • db-f1-micro machine type
  • Shared CPU
  • 0.6 GB memory
  • 10 GB storage
  • Running 5 days a week, 4 hours per day
  • Not highly available
  • No backups
  • us-central1 region
$3 Pricing example
High-performance production database
  • db-n1-highmem-32 machine type
  • 32 CPUs
  • 208 GB memory
  • 10,230 GB storage
  • Running continuously
  • 1,000 GB backups
  • Highly available
  • us-central1 region
$7,670 Pricing example

PostgreSQL pricing

Cloud SQL for PostgreSQL pricing is composed of the following charges:

Instance pricing

Instance pricing for Cloud SQL for PostgreSQL applies only to shared-core instances. Dedicated-core instances, which can have up to 64 vCPUs and 416 GiB of memory, are charged by the number of cores and amount of memory they have. Read replicas are charged at the same rate as stand-alone instances.

Instance pricing depends on the region where the instance is located. Select your region from the dropdown on the pricing table.

HA prices are applied for instances configured for high availability, also called regional instances. Learn more.

Iowa Oregon Northern Virginia South Carolina Montréal São Paulo Belgium London Netherlands Frankfurt Singapore Sydney Mumbai Taiwan Tokyo
Monthly
Hourly
Shared-Core Machine Type Virtual CPUs RAM (GB) Maximum Storage Capacity Price (USD) Sustained Use Price (USD)
db-f1-micro* Shared 0.6 3,062 GB
db-g1-small* Shared 1.7 3,062 GB
HA db-f1-micro* Shared 0.6 3,062 GB
HA db-g1-small* Shared 1.7 3,062 GB
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.

*Shared CPU machine types (db-f1-micro and db-g1-small) are not covered by the Cloud SQL SLA.

CPU and memory pricing

For dedicated-core instances, you choose the number of CPUs and the amount of memory you want, up to 64 CPUs and 416 GiB of memory. Pricing for CPUs and memory depends on the region where your instance is located. Select your region in the dropdown on the pricing table.

HA prices are applied for instances configured for high availability, also called regional instances. Learn more.

Iowa Oregon Northern Virginia South Carolina Montréal São Paulo Belgium London Netherlands Frankfurt Singapore Sydney Mumbai Taiwan Tokyo
Monthly
Hourly
  Price (USD) Sustained Use Price (USD)
vCPUs
Memory
HA vCPUs
HA Memory
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.

Storage and networking pricing

PostgreSQL storage and networking prices depend on the region where the instance is located. Select your region in the dropdown on the pricing table.

HA prices are applied for instances configured for high availability, also called regional instances. Learn more.

Iowa Oregon Northern Virginia South Carolina Montréal São Paulo Belgium London Netherlands Frankfurt Singapore Sydney Mumbai Taiwan Tokyo
  Price
Storage
HA Storage
Network Ingress to Cloud SQL: Free
Note: Egress charges may apply on the source. For example, egress from Compute Engine is charged at the external IP addresses rate.

Egress from Cloud SQL: See Network Egress Pricing

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

Network Egress Pricing

When network traffic leaves a Cloud SQL instance, the charge applied depends on the destination of the traffic, and in some cases, whether a partner is involved.

Internet egress is network traffic leaving a Cloud SQL instance to a client that is not a Google product, such as using a local server to read data from Cloud SQL.

Destination Price
Compute Engine instances Within the same region: free
Between regions within North America: $0.12/GB
Between regions outside of North America: $0.12/GB
Google Products (except Compute Engine) Intra-continental: free
Inter-continental: $0.12/GB
Internet egress using Google Cloud Interconnect $0.05/GB
Internet egress (not using Google Cloud Interconnect) $0.19/GB

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

PostgreSQL instance pricing examples

You can use the Google Cloud Platform Pricing Calculator to get pricing estimates for your Cloud SQL instances. Here are a few example calculations:

Use case Configuration details Monthly cost Pricing Calculator
Test instance
  • db-f1-micro machine type
  • Shared CPU
  • 0.6 GB memory
  • 10 GB storage
  • Running 7 days a week, 24 hours per day
  • Not highly available
  • No backups
  • us-central1 region
$9 Pricing example
Test instance, stopped when not in use
  • db-f1-micro machine type
  • Shared CPU
  • 0.6 GB memory
  • 10 GB storage
  • Running 5 days a week, 4 hours per day
  • Not highly available
  • No backups
  • us-central1 region
$3 Pricing example
High-performance production database
  • 32 CPUs
  • 208 GB memory
  • 10,230 GB storage
  • Running continuously
  • 1,000 GB backups
  • Highly available
  • us-central1 region
$7,613 Pricing example

MySQL First Generation pricing

For First Generation instances, Google offers two billing plans: Packages and Per Use. Which plan you should select depends on how your database will be used, but generally it is more economical to use the Package plan if your instance is used for more than 450 hours each month. If your instance is used sporadically, you can reduce costs by using the Per-use plan and setting your activation policy to ON DEMAND. Learn more.

More details about both plans are given below. You can also get a pricing estimate with the GCP Pricing Calculator.

If you have more questions, check the pricing FAQs, or ask the question on google-cloud-sql-discuss.

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

Packages Billing Plan

The following packages are available:

Tier RAM Included Storage Max Storage more info Charge per Day Maximum Concurrent Connections
D0 0.125GB 0.5GB 500GB $0.36 250
D1 0.5GB 1GB 500GB $1.46 250
D2 1GB 2GB 500GB $2.93 250
D4 2GB 5GB 500GB $4.40 500
D8 4GB 10GB 500GB $8.78 1000
D16 8GB 10GB 500GB $17.57 2000
D32 16GB 10GB 500GB $35.13 4000

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

You can change an instance's tier at any time, with just a few seconds of downtime.

At the end of a billing period, you are charged based on the number of days during which the database exists (measured at US Pacific Time). Storage for backups created using the scheduled backup service is not part of the package limits and is not charged. Use of storage over the included quota is charged at the Per-Use rate ($0.24 per GB per month).

Storage Size

Storage is measured as the filespace used by the MySQL database. The size of all instances is limited to 250GB by default. Note that you only pay for the storage that you use, so you don’t need to reserve this storage in advance. If you require more storage, up to 500GB, contact cloud-sql@google.com.

A newly created database uses about 270MB of space for system tables and InnoDB logs. If you create a per-use instance but do not use it, you are still charged for the storage cost.

Per-Use Billing Plan

The following resources are available, charged per minute of use:

Resource Charge
D0 Database Instance (0.125GB RAM) $0.025 per hour
D1 Database Instance (0.5GB RAM) $0.10 per hour
D2 Database Instance (1GB RAM) $0.19 per hour
D4 Database Instance (2GB RAM) $0.29 per hour
D8 Database Instance (4GB RAM) $0.58 per hour
D16 Database Instance (8GB RAM) $1.16 per hour
D32 Database Instance (16GB RAM) $2.31 per hour
1GB Storage $0.24 per month
I/O Free

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

  • The maximum concurrent connections allowed for each tier is the same as for the Packages Billing Plan.
  • Use of instances is charged per minute for periods of continuous use. (see the FAQ for more details).
  • Storage is charged by the GB, and measured every minute so your charges closely follow your usage. Storage charges are incurred whether the instance is on or off.
    • Storage for backups created using the scheduled backup service is not charged.
    • A newly created database uses a small amount of space (270MB) for system tables and InnoDB logs. This is included in the charged storage.
    • The default and maximum storage for an instance are the same as the Packages Billing Plan (see Storage Size).
  • You can change an instance's tier at any time, with just a few seconds of downtime.

Network Use

Resource Charge
Internet Egress $0.12 per GB
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.

Network use is charged for both packages and per-use billing plans. Only internet egress is charged, such as traffic to an admin or reporting tool or application hosted outside of the GCP. Network usage between App Engine applications, Compute Engine, or Cloud Storage and Cloud SQL are not charged.

Read replicas

Cloud SQL supports read replicas where the replica instances are other Cloud SQL instances or external MySQL instances.

  • The only extra charge for replicating a Cloud SQL instance to another Cloud SQL instance is the cost of the replica instance.
  • The only extra charge for replicating a Cloud SQL instance to external replicas is for the internet egress cost.

For more information about read replicas, see Requirements and Tips for Configuring Replication.

Instance IPv4 addresses

Resource Charge
Instance IPv4 Address $0.01 per hour idle
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.

The use of an external IPv4 address for instances on the per-use billing plan is charged at $0.01 per hour for the time that the connection is idle. For example, if your per-use instance is idle, on average, 50% of the time, then an external IP address for the instance would cost $43.83 for one year.

Each Cloud SQL instance has an IPv6 address that you can also use to connect to the instance. The IPv6 address is independent of whether you assign and use an IPv4 address. Use of the instance IPv6 address is not charged. For more information, see Configuring access for IP connections.

What's next?

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud SQL Documentation