CockroachDB is a distributed SQL database built for resilience and scale, PostgreSQL-compatible. Compare Basic, Standard, Advanced, and self-hosted pricing.
Researched and fact-checked by Bartu Cavusoglu · Updated July 18, 2026
Category
Databases
Pricing
Freemium / Usage-based, from Free
Verified
Not yet
Last updated
July 18, 2026
Founded
2015
Headquarters
New York, New York, United States
Free PlanWeb AppFree TrialAPIFreemiumSelf-Hosted
Overview
CockroachDB is a distributed SQL database built by Cockroach Labs, founded in 2015 by former Google engineers Spencer Kimball, Peter Mattis, and Ben Darnell, who previously worked on Google's Spanner distributed database. It is designed to survive node, data center, and even regional failures while maintaining strong consistency and PostgreSQL wire compatibility.
Headquartered in New York City, Cockroach Labs has raised over $800 million across nine funding rounds, including a $278 million Series F led by Greenoaks that valued the company at approximately $5 billion.
Key Features
CockroachDB automatically shards, replicates, and rebalances data using the Raft consensus protocol, enabling multi-active availability that keeps a cluster serving reads and writes even during regional outages. Geo-partitioning lets specific data be pinned to specific regions for data residency and latency requirements.
Recent additions include AI-oriented capabilities such as an MCP server, a ccloud CLI, agent skills, and distributed vector indexing, reflecting growing demand for databases that natively support AI agent and RAG workloads.
Pricing
CockroachDB Cloud offers three tiers: Basic (pay-as-you-go, starting free with 50M request units and 10 GiB storage monthly), Standard (provisioned compute starting at $0.18/hour for 2 vCPUs), and Advanced (starting at $0.60/hour for 4 vCPUs, with unlimited scaling and compliance features like CMEK and HIPAA/PCI-DSS support).
Self-hosted CockroachDB is source-available; since an August 2024 licensing change, companies with more than $10 million in annual revenue must pay a per-CPU-core fee to self-host, while smaller companies and startups below that threshold can use the same enterprise-grade version free of charge.
Key Features
PostgreSQL wire compatibility — Connect using standard PostgreSQL drivers, ORMs, and tools, easing migration for existing Postgres applications.
Automatic sharding and rebalancing — Data is automatically distributed and rebalanced across nodes without manual partitioning.
Multi-region survivability — Raft-based replication allows the cluster to keep serving reads and writes through node or regional outages.
Geo-partitioning — Pin specific rows of data to specific geographic regions for data residency and latency compliance.
ACID transactions at scale — Full relational transaction guarantees combined with horizontal, distributed scalability.
Serverless Basic tier — Pay-as-you-go pricing that scales to zero when idle, ideal for bursty or unpredictable workloads.
AI/agent tooling — MCP server, ccloud CLI, agent skills, and distributed vector indexing for AI and RAG-oriented workloads.
Compliance certifications — Advanced tier supports CMEK encryption and HIPAA/PCI-DSS compliance requirements for regulated industries.
Pros & Cons
Pros
Combines full ACID SQL transactions with true horizontal, multi-region scalability
PostgreSQL wire compatibility simplifies migration from existing Postgres applications
Free self-hosted use for companies under $10M annual revenue under the current licensing model
Serverless Basic cloud tier offers a genuinely free entry point with no credit card commitment for small workloads
Cons
Source-available license (not OSI-approved open source) requires payment for self-hosted use above the $10M revenue threshold
Distributed architecture adds operational complexity and latency considerations compared to single-node databases for small workloads
Standard cloud tier was still in preview as of recent releases, indicating some product maturity gaps
Provisioned compute pricing (Standard/Advanced) can be more expensive than simpler managed Postgres offerings for steady, low-scale workloads
Self-Hosted Free under $10M revenue; per-CPU-core fee above annual/custom
Frequently Asked Questions
Is CockroachDB free to use?
CockroachDB Cloud's Basic tier is free to start, including 50 million request units and 10 GiB of storage per month. Self-hosted CockroachDB is also free for companies with less than $10 million in annual revenue; larger companies pay a per-CPU-core fee under the current licensing model introduced in August 2024.
Is CockroachDB open source?
CockroachDB is source-available rather than strictly open source under OSI definitions. The source code is publicly viewable, but commercial self-hosted use by companies above $10 million in annual revenue requires a paid license.
Is CockroachDB compatible with PostgreSQL?
Yes, CockroachDB is wire-compatible with PostgreSQL, so applications can generally connect using standard PostgreSQL drivers, ORMs, and tools with minimal changes.
Who founded Cockroach Labs?
Cockroach Labs was founded in 2015 by Spencer Kimball, Peter Mattis, and Ben Darnell, all former Google engineers who previously worked on Google's Spanner distributed database.
What is the difference between CockroachDB Basic, Standard, and Advanced?
Basic is a pay-as-you-go serverless tier that scales to zero, suited for bursty workloads. Standard offers provisioned compute for steady workloads at scale. Advanced adds unlimited scaling, multi-region support across AWS/GCP/Azure, up to 99.999% uptime, and compliance features like CMEK and HIPAA/PCI-DSS support.
How does CockroachDB survive data center outages?
CockroachDB uses the Raft consensus protocol to replicate data across multiple nodes and regions, enabling multi-active availability so the cluster continues serving reads and writes even if a node or an entire region fails.
Tool pages we refreshed lately, from across the directory.
LeatUpdated Nov 30, 2026 Marketing · Leat unifies loyalty and promotions for hospitality, retail, and e-commerce businesses. Keep your loyalty connected…
CleanlistUpdated Oct 26, 2026 Sales · Cleanlist is a B2B data enrichment and GTM agent platform. Its agent, Clu, finds buyers, verifies emails and phone…
CreasquareUpdated Oct 26, 2026 Social Media · Creasquare is an AI-powered platform for creating social media graphics, videos and captions, then scheduling them to…
AwinUpdated Nov 30, 2026 Marketing · Awin is a global affiliate marketing network that connects advertisers with a network of publishers to drive…
PrezlyUpdated Oct 26, 2026 Marketing · Prezly is PR software that combines branded online newsrooms, media contact management, email pitching, and coverage…
TenantCloudUpdated Oct 26, 2026 ERP & Business Management · TenantCloud is cloud-based property management software for landlords and property managers. It covers online rent…
Code SaUpdated Nov 29, 2026 Documentation · Discover Code Sa — the automated QA solution for C/C++ codebases. Deliver faster with robust real-world test…
Verizon ConnectUpdated Nov 30, 2026 Real Estate, Construction & Field Service · Verizon Connect is a cloud-based fleet management platform offering GPS vehicle tracking, AI dashcams, compliance…
nDBFormsUpdated Oct 26, 2026 Forms · nDBForms is a Notion form builder that adds conditional logic, multi-page forms, Google Drive uploads and analytics.…
OzBrainUpdated Nov 29, 2026 Knowledge Base · OzBrain is a shared brain every AI agent you use can read and write. One structured source of truth across Claude,…