How many lines of code does Google’s codebase have?

Technology brutal Data from 2016

Guess before you scroll — the answer is below

Answer in lines. Shorthand like 9m or 1.2bn works.

The answer

2,000,000,000 lines

Roughly 2B.

Google’s codebase runs to roughly 2 billion lines, held in a single repository. Printed at 50 lines a page it would be a stack of paper about four kilometres tall. Thousands of engineers commit to it every day.

Where this number comes from

Source Potvin & Levenberg, Communications of the ACM
Figure refers to 2016
Last checked
Unit lines

Numbers move. If this one has drifted from its source, let us know.

Think you can do better?

Five fresh questions every day. No account needed.

Play today’s puzzle

Related questions