Quick Answer
A bus factor is the smallest number of people who would have to leave before work on a project stalls. A bus factor of 1 means one person holds a part of the code that nobody else knows: a single point of failure. Find those parts with your git history and your code owners file, then spread them: pair, rotate who changes them, add a second reviewer, write them down and ask the team questions about the code.
What Does Bus Factor Mean?
The bus factor counts how many team members would have to suddenly disappear from a project before it stalls. It is also called the truck factor or the lottery factor. The bus is only a stand-in: a new job, a long leave or a burned-out developer leaves the same gap.
A high bus factor means knowledge is shared. A low one means a few heads hold parts of the app that nobody else can change safely.
What Is a Bus Factor of 1?
A bus factor of 1 is a single point of failure, the bus factor risk in its plainest form. One person is the only one who knows how payments are retried, why the deploy script has that one odd step, or which table the nightly job cleans up. While they are around, nobody notices. When they are away, a small bug in that part waits for them.
It is common. In a 2016 study of 133 popular projects on GitHub, Guilherme Avelino and colleagues estimated that 65% had a truck factor of 2 or less.
A solo founder starts at 1 for everything. And when an AI agent wrote a part that nobody read, nobody knows it at all, which is how comprehension debt builds up.
How to Calculate Your Bus Factor
Researchers have published ways to estimate it, such as the 2016 study above, but the definition gives a simple version. For each part of the app you could not ship without, count the people who could change it safely. Your bus factor is the smallest of those counts: lose those people and that part stalls, and the project with it.
To get the counts:
- List the parts you could not ship without: payments, sign-in, deploys, data jobs.
- See who wrote each one.
git shortlog -sn HEAD -- src/billinglists the authors of that folder by number of commits. Keep theHEAD: with no revision, in a script or CI job, git shortlog reads from standard input instead of your repository. - Read your code owners file. A
CODEOWNERSfile in.github/, the root ordocs/names who is responsible for each path, and GitHub requests their review on pull requests that change it. A path with one name is a bus factor of 1 on paper. - Ask the team. For each part: who else could fix a bug here this week? If the answer is nobody, that part has a bus factor of 1.
Commit counts are a rough signal. The person who reviewed every change, or who debugged it in production, may know it just as well, so use the git numbers to start the conversation, not to end it.
How to Raise Your Bus Factor
- Pair on changes in the parts only one person knows.
- Rotate who changes it. The person who knows it best reviews instead of writing.
- Name a team in
CODEOWNERS, not one person, so reviews do not all wait for the same developer. - Share access, not only knowledge. At least two people should be able to deploy, reach the cloud and DNS accounts, and rotate a key.
- Write down what lives in one head, in a one-page note such as
ARCHITECTURE.mdor a runbook for the deploy. - Ask the team questions about the code. A question sends people into the part they do not know yet, and in the study the developer onboarding guide describes, recall tests beat rereading a week later.
How Know Your Code Helps
VibeDoctor Know Your Code makes short questions about your own project from its code map, which every code scan builds.
- Each question has three answers, one of them right, and a hint button that shows where to look in the code.
- The whole team answers the same questions, with points and a leaderboard.
- The project owner sees a table of who knows which areas: every area that has questions, against every teammate, with a tick where they know it, and "Nobody knows yet" where no one does. An area with one tick points to a bus factor of 1.
- Each teammate can pick a module once it has questions, so they answer the part they need to learn first.
Free accounts get a first set of questions to answer once. Paid plans bring back the ones you missed and let your team ask for more.
To try VibeDoctor from Claude Code or Codex, paste this into the agent:
connect to vibedoctor using https://vibedoctor.io/mcp/start
Not a developer? Connect your GitHub repository on vibedoctor.io for a free scan.
FAQ
What does bus factor mean?
It is the smallest number of people who would have to leave before work on a project stalls. The lower it is, the more the project depends on a few people.
Why is it called bus factor?
It comes from the phrase "in case they get hit by a bus". The bus stands for any sudden exit, and lottery factor is a kinder name for the same idea.
Is bus factor the same as truck factor?
Yes. Truck factor and lottery factor are other names for the same idea.
What is a good bus factor?
There is no single right number. Aim for at least 2 people on every part you could not ship without, and more on the parts that change often.
How do you calculate bus factor?
For each part you could not ship without, count the people who could change it safely; the smallest count is your bus factor. Get the counts from who wrote each part (git shortlog -sn HEAD -- <folder>), your CODEOWNERS file and the team itself. Know Your Code shows the owner who knows each area from the team's answers.
Does a solo developer have a bus factor?
Yes, and it is 1 for everything. Notes, a map of the code and tests that explain what the code should do make it easier for the next person to pick it up.