# ACID

> ACID is the set of atomicity, consistency, isolation, and durability properties that guarantee database transactions remain valid despite errors or failures.

**Field:** Software & systems · **Reliability:** Empirical · **Coined:** 1983

## What it means

ACID names four properties a transaction-processing system should provide so that data stays correct even when hardware crashes, power fails, or many transactions run concurrently. Atomicity means a transaction fully completes or fully rolls back; consistency means it only moves the database between valid states; isolation means concurrent transactions do not corrupt each other’s view of data; durability means committed changes survive later failures.

## How it works

Atomicity is typically implemented via write-ahead logging and rollback mechanisms; consistency is enforced by constraints, triggers, and application logic checked at commit; isolation is achieved through locking protocols or multiversion concurrency control at levels such as serializable or snapshot isolation; durability is achieved by flushing logs to persistent storage before acknowledging commit.

## Examples

- **IBM IMS, 1973:** IBM’s Information Management System supported ACID-style transactions as early as 1973, predating the coining of the acronym.
- **Relational databases:** PostgreSQL and MySQL’s InnoDB storage engine implement full ACID transaction guarantees in their default operation.
- **The coining paper:** Theo Härder and Andreas Reuter’s 1983 ACM Computing Surveys paper "Principles of Transaction-Oriented Database Recovery" formally introduced the ACID acronym.

## Why it matters

ACID gives developers a well-defined contract for transactional correctness, letting them reason about concurrent, failure-prone systems as if operations were simple and sequential. It underlies the reliability guarantees of virtually all traditional relational database systems.

## Where it breaks down

Full ACID guarantees, especially strict isolation and synchronous durability across replicas, impose performance and availability costs difficult to sustain at large distributed scale, motivating alternatives like BASE. Isolation levels weaker than serializable, such as read-committed, are common in practice and only partially satisfy the ACID ideal.

## Common misreadings

"Consistency" in ACID refers to application-defined data validity constraints, not the same "consistency" used in the CAP theorem, and the two are frequently conflated.

## Origin

Jim Gray articulated atomicity, consistency, and durability in the 1970s; Andreas Reuter and Theo Härder coined the full ACID acronym, adding isolation, in their 1983 paper.

## Related

- [BASE](https://conyso.com/lawtome/laws/base/) — tension

## Sources

- [ACID, Wikipedia. — the definition, the four properties, and the coining history.](<https://en.wikipedia.org/wiki/ACID>)
- [Härder & Reuter, "Principles of Transaction-Oriented Database Recovery," ACM Computing Surveys 15(4) (1983). — the paper that coined ACID.](<https://dl.acm.org/doi/10.1145/289.291>)

---
Source: https://conyso.com/lawtome/laws/acid/ · The Law Tome — a sourced index of named laws.
