# The Bus Factor

> The number of people who would have to vanish before a project stalls for want of anyone who knows how it works.

**Field:** Software & systems · **Reliability:** Heuristic · **Coined:** 1994

*Also known as: The truck factor; The lottery factor; Truck number; The circus factor*

## What it means

A blunt measure of concentrated knowledge. If the answer is one, the project is one resignation, illness or holiday away from stopping, not because the work is hard, but because only one person knows where anything is.

## How it works

Knowledge accumulates wherever work is done, and work concentrates on whoever is already fastest at it. The person who wrote the deployment script is the quickest to fix it, so they fix it again, and the gap between them and everyone else widens with every incident. Nothing about this feels like a risk while it is happening. It looks like efficiency, and it is, right up to the moment that person is unavailable. The measure is deliberately morbid because the failure mode is ordinary: people leave jobs far more often than they are hit by buses.

## Examples

- **The undocumented deploy:** Releases go out because one engineer runs a script from their laptop. Nothing is written down, because nothing needed to be until they were on leave.
- **The measured reality:** A study of 133 popular GitHub projects found 65% had a bus factor of two or less, and fewer than one in ten exceeded ten — concentration is the normal condition of open source, not the exception.
- **The knowledge that is not code:** Why the retry limit is seven, which customer must never be migrated on a Friday, who to call at the payment provider. None of it is in the repository, and all of it leaves with the person.

## Try it

This entry is interactive: a live calculator.
Open it at https://conyso.com/lawtome/laws/the-bus-factor/ — free, runs in the browser, sends nothing anywhere.

```
P(k or more of n leave)
```

- `n` — People on the project
- `k` — Bus factor, the number that would stall it
- `p` — Chance each leaves in a year (%)

## Why it matters

It gives an unglamorous organisational risk a number and a name that survives being said in a meeting, which is most of why it spread. It also reframes documentation, pairing and code review from process overhead into risk reduction with a metric attached.

## Where it breaks down

It is a count with no agreed method of counting: what constitutes 'stalling', over what time horizon, and how much of a system a person must know to count are all unspecified, so two honest estimates of the same team can differ by several. It also treats all knowledge as equally critical and all people as equally replaceable-by-documentation, which is not true of either. And raising it has real costs, cross-training is slower than letting the expert do it, so the right number is rarely the highest one.

## Common misreadings

It is not a claim that anyone is expendable, and it is not a headcount target. Nor does a high bus factor mean the knowledge is written down: it means more than one person holds it, which is a different and more fragile thing than documentation.

## Origin

Software folklore with no single author. An early documented instance is Michael McLay's 1994 question about Python's prospects without Guido van Rossum; the idea appears in the Pattern Languages of Program Design series in 1995 and is established as 'truck number' in the 2004 book Organizational Patterns of Agile Software Development. The variants (truck factor, lottery factor, circus factor) are attempts at the same idea with less gallows in them.

## Related

- [Conway's Law](https://conyso.com/lawtome/laws/conways-law/) — kindred
- [Brooks's Law](https://conyso.com/lawtome/laws/brooks-law/) — kindred
- [The Curse of Knowledge](https://conyso.com/lawtome/laws/the-curse-of-knowledge/) — kindred

## Sources

- ["Bus factor." Wikipedia — the definition, the 1994 McLay instance, the 1995 and 2004 published appearances, the alternative names, and the GitHub study finding 65% of 133 projects at a bus factor of two or less.](<https://en.wikipedia.org/wiki/Bus_factor>)
- [Avelino, G., Passos, L., Hora, A. & Valente, M. T. (2016). "A Novel Approach for Estimating Truck Factors." IEEE ICPC. — the measurement of 133 GitHub projects.](<https://arxiv.org/abs/1604.06766>)

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