Linux Kernel Surpasses 40 Million Lines of Code:Doubling in a Decade
Linux Kernel Surpasses 40 Million Lines of Code:Doubling in a Decade
- Why Enterprise RAID Rebuilding Succeeds Where Consumer Arrays Fail?
- Linus Torvalds Rejects MMC Subsystem Updates for Linux 7.0: “Complete Garbage”
- The Man Who Maintained Sudo for 30 Years Now Struggles to Fund the Work That Powers Millions of Servers
- How Close Are Quantum Computers to Breaking RSA-2048?
- Why Windows 10 Users Are Flocking to Zorin OS 18 Instead of Linux Mint?
- How to Prevent Ransomware Infection Risks?
- What is the best alternative to Microsoft Office?
Linux Kernel Surpasses 40 Million Lines of Code:Doubling in a Decade
At the beginning of 2025, the Linux kernel has reached an impressive milestone: its source code has surpassed 40 million lines.
The release of Linux 6.13 in early January 2025 contained 39,819,522 lines, and with the recent introduction of Linux 6.14 rc1, this number has surged to 40,063,856 lines.
This achievement represents a doubling of the Linux kernel’s size since 2015, when it had just 20 million lines of code.

Rapid Growth of the Linux Kernel
The Linux kernel has experienced remarkable growth over the years. According to Heise Online, each major development release adds an average of 400,000 lines of code. These additions include not only functional code but also comments, documentation, and even formatting elements such as blank lines for better readability.
Tailored Code for Specific Systems
Experts point out that not all of the kernel’s source code is necessary for every user or system. For instance, the Linux kernel accommodates numerous processor architectures, and the code dedicated to different processors totals around 4.5 million lines. However, most users only require code specific to the architecture of their devices.
For example, systems using x86 processors (commonly found in PCs) only utilize a subset of this code—less than 500,000 lines specific to the x86 architecture. Moreover, compilers can further narrow down this subset by selecting only the code relevant to the particular x86 chip architecture used in the system.
The ever-expanding Linux kernel continues to highlight the operating system’s versatility and its commitment to supporting a wide range of platforms, devices, and use cases.