Skip to content
Home › SQL Comparisons › CockroachDB vs YugabyteDB
Comparison · NoSQL & Distributed Databases

CockroachDB vs YugabyteDB

CockroachDB and YugabyteDB are distributed SQL databases that shard tables automatically, replicate with Raft and speak the PostgreSQL wire protocol. CockroachDB has its own SQL engine, serializable isolation by default and, since v24.3, a proprietary licence that is free only below USD 10M annual revenue. YugabyteDB reuses the PostgreSQL query layer for YSQL, adds a Cassandra-style YCQL API and keeps its database under Apache 2.0. Licence, PostgreSQL compatibility and the managed service usually decide.

Last verified November 2026. Versions checked: CockroachDB v26.4, YugabyteDB v2026.1 (STS) / v2025.2 (LTS). Licensing and features change; check the official sources for the latest details.

Quick verdict

Short answer

Choose CockroachDB if you want a mature distributed SQL database with serializable transactions by default, built-in multi-region survival goals and row-level placement, changefeeds, and a managed cloud on AWS, Google Cloud and Azure, and you accept the CockroachDB Software License (no open source edition since v24.3, free Enterprise Free licence only below USD 10M revenue, telemetry required). Choose YugabyteDB if you need an Apache 2.0 licensed core with no revenue caps, the closest PostgreSQL behaviour (YSQL reuses PostgreSQL's query layer), or a Cassandra-compatible API alongside SQL. Both need applications that tolerate distributed transaction latency, so test your own queries.

How we know: This comparison is research-based: licences, releases, isolation levels, APIs, managed services and prices were checked on 7 November 2026 against Cockroach Labs' licensing FAQ, releases index, transactions documentation and pricing page, and against the yugabyte/yugabyte-db README, YugabyteDB documentation (FAQ, release series, isolation levels, Aeon) and Yugabyte's pricing page. Cockroach Labs' pricing page states two different Standard rates, which we report without choosing one. We have not run either database or measured performance.

CockroachDB from Cockroach Labs stores data in ranges replicated with Raft across nodes, zones or regions, speaks the PostgreSQL wire protocol and much of its SQL dialect, and runs transactions at SERIALIZABLE isolation by default. v26.4, a Regular release, reached GA on 26 October 2026. All releases from v24.3.0 (November 2024) are under the CockroachDB Software License; the former free Core licence was removed. See our CockroachDB profile and CockroachDB vs PostgreSQL.

YugabyteDB from Yugabyte splits tables into tablets replicated with Raft. YSQL reuses the PostgreSQL query layer and is designed to be PostgreSQL-compatible; YCQL is a semi-relational API rooted in the Cassandra Query Language; both share one storage layer. The core database is Apache 2.0, while YugabyteDB Anywhere (a self-managed control plane) and YugabyteDB Aeon (the managed service) are commercial. Current series are v2026.1 (STS, 29 June 2026) and v2025.2 (LTS, 11 December 2025). See our YugabyteDB profile.

Category note. Both are relational, SQL databases, not NoSQL in the data model sense. We group them with distributed databases because they compete with NoSQL systems on horizontal scale and multi-region availability.

Side by side

AspectCockroachDBYugabyteDB
Licence CockroachDB Software License (proprietary) since v24.3; Enterprise, Enterprise Free (under USD 10M revenue) and Enterprise Trial Apache 2.0 database; YugabyteDB Anywhere and Aeon commercial
Free self-managed use Enterprise Free for businesses under USD 10M annual revenue, with telemetry; single-node development needs no key Unlimited under Apache 2.0
SQL layer Own SQL engine with the PostgreSQL wire protocol and dialect YSQL reuses the PostgreSQL query layer
Other APIs SQL only YCQL, a Cassandra Query Language based API on the same storage
Isolation levels SERIALIZABLE (default); READ COMMITTED when enabled by cluster setting Serializable, Snapshot (REPEATABLE READ) and Read Committed; Read Committed on by default for new v2025.2+ universes deployed with yugabyted, Anywhere or Aeon, otherwise Snapshot in effect
Replication and sharding Raft per range, 3 replicas by default; automatic range splits and rebalancing Raft per tablet (quorum RF/2 + 1); hash or range sharding; read replicas
Multi-region features Regional and global tables, row-level regional placement, zone or region survival goals Replicate across regions, partition by region (geo-placement), read replicas; Aeon tolerates up to 3 region outages
Change data capture Changefeeds to Kafka, cloud storage and webhooks PostgreSQL replication protocol or Debezium-based gRPC connector (both Early Access)
Managed service CockroachDB Cloud on AWS, Google Cloud and Azure (Standard and Mission Critical for new organisations) YugabyteDB Aeon on AWS, Azure and Google Cloud (Standard, Professional, Enterprise), including BYOC
Managed pricing unit Per vCPU-hour, plus storage and data transfer Per vCPU per month, plus disk, backup storage and data transfer
Release model Regular releases (longer support) and Innovation releases LTS and STS series (STS maintained for one year)

Key differences

Licence and cost of the self-managed database

This is the clearest difference. CockroachDB has had no open source edition since v24.3.0 (18 November 2024). Self-hosted clusters need a licence key: Enterprise (paid, by quote), Enterprise Free (for businesses under USD 10M annual revenue including parents and affiliates, government bodies excluded, telemetry required, community support) or a 30-day Enterprise Trial. A multi-node cluster without a valid key is throttled to 5 concurrent open SQL transactions after a 7-day grace period, and Free or Trial clusters are throttled after 7 days without telemetry. Single-node development clusters need no key.

YugabyteDB keeps its database under Apache 2.0: the default build produces only Apache 2.0 binaries, with no revenue, node or feature caps. Only the YugabyteDB Anywhere management code in the same repository is under the PolyForm Free Trial licence, and Anywhere is sold commercially. If your policy requires an OSI-approved licence, or your revenue is above USD 10M and you want to self-manage without a quote, YugabyteDB is the one that fits.

PostgreSQL compatibility and SQL behaviour

Both accept PostgreSQL drivers and many ORMs, but they get there differently. YugabyteDB's YSQL reuses PostgreSQL's query layer on top of distributed storage, so PostgreSQL syntax, functions and much of its behaviour carry over; distributed storage still changes some behaviour and performance. CockroachDB implements its own SQL engine that speaks the PostgreSQL wire protocol and dialect; it is not a drop-in PostgreSQL replacement, and some features and extensions are missing (see CockroachDB vs PostgreSQL).

Isolation defaults differ too. CockroachDB runs SERIALIZABLE by default and expects applications to retry on error code 40001 ("restart transaction"); READ COMMITTED is available once the sql.txn.read_committed_isolation.enabled cluster setting is on. YugabyteDB supports Serializable, Snapshot and Read Committed; for new v2025.2 or later universes deployed with yugabyted, Anywhere or Aeon, Read Committed is on by default, while older or manually deployed universes behave as Snapshot unless you set yb_enable_read_committed_isolation.

-- Works on both (PostgreSQL-style SQL)
CREATE TABLE accounts (
  id      BIGINT PRIMARY KEY,
  owner   TEXT NOT NULL,
  balance DECIMAL(12,2) NOT NULL
);

BEGIN TRANSACTION ISOLATION LEVEL SERIALIZABLE;
UPDATE accounts SET balance = balance - 100 WHERE owner = 'alice';
UPDATE accounts SET balance = balance + 100 WHERE owner = 'bob';
COMMIT;
-- Under SERIALIZABLE, retry the whole transaction on SQLSTATE 40001.

APIs: SQL only versus SQL plus a Cassandra-style API

YugabyteDB offers YCQL next to YSQL. YCQL is rooted in the Cassandra Query Language and works with Cassandra drivers, with document and indexing support, which gives teams moving off Cassandra a path to transactions and strong consistency on the same platform. CockroachDB offers SQL only, with JSONB columns for semi-structured data.

Multi-region design and change data capture

CockroachDB builds multi-region into SQL: you declare database regions, mark tables as regional or global, place rows by region, and choose whether the database should survive a zone or a region failure. Changefeeds stream row changes to Kafka, cloud storage or webhooks, and backups go to S3, Google Cloud Storage or Azure Blob Storage.

YugabyteDB offers synchronous replication across regions, partition-by-region (geo-placement) and read replicas, and Aeon documents fault tolerance from a single node up to surviving three region outages (with seven regions). Its CDC options, through the PostgreSQL replication protocol or a Debezium-based gRPC connector, are both Early Access, which matters if CDC is central to your architecture.

Pricing and licensing

CockroachDB. Self-hosted Enterprise is priced by quote; Enterprise Free is free below USD 10M annual revenue. CockroachDB Cloud: organisations created on or after 15 September 2026 use the Continuum model. On cockroachlabs.com/pricing (checked 7 November 2026, AWS us-east-1, USD), the pricing table lists Standard (shared infrastructure, AWS and Google Cloud, 99.99% SLA) at 0.092 per vCPU-hour, but the same page's Features section says Standard starts "from 0.057 / vCPU-hr"; the page does not explain the difference, so treat neither figure as settled and confirm with Cockroach Labs. Mission Critical (dedicated, AWS, Google Cloud and Azure, 99.999% multi-region SLA) is listed at 0.162 per vCPU-hour in both places. Provisioned storage appears in the calculator at 0.155 per GiB-month, and the CDC add-on rate is also shown inconsistently. New organisations get a 30-day trial with USD 400 of credit; there is no free Cloud tier. Existing customers keep their current plans unless they opt in.

YugabyteDB. The database is free under Apache 2.0; YugabyteDB Anywhere has no published price. YugabyteDB Aeon, listed on yugabyte.com/pricing on 7 November 2026 in USD: Standard from 125 per vCPU per month, Professional from 167 per vCPU per month, Enterprise by quote; Professional customers can add Enterprise Security or Business Continuity and Disaster Recovery at 25 per vCPU per month each (both included in Enterprise). Disk storage is 0.10 per GB-month and backup storage 0.025 per GB-month. The pricing page describes a full-feature free trial, and the Aeon documentation describes a free single-node Sandbox cluster on AWS or Google Cloud.

As arithmetic only, a 730-hour month at CockroachDB Standard's 0.092 rate is about USD 67 per vCPU (about USD 42 at 0.057), against YugabyteDB Aeon Standard from USD 125 per vCPU. The plans differ in what is included (shared versus dedicated infrastructure, SLAs, support), so compare like for like with a quote from each vendor.

Pricing checked on the vendors' official pages on 7 November 2026. Prices change; confirm before buying.

Where each one leads

CockroachDB strengths

  • SERIALIZABLE isolation by default for distributed ACID transactions
  • Multi-region SQL: regional and global tables, row placement and survival goals
  • Generally available changefeeds to Kafka, cloud storage and webhooks
  • Managed CockroachDB Cloud on AWS, Google Cloud and Azure, with Mission Critical on all three
  • Free Enterprise Free licence for smaller businesses and key-free single-node development

YugabyteDB strengths

  • Apache 2.0 database with no revenue, node or feature caps
  • High PostgreSQL compatibility because YSQL reuses the PostgreSQL query layer
  • YCQL API for Cassandra-style workloads on the same storage engine
  • Published Aeon per-vCPU prices and a free Sandbox cluster
  • LTS release series with two years of maintenance

Limitations

CockroachDB limitations

  • Not open source since v24.3; free use limited to businesses under USD 10M revenue and requires telemetry
  • Clusters without a valid licence are throttled to 5 concurrent open transactions
  • Own SQL engine: not a drop-in PostgreSQL replacement
  • Cloud pricing page shows conflicting Standard rates, and there is no free Cloud tier for new organisations

YugabyteDB limitations

  • CDC connectors are Early Access
  • Default isolation depends on version and deployment method, which needs checking
  • YugabyteDB Anywhere and Aeon Enterprise are priced by quote
  • STS releases get only one year of maintenance
  • The free Sandbox is single-node and not offered on Azure

When to choose each

Choose CockroachDB if

  • You want serializable transactions and SQL-level multi-region controls out of the box
  • You need production-ready changefeeds for event streaming
  • Your business is under USD 10M revenue, or you are buying an Enterprise licence or CockroachDB Cloud anyway
  • You want a dedicated managed tier on Azure as well as AWS and Google Cloud

Choose YugabyteDB if

  • You need an OSI-approved licence or free self-managed use at any company size
  • Your application depends on PostgreSQL behaviour, functions or tooling
  • You also run Cassandra-style workloads and want them on the same platform through YCQL
  • You want published managed prices per vCPU

When neither is right

Final recommendation

Bottom line

Both are capable distributed SQL databases, and the licence now separates them more than the architecture does. YugabyteDB is the choice when you need Apache 2.0, the closest PostgreSQL behaviour or a Cassandra-compatible API. CockroachDB is the choice when its serializable-by-default model, SQL-level multi-region features and changefeeds matter most and its licence terms (or a CockroachDB Cloud contract) suit you. Run your heaviest transactions and queries on both, check isolation defaults and retry handling, and confirm current cloud prices with each vendor, especially CockroachDB's Standard rate.

Frequently asked questions

Is CockroachDB open source?

No longer. From v24.3.0 (November 2024), and for later patch releases of 23.1 to 24.2, CockroachDB is under the proprietary CockroachDB Software License, and the free Core licence was removed. Enterprise Free costs nothing for businesses under USD 10M annual revenue and requires telemetry.

Is YugabyteDB open source?

Yes. The YugabyteDB database is Apache 2.0 and the default build produces only Apache 2.0 binaries. YugabyteDB Anywhere's management code is under the PolyForm Free Trial licence and is sold commercially, and Aeon is a paid managed service.

Which is more PostgreSQL-compatible?

YugabyteDB's YSQL reuses the PostgreSQL query layer, so it is generally closer to PostgreSQL. CockroachDB implements its own engine with the PostgreSQL wire protocol and dialect, and some PostgreSQL features and extensions are missing. Test your schema, queries and ORM on both.

What isolation level do they use by default?

CockroachDB uses SERIALIZABLE by default, with READ COMMITTED available through a cluster setting. YugabyteDB YSQL supports Serializable, Snapshot and Read Committed; Read Committed is on by default for new v2025.2 or later universes deployed with yugabyted, Anywhere or Aeon, and older or manual deployments behave as Snapshot unless a flag is set.

How much does CockroachDB Cloud cost compared with YugabyteDB Aeon?

For new organisations, Cockroach Labs lists Standard at 0.092 USD per vCPU-hour in its pricing table but "from 0.057" elsewhere on the same page, and Mission Critical at 0.162; confirm with the vendor. YugabyteDB Aeon lists Standard from USD 125 and Professional from USD 167 per vCPU per month. Storage, transfer and support differ, so compare quotes.

Sources

Checked November 2026.

How we research comparisons: our editorial method.

More comparisons

Browse all SQL comparisons or the tools directory.