Microsoft Azure Documentation

Azure Cosmos DB Pricing

This document provides a comprehensive overview of the pricing model for Azure Cosmos DB, a globally distributed, multi-model database service. Understanding these costs is crucial for optimizing your application's performance and budget.

Key Pricing Components

Azure Cosmos DB pricing is primarily based on two main components:

Request Units (RUs)

Request Units are a normalized measure of the compute, memory, and I/O resources required to perform database operations. The number of RUs consumed by an operation depends on factors such as:

You can provision RUs in two ways:

Storage

Storage costs are based on the total gigabytes (GB) of data stored in your Cosmos DB containers. This includes:

Note that storage is billed per GB-month. For example, if you store 10 GB for half a month, you'll be charged for 5 GB-months.

Pricing Tiers and Options

Azure Cosmos DB offers different pricing models and tiers:

1. Standard Pricing (Provisioned Throughput]

This is the most common model where you provision RU/s and storage. Pricing varies by:

2. Serverless Pricing

For workloads with infrequent or unpredictable traffic, the serverless option can be cost-effective. You pay per operation (based on RUs consumed) and for storage, without needing to provision throughput upfront. Ideal for development/testing or applications with spiky traffic patterns.

3. Azure Cosmos DB Dedicated Clusters

For mission-critical, high-throughput workloads, dedicated clusters offer predictable performance and pricing. This option is typically for enterprise-level scenarios.

Example Pricing Calculation (Illustrative)

Let's consider a simplified example for manual throughput in the East US region (prices are illustrative and subject to change):

Component Unit Estimated Cost (USD)
Provisioned Throughput (RU/s) Per million RU/s per month $0.018
Storage Per GB per month $0.18

Scenario: You provision 10,000 RU/s and store 50 GB of data for a full month in East US.

This is a simplified calculation. Actual costs can vary. Always refer to the official Azure pricing calculator for precise estimates.

Cost Optimization Strategies

Free Tier and Trial

Azure Cosmos DB offers a Free Tier that includes a limited amount of free throughput and storage per account. Additionally, new Azure customers can take advantage of a free Azure trial.

Further Resources

Calculate Your Estimated Costs