Microsoft Docs

Azure Cosmos DB Pricing

Understand the pricing for Azure Cosmos DB, a globally distributed, multi-model database service. Pricing is based on the throughput provisioned and storage consumed. Cosmos DB offers a pay-as-you-go model with predictable costs.

Key Pricing Components

Throughput Provisioning

You can provision throughput at the database level or the container (collection/table/graph) level. Container-level provisioning offers finer-grained control and can be more cost-effective for fluctuating workloads.

Manual Throughput vs. Autoscale Throughput

Pricing Tiers

Azure Cosmos DB offers different pricing tiers and options to suit various needs:

Example Pricing Breakdown (Illustrative)

The following table provides an illustrative example of pricing. Actual prices may vary based on region and specific configuration.

Component Unit Price (USD/Month - Example) Notes
Throughput (Provisioned RUs) RU/s $0.000040 per RU/s Based on 1,000 RUs provisioned for a month (approx. 730 hours)
Storage GB $0.28 per GB For data stored beyond the free tier allowance.
Data Transfer (Outbound) GB $0.087 per GB Within the same Azure region is typically free.
Autoscale Throughput (Max 400 RU/s) RU/s $0.000080 per RU/s Autoscale is priced at twice the manual RU/s rate but scales automatically.
Note: The Free Tier for Azure Cosmos DB provides 1,000 RU/s and 25 GB of storage for free per subscription, per account, per region. This is a great way to get started without any upfront cost.

Calculating Costs

To estimate your costs, consider:

  1. Estimate your average read and write operations per second.
  2. Determine the RU cost per operation. Each operation has an associated RU cost. You can find these in the Request Units documentation.
  3. Calculate total RUs required: (Average reads/sec * RU cost per read) + (Average writes/sec * RU cost per write).
  4. Choose between manual or autoscale throughput based on workload predictability.
  5. Estimate your data storage needs.
  6. Factor in data transfer costs if applicable.

Use the Azure Pricing Calculator for a more precise cost estimation tailored to your specific usage patterns and region.

Further Resources