Stay organized with collections Save and categorize content based on your preferences.

Cloud Spanner pricing

This document explains Cloud Spanner pricing details.

You can also use the Google Cloud Platform Pricing Calculator to estimate the cost of using Spanner.

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

When you use Spanner, you are charged for the following:

  1. The amount of compute capacity in your instance.

    Spanner keeps track of the compute capacity (measured in processing units or nodes) of an instance over time. You are charged for the number of nodes multiplied by the hourly rate.

    Because an instance's compute capacity can be smaller than 1 node (1000 processing units), this number might be a fraction. For example, an instance with compute capacity of 200 processing units that ran for 6 hours would be charged for 1.2 node hours (200 processing units × 6 hours ÷ 1000 processing units per node).

    Any compute capacity that you provision will be billed for a minimum of one hour. For example, if you temporarily scale up your instance for only 30 minutes, you will still be charged for one hour.

    After the one hour minimum, billing for compute capacity is prorated. For example, if you provision a 5 node instance at 1:00PM and then at 2:01PM (more than an hour later) you remove one node, the 5th node is billed for 61 minutes.

  2. The amount of storage that your databases use.

    Spanner charges you for the average amount of data in your Spanner databases, including tables, secondary indexes, and metadata over a one-month period, multiplied by the monthly rate.

  3. The amount of storage that your backups use.

    Spanner charges you for the average amount of storage used by your Spanner backups over a one-month period, multiplied by the monthly rate.

  4. The amount of network bandwidth used.

    Some types of network egress traffic, such as application reads of Spanner databases, are subject to bandwidth charges, as shown below. There are no bandwidth charges for Spanner replication or network ingress traffic.

These charges include all of the replicas that Spanner runs for your instance. You are charged for each instance, not for each replica.

Project storage usage and bandwidth usage are calculated in gigabytes (GB), where 1 GB = 230 bytes.

Project storage and bandwidth usage charges accrue daily. You can view unbilled usage at any time on the Google Cloud console.

The following tables show the pricing for each component of Spanner.

In the following table, you can compare pricing between per use, 1-year committed use discount, and 3-year committed use discounts. Read Cloud Spanner committed use discounts documentation for more details.

Choose a regional configuration from drop down in the table below

Choose a multi-region configuration from drop down in the table below

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

You are billed only for the storage that you use, including tables, secondary indexes, and the overhead for those indexes.

Choose a regional configuration from drop down in the table below

Choose a multi-region configuration from drop down in the table below

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

You are billed only for the storage that you use. A backup is billed from the time it is complete until the time it is deleted. A completed backup is billed for a minimum of 24 hours, irrespective of time of deletion (if less than one day).

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

Ingress Free
Egress within the same region Free
Egress between regions within the US (per GB) $0.01
Inter-continental egress At Internet egress rate
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.

Internet egress rates

For instances with regional configurations, internet egress rates are as shown below.

For instances with multi-region configurations, internet egress is charged as follows:

  • Egress from read-write transactions, which consists of the reads and queries in a read-write transaction, is always charged based on the egress cost from the default leader region.
  • Egress from other reads is charged based on the egress cost of the nearest region that has read-write or read-only replicas. For example, assuming that you are using the multi-region configuration nam-eur-asia1:

    • For clients in us-central1, egress is free, because the region is part of the multi-region configuration.
    • For clients in us-west1, egress is charged from us-central1, which is the closest region in the multi-region configuration.
    • For clients in asia-south1, egress is charged from asia-east1, which is the closest region in the multi-region configuration.
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.

There are no additional charges from Spanner for use of the export or import tools; you pay the standard rates for data storage when you import a database to Spanner. However, there are other potential charges associated with importing and exporting databases:

  • You will be charged the standard rates for Dataflow batch workers when you run an export or import job. The total charge will depend on the amount of data being imported or exported as well as performance factors. For example, if your Spanner instance is already under heavy load, import and export jobs might take longer, resulting in a larger overall charge for Dataflow workers.

  • If you run an import job in a region that does not overlap with your Cloud Storage bucket configuration, you pay Cloud Storage's standard rates for network egress. To minimize charges, ensure that you choose a region for your import job that overlaps with your bucket configuration. See Choosing an import region for more details.

  • If you run an export job in a region that does not overlap with your Spanner instance configuration, you pay the standard rates for network egress. To minimize charges, ensure that you choose a region for your export job that overlaps with your instance configuration. See Choosing an export region for more details.

A Cloud Spanner free trial instance lets you learn and explore Spanner features and capabilities at no cost for 90 days. During the 90-day free trial period, you can store 10 GB of data in your free trial instance. For more details, see Cloud Spanner free trial instances. If you are a new Google Cloud customer, you are also eligible for the 90-day Google Cloud free trial that gives you $300 credits to use on Google Cloud products including Spanner. The Spanner free trial instance is in addition to the $300 credits offered by the Google Cloud free trial.

You can upgrade from a free trial instance to a paid instance to continue using your instance beyond the 90-day free trial period and scale beyond the free instance usage limits. If you choose to upgrade your free trial instance to a paid instance, you will be charged according to the pricing on this page.

What's next

Request a custom quote

With Google Cloud's pay-as-you-go pricing, you only pay for the services you use. Connect with our sales team to get a custom quote for your organization.
Contact sales