C++ statistics: use, countries and companion tools
C++ reached different parts of the Stack Overflow survey sample unevenly. We compute the gaps between respondent groups and countries, and the tools used by the same people. The percentages come from published respondent records and describe this survey sample.
Key findings
- In Stack Overflow's survey samples, the C++ use share changed from 23.1% in 2024 to 23.6% in 2025, a signed difference of +0.5 percentage points. (Stack Overflow)
- Professional developers reported C++ use at 21.8% in 2025, compared with people learning to code at 40.0%: a signed gap of -18.2 percentage points. (Stack Overflow)
- Among country samples with at least one hundred answers, China had the highest C++ share at 41.4% in 2025; Nigeria had 11.6%, a gap of 29.8 percentage points. (Stack Overflow)
- Of C++ users who also answered the companion-tool question in 2025, 75.5% selected Python, versus 61.6% for C: a gap of 13.9 percentage points. (Stack Overflow)
- Professional developers supplied 72.1% of C++ users in the eligible 2025 sample, compared with 78.2% of eligible respondents, a signed difference of -6.0 percentage points. (Stack Overflow)
- The C++ share in China's 2025 sample was 17.8 percentage points above the global survey sample's 23.6%; country samples measure respondents, not national workforces. (Stack Overflow)
Use across survey years
Share reporting use · Survey year
The share changed from 23.1% in 2024 to 23.6% in 2025, a signed difference of +0.5 percentage points. The sample sizes were 59,745 and 31,671.
Each year recruited a different sample, so these answer-based differences don't follow individual developers.
Data table
| Survey year | Reporting use | Answered question | Use share |
|---|---|---|---|
| 2024 | 13,827 | 59,745 | 23.1% |
| 2025 | 7,485 | 31,671 | 23.6% |
Use by respondent group
Share reporting use
Professional developers reported 21.8% and people learning to code reported 40.0%. Their signed difference was -18.2 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 | 5,398 | 24,751 | 21.8% |
| Other respondents | 1,641 | 5,805 | 28.3% |
| Learning to code | 446 | 1,115 | 40.0% |
Country samples with the highest and lowest shares
Share reporting use
- Global survey sample: 23.6
The gap between China and Nigeria was 29.8 percentage points. The chart shows the highest and lowest shares among 52 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 |
|---|---|---|---|
| China | 92 | 222 | 41.4% |
| Viet Nam | 43 | 117 | 36.8% |
| Taiwan | 34 | 100 | 34.0% |
| Thailand | 34 | 103 | 33.0% |
| Ukraine | 120 | 833 | 14.4% |
| Chile | 16 | 113 | 14.2% |
| Mexico | 33 | 243 | 13.6% |
| Nigeria | 17 | 146 | 11.6% |
Selected companion tools
Share of eligible users
Python appeared in 75.5% of eligible C++ users' answers, compared with 61.6% for C. The gap was 13.9 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 |
|---|---|---|---|
| Python | 5,649 | 7,485 | 75.5% |
| C | 4,609 | 7,485 | 61.6% |
| Rust | 1,875 | 7,485 | 25.1% |
How we worked out these numbers
- We count a respondent once when their nonempty use answer includes C++. 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, 2025, and keeps only countries with at least one hundred eligible answers. Companion shares include C++ 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.
- The samples contain different people each year. Question wording, available answer options and recruitment can change; a change in sample share doesn't measure individual switching or growth in the total user population.
- The downloadable snapshot contains 49,191 records, while the published methodology describes 49,009 responses. We use the downloadable snapshot and report each question’s own denominator; we can't reconstruct an unpublished exclusion rule from it.
Common questions
- How many developers use C++?
- In the 2025 Stack Overflow sample, 7,485 of 31,671 eligible respondents reported C++ use, or 23.6%. 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 C++ most?
- China had the highest C++ share among the retained 2025 country samples, at 41.4%, compared with 11.6% 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). C++ statistics: use, countries and companion tools. Updated November 21, 2026. https://theworkgym.com/cpp/statistics/
Download the data (CSV). One row per published figure, with its source and the day we read it.