Stack Overflow's 2022 Developer Survey: 40.2% use a Linux-based system, up from 25.3% in 2021 and 23.2% in 2018, compared to 62.3% for Windows and 31.1% for Mac
Context & Ripple Effects
The 2022 survey reverses a six-year-old storyline: back in the 2016 survey, Mac overtook Linux as developers' primary OS, and Linux had been drifting around the low-20s since 2018. The new numbers — 40.2% on Linux-based systems versus 31.1% on Mac — put Linux clearly back in second place behind Windows' 62.3%, after sitting below Mac as recently as last year's 25.3% reading.
The swing matters because Stack Overflow's annual survey is the closest thing the industry has to a census of working developers, and its OS question has tracked platform priorities before — the same survey series flagged JavaScript's spread to back-end work and Rust's run of most-loved-language wins.
First-order effects
- Apple loses the 'default developer laptop' narrative it held when the 2016 survey showed Mac passing Linux; Microsoft's Windows lead is intact at 62.3% but now faces a fast-closing second challenger rather than a distant one.
- Developers on Linux-based systems move from a niche cohort (~23-25% through 2021) to a plurality-shaping bloc that tooling vendors can no longer treat as an edge case.
Second-order effects
- Developer-tool and hardware vendors face pressure to make first-class Linux support table stakes rather than an afterthought, since skipping it now means ignoring four in ten respondents.
- Microsoft and Apple both have incentives to blur the boundary — Microsoft by making Windows more hospitable to Linux-style workflows, Apple by defending the Mac's developer mindshare against a free alternative.
Third-order effects
- If the trajectory holds, the developer desktop consolidates into two poles — Windows-as-host and Linux-native — squeezing standalone Mac-only workflows and pushing OS vendors to compete on developer-experience features rather than raw market share.
- A larger Linux developer base feeds the server-side status quo where Linux already dominates, tightening the loop between what developers use locally and what they deploy to.
The trend: Developer operating-system preferences are re-polarizing around Linux, eroding the Mac ascendancy the 2016 survey appeared to cement while Windows retains the top spot.