How many lines of code are in a modern AAA video game?

Gaming hard Data from 2023

Guess before you scroll — the answer is below

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

The answer

20,000,000 lines

Roughly 20M.

A modern AAA game runs to roughly 20 million lines of code, comparable to a car’s software or a commercial airliner’s. Most of it is not gameplay: engines, tooling, physics, netcode and platform certification requirements dominate.

Where this number comes from

Source Developer postmortems reported in the games press
Figure refers to 2023
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