C++ vs java vs python salary

This article analyses data from 5,508 software engineering job listings to help you figure out which programming languages have the highest salary.

4 min read

18 Feb, 2022

C++ vs java vs python salary

Software engineers are spoiled for choice when it comes to the variety of jobs available to them at the moment. Almost every industry needs programmers in some capacity, with jobs ranging from web development to ethical hacking. All that variety means there are big differences in pay and availability between different programming languages.

We've analysed data from 5k job listings on RemoteOK (the worlds largest job board) to determine which programming languages are paid the most and the least...

Let’s get started!

Which Programming Languages Pay The Most in 2022?

When searching for a programming language job, it’s important to compare the pay being offered by an employer to averages across the industry. Is the pay much higher than average? Much lower?_ Doing this will help you contextualize the job offer as you start weighing your options and choosing favorites.

Here’s a list of the highest paying programming languages:

  1. Swift: $116,000 median (30 jobs)
  2. Python: $105,000 median (227 jobs)
  3. Golang: $100,000 median (412 jobs)
  4. C++: $100,000 median (61 jobs)
  5. Java: $95,000 median (134 jobs)
  6. Ruby: $95,000 median (474 jobs)
  7. Rust: $88,000 median (13 jobs)
  8. SQL: $85,000 median (147 jobs)

Based on the analysed jobs, Swift has the highest earning potential with median jobs paying around $116k, and frequently earning more than $170k per year. The programming language, which was developed by Apple, was also voted as the "most loved" language in a 2015 Stack Overflow survey.

The Swift language is often used to create iOS and macOS apps, however, listings are rare and on the decline e.g. there were only 30 Swift jobs in our dataset. That means competition is fierce! For a less competitive option, you might want to consider Python or Ruby. Ruby has the highest number of jobs available while offering a solid median compensation rate to programmers.

Based on the Stack Overflow 2021 developer survey, however - the numbers are a little different:

According to the Stack Overflow survey, the highest paying programming languages are:

  • Clojure
  • F#
  • Elixir
  • Erlang
  • Perl

These are all quite niche technologies however which have few jobs - it's a trade off between niche specialism and salary.

Which Programming Languages Pay The Least in 2022?

Now, it’s time to have a look at the other end of the spectrum—which programming languages pay the least?

Here’s a list ranked according to data from 2022:

  1. HTML: $70,000 (48 jobs)
  2. PHP: $75,000 (160 jobs)
  3. Typescript: $80,000 (118 jobs)
  4. JavaScript: $81,000 (436 jobs)

Typically the lowest paid software development roles tend to be for Frontend Developer roles. This is due to simple market dynamics i.e. there are more frontend web developers than their backend equivalents; typically programmers begin learning about web development, before moving on to backend development and architecture. The number of frontend vs backend developers can also be seen in data published by Indeed:

Apart from frontend technologies, PHP roles are often paid comparatively lower.

Once again, you need to strike a balance between earning potential and job availability that you’re comfortable with. PHP and HTML are the least paid and regularly see salaries as low as $50,000. While this might be enough for you, many programmers will opt for more profitable programming languages in order to make the most of their skill.

What are the Most in Demand Programming Languages in 2022?

Pay and job availability aren’t the only ways to analyze the state of the programming job market–we can also investigate which languages are the most in-demand. To do that, we can look at the year-on-year increases in the number of job offerings for a given language.

Here are two up-and-comers:

Typescript: (+391%)

  • 2020: 33 jobs
  • 2021: 162 jobs

SQL: (+158%)

  • 2020: 57 jobs
  • 2021: 147 jobs

The programming languages that have seen the greatest increases in demand are SQL and Typescript. Both of these languages are fairly safe options when it comes to choosing a language with the future in mind.

If we instead consider the number of monthly active users (MAU), the fastest growing programming languages are Javascript, Python and Java:

What are the Least in Demand Programming Languages in 2022?

Just like there are programming languages that experience increases in demand, there are languages that are currently seeing decreases. While there might be an eventual resurgence in interest, it might be a good idea to avoid putting your faith in a programming language that’s currently trending downwards.

Here are two examples of this point:

C++: (-21%)

  • 2020: 77 jobs
  • 2021: 61 jobs

Java: (-17%)

  • 2020: 162 jobs
  • 2021: 134 jobs

Older languages with a heavy enterprise focus, such as C++ and Java, have been falling out of popularity in recent years. Despite the fall in number of jobs, the pay for these jobs is still high (both are in the top 5 paid languages).

These languages are slowly becoming a more niche skillset. Much of the world still runs on C++ and Java, however, so it's unlikely that demand for these languages will disappear any time soon.

We determine a programming language's popularity not by the number of developers, but by the number of jobs. Ultimately, the job market is the best benchmark of a programming language's popularity. With that in mind, let’s look at the most popular programming languages in 2022 based on demand:

  • Javascript:
    • 657 jobs
    • $7B market value
  • Ruby:
    • 426 jobs
    • $5.1B market value
  • Golang:
    • 390 jobs
    • $5.1B market value
  • PHP:
    • 232 jobs
    • $2.2B market value
  • Python:
    • 196 jobs
    • $2.6B market value
  • Typescript:
    • 139 jobs
    • $1.5B market value
  • SQL:
    • 135 jobs
    • $1.6B market value
  • Java:
    • 115 jobs
    • $1.4B market value

If you are looking for the most popular and highest pay in 2022, you can consider Python and Golang, whose median range is $105,000.

If we instead consider the number of monthly active users (MAU), the most popular programming languages are Javascript, Python and Java:

Summary

Well, that’s all for this article on the factors that might impact your decision about which programming languages to learn.

Our recommendation would be to aim for a traditional software development career path i.e. don't try and learn the language which pays the most as your first language. Instead, learn the basics of Frontend Development before experimenting with more advantages backend technologies.

Would you like a 4 day work week?

Join ......... people getting weekly alerts for 4 day week (32hr) jobs👇

Which has higher salary Python or Java?

Jobs and Salary In the US, the median annual salary for Python developers is about $96,000, while for Java developers it is approximately $97,000. Both are very popular so if you become skilled in either, you can start working as a software developer or intern to start your career.

What language pays highest?

Last year, programming language Scala and Java-based Clojure topped the list of highest paying languages. This year, Scala and Clojure still top the charts, earning developers $182,000 and $175,000, respectively.

Is Python or Java better for jobs?

Learning Python language is not a daunting task as having simple syntax to learn. As it is an easier language to learn, it means that the interested people will learn it soon and also use it flawlessly. Thus, the employment opportunity is really higher than the Java programming language.

Which pays more C++ or Python?

C++ vs Python Salaries: C++ According to Indeed, C++ developer salaries average $117,000 a year. Python developer salaries average $109,000 a year. These salaries do vary, but in general, the top-paid C++ developer is likely to make more than the top-paid Python developer.