In short: the bus factor is estimated from the code history, by looking at who wrote and last changed which parts. A low number shows where knowledge sits with too few people. Documentation, review and shared ownership spread it.

What the bus factor is

Researchers define the truck factor, also called the bus factor, as a minimal number. It is how many developers must be hit by a truck, or quit, before a project is incapacitated. It measures how well a project withstands turnover.

A bus factor of one means one person holds knowledge the others do not. The point is not the accident. People change jobs, go on leave and fall ill. The question is what happens to the software when it occurs.

How it is estimated from the history

Every change in a Git repository records who made it and when. From that history you can estimate which parts of the code each person wrote and who last touched them. The more of the code rests on one person, the lower the estimate.

Researchers built automated methods that do this. One later method also used code review and meeting data, and was validated with surveys of engineers.

How a bus factor is estimated from the code history, in four stepsRead the historywho changed what,whenOne person, onenamemerge identitiesPer partwho wrote it, wholast touched itHow few peopledoes each part reston
How a bus factor is estimated from the code history, in four stepsRead the historywho changed what, whenOne person, one namemerge identitiesPer partwho wrote it, who last touched itHow few peopledoes each part rest on
Read the history and treat one person's several names as one. See who wrote and last changed each part. Then see how few people the code rests on.

You can try a rough version yourself. The command git shortlog with the options -s and -n counts commits per author. Look at the last year and at one part of the code at a time.

Three limits apply.

  • One person, several identities. The same person can appear under different names or addresses. A mailmap file maps them to one identity. Without it, the count is too high.
  • The history shows who typed, not who understands. A large formatting change or a generated file can name the wrong person. When an assistant writes the code, the author in the history is the person who accepted it.
  • Work outside the history stays invisible. Pair work, review and talks leave no trace in the commit list.

What a low number means, and what it does not

A low number is common. In one study of popular open-source projects, most had a truck factor of two or less. It says where knowledge is concentrated, which is useful to know.

It does not say the person is doing a poor job, or that the software is bad. In a survey of the developers of the studied projects, most agreed that the people named were the main authors. Responses to the estimated number itself were more mixed. Treat it as an estimate that tells you where to look.

It also does not say who understands the code best. It counts changes, not understanding.

What helps

  • Documentation. DORA describes documentation quality through clarity, findability and reliability, and notes that it must be actively created and maintained. Start with how to run the software locally, put a version live and roll it back.
  • Review. Google's guide says review teaches developers something new, and that sharing knowledge is part of improving the health of the code.
  • Shared ownership. Fowler describes strong ownership, where one person changes a module, and collective ownership, where the whole team owns the code. He prefers collective ownership and notes that strong ownership causes delays.
  • Practices around the code. A study of deprecated open-source projects found that contributing guidelines and continuous integration relate to whether a project fails or succeeds.
Five signs that knowledge is shared, and which can be seen from the code1More than one person changed eachpart in the last year2Changes are reviewed before theyreach the main branch3Starting, releasing and rolling backare written down4Someone other than the author canrelease a version5A new developer could start from thedocuments alone
Five signs that knowledge is shared, and which can be seen from the code1More than one person changedeach part in the last year2Changes are reviewed before theyreach the main branch3Starting, releasing and rollingback are written down4Someone other than the authorcan release a version5A new developer could start fromthe documents alone
  • visible in the code and its history
  • only the team knows
With a check mark: visible in the code and its history, so a check can read it. Without: only the team knows it, so ask it in the team.

This page does not tell you who to blame. It tells you where a second person should learn the code.

What we check of this

We read the Git history of your code. We count how many people worked on it in the last year. We show whether most of the work comes from one person, for the whole code and per part. We show how much code was last changed by someone who has changed nothing for six months or more. We count people and never show a name. We do not give a single bus factor number.

We check whether it is recorded who owns the application and its parts, and who still knows which part and what nobody dares to touch. We check whether changes to the main branch are reviewed. We read the documentation that a handover needs. We change and take over nothing.

Join the pilot

Sources, opened on 11 November 2026

Written by the BlueLandscape team with the help of AI. Every statement was checked against the source above.