Linux statistics: use, countries and companion tools
The survey lists several Linux distributions separately. We count people selecting any of the included distributions once, then compare the resulting professional-use measure by coding background and country. The companion section shows which other operating systems the same respondents selected.
Key findings
- Professional developers reported Linux use at 46.9% in 2024, compared with people learning to code at 45.9%: a signed gap of +1.0 percentage points. (Stack Overflow)
- Among country samples with at least one hundred answers, Kenya had the highest Linux share at 65.8% in 2024; Nigeria had 33.7%, a gap of 32.1 percentage points. (Stack Overflow)
- Of Linux users who also answered the companion-tool question in 2024, 44.0% selected Windows, versus 26.5% for MacOS: a gap of 17.5 percentage points. (Stack Overflow)
- Professional developers supplied 78.6% of Linux users in the eligible 2024 sample, compared with 79.7% of eligible respondents, a signed difference of -1.1 percentage points. (Stack Overflow)
- The Linux share in Kenya's 2024 sample was 18.3 percentage points above the global survey sample's 47.5%; country samples measure respondents, not national workforces. (Stack Overflow)
Use by respondent group
Share reporting use
Professional developers reported 46.9% and people learning to code reported 45.9%. Their signed difference was +1.0 percentage points.
The groups answer the same use question, but their occupation and experience can affect tool selection.
Data table
| Respondent group | Reporting use | Answered question | Use share |
|---|---|---|---|
| Professional developers | 19,784 | 42,228 | 46.9% |
| Other respondents | 4,285 | 8,351 | 51.3% |
| Learning to code | 1,098 | 2,394 | 45.9% |
Country samples with the highest and lowest shares
Share reporting use
- Global survey sample: 47.5
The gap between Kenya and Nigeria was 32.1 percentage points. The chart shows the highest and lowest shares among 62 country samples with at least one hundred eligible responses.
The counts sit beside each share because recruitment and unequal country samples limit comparisons with the wider workforce.
Data table
| Country sample | Reporting use | Answered question | Use share |
|---|---|---|---|
| Kenya | 100 | 152 | 65.8% |
| Iran, Islamic Republic of... | 230 | 358 | 64.2% |
| China | 214 | 343 | 62.4% |
| Argentina | 178 | 302 | 58.9% |
| Portugal | 161 | 417 | 38.6% |
| Latvia | 46 | 120 | 38.3% |
| Malaysia | 53 | 141 | 37.6% |
| Nigeria | 84 | 249 | 33.7% |
Selected companion tools
Share of eligible users
Windows appeared in 44.0% of eligible Linux users' answers, compared with 26.5% for MacOS. The gap was 17.5 percentage points.
Respondents could choose several companions from a selected list, so these percentages don't add to a whole.
Data table
| Companion tool | Also selected tool | Eligible primary-tool users | Companion share |
|---|---|---|---|
| Windows | 11,075 | 25,167 | 44.0% |
| MacOS | 6,681 | 25,167 | 26.5% |
| Windows Subsystem for Linux (WSL) | 5,712 | 25,167 | 22.7% |
How we worked out these numbers
- We count a respondent once when their nonempty use answer includes Linux through any of Ubuntu, Debian, Arch, Fedora, Red Hat or Other Linux-based. Blank and missing answers stay out of the denominator. Multiple selections count as use of each selected tool.
- Respondent groups come from the survey question about coding background. Professional developers and people learning to code are separate answers; all other answers form the remaining group.
- The country section uses the latest included survey, 2024, and keeps only countries with at least one hundred eligible answers. Companion shares include Linux users who also answer that companion-tool question. All calculations are unweighted.
- The public response CSVs come from Stack Overflow. These adapted aggregates are available under the Open Database License, with individual source cell contents under the Database Contents License. The download and source list preserve the attribution and licence links.
What these numbers do not show
- Stack Overflow recruits mainly through its own channels. Respondents choose whether to take part, so these percentages don't estimate use among all developers, all workers or an entire country.
- A missing answer is excluded, not counted as non-use. Companion use measures an overlap between answers; it can't establish an integration, a required skill or a cause of tool adoption.
- This page uses a single survey year for this question. It can't establish growth, decline or the current number of people using the tool.
- Linux is a union of Ubuntu, Debian, Arch, Fedora, Red Hat and Other Linux-based. Someone choosing several distributions counts once. The source question asks about professional use, including answers from respondents whose main background is not professional development.
Common questions
- How many developers use Linux?
- In the 2024 Stack Overflow sample, 25,167 of 52,973 eligible respondents reported Linux use, or 47.5%. This is a share of people who answered the relevant survey question. Recruitment was self-selected, so it doesn't give a total user count or a representative estimate for all developers.
- Which country uses Linux most?
- Kenya had the highest Linux share among the retained 2024 country samples, at 65.8%, compared with 33.7% in Nigeria. Each retained country had at least one hundred eligible answers. These are unweighted survey samples, so the comparison can't rank whole countries by workforce adoption or total users.
Cite this page
When you quote a finding, use this citation or link to this page.
The Work Gym (2026). Linux statistics: use, countries and companion tools. Updated November 21, 2026. https://theworkgym.com/linux/statistics/
Download the data (CSV). One row per published figure, with its source and the day we read it.