\n\nHave salaries changed from last year? According to our survey, developers are earning more overall, in all countries, with median salaries that are on average 25% higher than last year in locations such as London and San Francisco. Some of this increase is because we changed \u003Ca href=\"https://insights.stackoverflow.com/survey/2018#methodology\">how we handled trimming the highest salaries\u003C/a> from our dataset; we decided we were overzealous in trimming high salaries last year. While we are \u003Cstrong>not\u003C/strong> saying that developers all over the world saw raises that big this past year, we do see evidence that developer salaries are increasing in all locations compared to last year.\n\nIn addition to these five countries, the comprehensive responses to this year's survey have allowed us to build models that cover eight additional new countries:\n\n\u003Cul>\n \u003Cli>Australia\u003C/li>\n \u003Cli>Brazil\u003C/li>\n \u003Cli>India\u003C/li>\n \u003Cli>Netherlands\u003C/li>\n \u003Cli>Poland\u003C/li>\n \u003Cli>Russia\u003C/li>\n \u003Cli>Spain\u003C/li>\n \u003Cli>Sweden\u003C/li>\n\u003C/ul>\n\nEven within any given country, developer salaries can vary from city to city. In the UK, for example, our survey results indicate that developers in London earn over 20% more than developers in the rest of the UK. That being said, our dataset is not able to distinguish between cities that have around the average salary for any given country, to give individual predictions for all cities. To illustrate this, let's look at the United States.\n\n\u003Cimg class=\"aligncenter size-large wp-image-9455\" src=\"https://stackoverflow.blog/wp-content/uploads/2018/08/us_boxplot-1-1080x675.png\" alt=\"\" width=\"1024\" height=\"640\" />\n\nThis plot shows the distribution of salaries in USD for the top 10 metro areas in the US by number of respondents. (Notice that the y-axis is on a log scale.) The cities are ordered from the lowest median salary (Minneapolis) to the highest median salary (the San Francisco area). Take a look at this graph and see how close together the median salaries for cities like Chicago, Dallas, Denver, Portland, Boston, and even Austin are. In our modeling, the data we have only supports a statistically different salary for the cities shown in orange. San Francisco, Seattle, and New York have developer salaries that are high enough compared to typical US norms \u003Cem>and\u003C/em> enough developers working there that we can confidently predict a different salary for a developer living in one of these cities than the US in general. For developers living in cities like Chicago or Boston, salaries are just about the same as what is typical for the US overall, so we can't build a confident, separate prediction for each of these cities. You might look at this plot and wonder about cities with salaries that appear slightly lower like Minneapolis, but there we had fewer respondents, so again we can't build a confident, separate prediction. In the US, we have individual city-level predictions for San Francisco, Seattle, and New York, and then a country-level prediction that covers the rest of the US. This same pattern holds true in other countries including France, Germany, and Canada, for the same reasons.\n\nOn our survey this year, we asked respondents what city they lived in via a free text field. We used standard text mining and data cleaning approaches to deal with this data, and included suburbs within larger metro areas. For example, the San Francisco Bay Area here includes respondents who said they live in San Jose, Mountain View, Sunnyvale, Oakland, etc., while Potsdam respondents are included in Berlin, and so forth.\n\nLast year, we asked users to help us improve our salary calculator by confidentially sharing salary information with us in the calculator itself. This salary survey was 100% private and never appeared on any profile on our site or was shared with employers. We tried using this dataset to refine the salary calculator and build a better salary model, but it turned out that data collected in this way was less useful than our annual Developer Survey. The two main reasons were the geographical coverage we had and the number of responses. We want to send our thanks to every user who shared their data with us through the salary calculator; we appreciate your interest and trust. Since we won't be using that data, we will stop collecting salary data through our salary calculator and we will delete the data we already have, according to our \u003Ca href=\"https://stackoverflow.com/legal/privacy-policy\">data policies\u003C/a>.\n\n\u003Ch2>Which types of developers make more money?\u003C/h2>\n\nAnother important factor that affects how much a developer is paid is what kind of work they do.\n\n\u003Cimg class=\"aligncenter size-large wp-image-9452\" src=\"https://stackoverflow.blog/wp-content/uploads/2018/08/devtype-1-844x675.png\" alt=\"\" width=\"844\" height=\"675\" />\n\nIn all these countries, DevOps specialists are the top earners. We also often see the same handful of developer roles near the top vs. the bottom of the range in each country. In our annual survey, we expect to sample differently along the distributions of experience, education, developer role, and other characteristics. Do embedded developers make relatively more in Germany than the United States, or do they as a population have more experience there? Can the high salaries of data scientists be accounted for by high education levels alone? To account for this and make the most confident predictions for our users, we built a model for salary that accounts for all of these characteristics at once. In the end, some developer roles such as DevOps are associated with higher salaries, some developer roles such as QA are associated with lower salaries, and many are not associated with any change from baseline, i.e., from the typical developer salary in any given country.\n\nThe specific technologies that developers use also impact salary. This year, the technologies most associated with high salary include Go, Scala, Redis, and React. These are also some of the \u003Ca href=\"https://insights.stackoverflow.com/survey/2018#most-loved-dreaded-and-wanted\">most loved technologies\u003C/a> this year. As a data scientist, I would love to know how much of that relationship is causal, and which direction it goes in! Just like last year, some technologies like PHP are associated with lower salaries for developers, and some technologies like JavaScript are used so broadly that they do not affect salary up \u003Cem>or\u003C/em> down.\n\n\u003Ca href=\"https://stackoverflow.com/jobs?utm_source=so-owned&utm_medium=blog&utm_campaign=jobs2019&utm_content=headhunters\">\u003Cimg class=\"aligncenter size-full wp-image-11745\" src=\"https://stackoverflow.blog/wp-content/uploads/2017/05/Ad-5-Sidebar@2x-2-copy.png\" alt=\"\" width=\"600\" height=\"500\" />\u003C/a>\n\n\u003Ch2>Building a model\u003C/h2>\n\nWe again this year used \u003Ca href=\"https://stats.stackexchange.com/questions/17336/how-exactly-does-one-control-for-other-variables\">multiple linear regression\u003C/a> to predict salary from the model inputs, with \u003Ca href=\"https://stats.stackexchange.com/questions/74542/why-does-the-lasso-provide-variable-selection\">regularization to help with variable selection\u003C/a>, (i.e. which of the many technologies and developer roles we asked about on the survey are important predictors for salary). The salaries are modeled on a log scale, because the salary distributions are log-normal (as such distributions often are) with a long tail of very high salaries.\n\nIn this salary calculator, we report a predicted salary for the location, education, experience, and other information you enter. We also report a \u003Ca href=\"https://stats.stackexchange.com/questions/16493/difference-between-confidence-intervals-and-prediction-intervals\">50% prediction interval\u003C/a>. The specific statistical meaning of this interval is that we expect 50% of people with the same characteristics as you to have salaries within that range; it spans the 25th to 75th percentiles. The interval is just as important as the prediction itself (the 50th percentile), because it gives you an understanding of what the range of expected salaries could be.\n\nThis year, we built two models, one for countries with higher incomes and one for countries with lower incomes. We were able to achieve better salary predictions for developers in all countries with this approach, in terms of how well the models fit the data, compared to either building one model for all countries, building separate models for each country, or other approaches. One way we can evaluate how well a model fits data is to look at residuals, the differences between the predicted salaries and the known salaries for the dataset we used for modeling. Let’s look at the residuals for the countries and individual cities supported in the 2018 update to our salary calculator.\n\n\u003Cimg class=\"aligncenter size-large wp-image-9453\" src=\"https://stackoverflow.blog/wp-content/uploads/2018/08/residuals-1-810x675.png\" alt=\"\" width=\"810\" height=\"675\" />\n\nThe residuals look pretty good overall, although there are a couple of things to notice and keep in mind. First of all, notice that the residuals are much higher for countries with lower incomes like India than countries with higher incomes like Sweden. We cannot predict incomes as accurately in countries with lower incomes. Second, notice the shape of the residuals for some countries such as the United States; there is less variation in the residuals at high salary than at low salary. Another way to say this is that the variance of the residuals isn’t constant, and this is called \u003Ca href=\"https://stats.stackexchange.com/questions/52089/what-does-having-constant-variance-in-a-linear-regression-model-mean\">heteroscedasticity\u003C/a>. It means that our dataset doesn’t quite meet the underlying assumptions of our model. In real life, developer salaries depend on \u003Cem>both\u003C/em> the characteristics we have taken into account in our model \u003Cem>and\u003C/em> other complex factors, some of which involve mild violations of the assumptions of our modeling. These are some of the limitations of our results, but the salaries and prediction intervals that we are reporting in our calculator this year offer reliable insight for developer salaries around the world.\n\nThis plot shows residuals and fitted salaries on a log scale, but salaries in the calculator itself are reported in natural units and the appropriate local currency for each user.\n\n\u003Ch2>Try it out\u003C/h2>\n\nCheck out the \u003Ca href=\"https://stackoverflow.com/jobs/salary\">Stack Overflow Salary Calculator\u003C/a> and learn more about what developers are earning! As a developer, you can explore the range of potential salaries for your own background and technical skills, and find specific recommended jobs relevant for you. As an employer, you can learn more about the competitive marketplace for developers’ skills.\n\nQuestions? Comments? Head over to \u003Ca href=\"https://meta.stackoverflow.com/\">Meta\u003C/a> now and use the \u003Ccode>salary-calculator\u003C/code> tag.","html","2018-09-05T04:00:22.000Z",{"current":498},"developer-salaries-in-2018-updating-the-stack-overflow-salary-calculator",[500,508,513],{"_createdAt":501,"_id":502,"_rev":503,"_type":504,"_updatedAt":501,"slug":505,"title":507},"2023-05-23T16:43:21Z","wp-tagcat-announcements","9HpbCsT2tq0xwozQfkc4ih","blogTag",{"current":506},"announcements","Announcements",{"_createdAt":501,"_id":509,"_rev":503,"_type":504,"_updatedAt":501,"slug":510,"title":512},"wp-tagcat-insights",{"current":511},"insights","Insights",{"_createdAt":501,"_id":514,"_rev":503,"_type":504,"_updatedAt":501,"slug":515,"title":517},"wp-tagcat-survey",{"current":516},"survey","Survey","Developer Salaries in 2018: Updating the Stack Overflow Salary Calculator",[520,522,528,534],{"_id":16,"publishedAt":17,"slug":521,"sponsored":12,"title":20},{"_type":10,"current":19},{"_id":523,"publishedAt":524,"slug":525,"sponsored":12,"title":527},"f0807820-02d7-4fc5-845f-3d76514b81c0","2025-08-11T16:00:00.000Z",{"_type":10,"current":526},"renewing-chat-on-stack-overflow","Renewing Chat on Stack Overflow ",{"_id":529,"publishedAt":530,"slug":531,"sponsored":12,"title":533},"e33464c4-b21b-4019-8b86-64a46335a95e","2025-08-07T16:00:00.000Z",{"_type":10,"current":532},"a-new-worst-coder-has-entered-the-chat-vibe-coding-without-code-knowledge","A new worst coder has entered the chat: vibe coding without code knowledge",{"_id":535,"publishedAt":536,"slug":537,"sponsored":12,"title":539},"8b04b236-51d5-4747-9de8-2fe6e6a2512e","2025-08-04T16:00:00.000Z",{"_type":10,"current":538},"cross-pollination-as-a-strategic-advantage-for-forward-thinking-organizations","Cross-pollination as a strategic advantage for forward-thinking organizations",{"count":541,"lastTimestamp":542},52,"2023-05-25T09:46:41Z",["Reactive",544],{"$sarticleModal":492},["Set"],["ShallowReactive",547],{"sanity-doFEaGLO47AL4ZcaVTePU0PmBU2-9JcmJCa7SPPIKoQ":-1,"sanity-comment-wp-post-9451-1755698344164":-1},"/2018/09/05/developer-salaries-in-2018-updating-the-stack-overflow-salary-calculator/?cb=1"]