Stack Overflow's 2022 Developer Survey shows ~40% use a Linux-based system, up from ~25% in 2021 and ~23% in 2018, compared to ~62% for Windows and ~31% for Mac
Thanks to the 2022 StackOverflow developer survey we can finally say 2022 was the year of Linux on the Desktop!
Context & Ripple Effects
Stack Overflow's own survey series frames the reversal: back in 2016 it recorded the moment Mac overtook Linux as developers' primary OS, and earlier editions tracked a mostly stable Windows-majority audience. The 2022 edition breaks that pattern — 40.2% of developers now use a Linux-based system, up from 25.3% in 2021 and 23.2% in 2018, against 62.3% for Windows and 31.1% for Mac.
The catch is scope: StatCounter puts Linux at roughly 4% of all desktops as of February 2024, after it took 30 years to reach a 3% consumer share in June 2023. So this is a developer-workflow shift, not a consumer one — which is exactly why it matters for anyone selling tools, hardware, or platforms to developers.
First-order effects
- Tooling and hardware vendors now face a three-way developer matrix where Linux is no longer the smallest segment — at 40.2% it outranks Mac's 31.1%, so Linux-first support stops being an edge case.
- Windows retains a clear majority at 62.3%, meaning no vendor can drop it either; the practical change is broader test matrices and Linux-native defaults rather than any platform ceding ground outright.
Second-order effects
- Microsoft's organizational response is already visible in the corpus: Windows and Office leaders were promoted to EVP reporting directly to Satya Nadella, elevating Windows to CEO-level attention precisely as developer mindshare drifts toward Linux.
- Vendors must now serve two sharply different Linux populations — a ~40% developer base versus a ~4% consumer desktop base — splitting product, pricing, and support strategies along lines the old 'desktop market share' metric can't capture.
Third-order effects
- If the survey trend holds while consumer share stays in low single digits, operating-system competition increasingly gets decided by developer ecosystems and server/cloud presence rather than retail desktop installs — flipping the metric that ranked OSes for decades.
- A durable developer-Linux majority would make cross-platform compatibility layers and Linux-targeted tooling table stakes, pressuring proprietary-software vendors whose distribution models assume a Windows-first install base.
The trend: Developer surveys are tracking Linux's climb from a ~23% niche in 2018 toward parity with Windows among developers, even as its consumer desktop share remains stuck near 4% — a widening split between how software gets built and what most people run.