Country or region and language

    Choose your country or region and your language.

    Suggested for you

      All countries and regions

        Choose your character

        It shows in the top bar and on your profile. Change it any time.

        Research Linux

        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.

        Last updated November 21, 2026Source figures checked on November 21, 2026

        Key findings

        1. 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)
        2. 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)
        3. 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)
        4. 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)
        5. 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

        Linux use by coding background in 2024

        Share reporting use

        Linux use by coding background in 2024Linux use by coding background in 2024Professional developers46.9Other respondents51.3Learning to code45.9
        Linux use by coding background in 2024Linux use by coding background in 2024Professional developers46.9Other respondents51.3Learning to code45.9

        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
        Linux use by coding background in 2024
        Respondent groupReporting useAnswered questionUse share
        Professional developers19,78442,22846.9%
        Other respondents4,2858,35151.3%
        Learning to code1,0982,39445.9%
        Embed this chart

        Copy this code into your page. The chart links back here, where the sources are listed.

        Country samples with the highest and lowest shares

        Linux use in selected country samples in 2024

        Share reporting use

        Linux use in selected country samples in 2024Linux use in selected country samples in 2024Kenya65.8Iran, Islamic Republic of...64.2China62.4Argentina58.9Portugal38.6Latvia38.3Malaysia37.6Nigeria33.7
        Linux use in selected country samples in 2024Linux use in selected country samples in 2024Kenya65.8Iran, Islamic Republic of...64.2China62.4Argentina58.9Portugal38.6Latvia38.3Malaysia37.6Nigeria33.7
        • 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
        Linux use in selected country samples in 2024
        Country sampleReporting useAnswered questionUse share
        Kenya10015265.8%
        Iran, Islamic Republic of...23035864.2%
        China21434362.4%
        Argentina17830258.9%
        Portugal16141738.6%
        Latvia4612038.3%
        Malaysia5314137.6%
        Nigeria8424933.7%
        Embed this chart

        Copy this code into your page. The chart links back here, where the sources are listed.

        Selected companion tools

        Selected companion tools among Linux users in 2024

        Share of eligible users

        Selected companion tools among Linux users in 2024Selected companion tools among Linux users in 2024Windows44.0MacOS26.5Windows Subsystem for Linux (WSL)22.7
        Selected companion tools among Linux users in 2024Selected companion tools among Linux users in 2024Windows44.0MacOS26.5Windows Subsystem for Linux (WSL)22.7

        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
        Selected companion tools among Linux users in 2024
        Companion toolAlso selected toolEligible primary-tool usersCompanion share
        Windows11,07525,16744.0%
        MacOS6,68125,16726.5%
        Windows Subsystem for Linux (WSL)5,71225,16722.7%
        Embed this chart

        Copy this code into your page. The chart links back here, where the sources are listed.

        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.

        Your Work Gym account

        Save your progress and pick up on another device. Your browser's progress comes with you.

        New accounts get 12 hours of full access: every course, unit, project and exam. The clock starts when you open your first lesson.

        Plan your practice from a job ad or syllabus

        Have a referral code?

        or

        You can keep practicing without an account.

        Help and feedback

        Ask a question, tell us what is not working, or share an idea. We reply by email.

        What is it about?

        We use it only to reply to you.