For instance: Average salary for tech in Germany is roughly twice as high as in Spain, even though they are working in the same market zone and have comparable workers protection. Though there are some differences in fiscal policy like for instance Vat tax (Spain 21% for service industry, Germany 19%).
I believe the main reason why the USA have such a high salary in comparison is because of a few factors: Most importantly a huge zone speaking one single language that by now is spoken throughout the world, leading to a much bigger initial market, thus making it easier to create start ups and selling your goods. So you can easily invest in R&D.
Additionally, silicon valley is home to huge monopolies/duopolies like Google, Apple, Intel etc. And while these might hurt competition and the market as a whole, they also increase the demand for labour in the US.
Another contributing factor, though I don't have any numbers to back it up is that higher education is a privilege in the US whereas in Germany it is a commodity.
There’s a few reasons why EU compensation is so low. One is it’s expensive to hire a person in the EU. We have to pay a lot in taxes on the employees behalf. They never see this on their check stub - it’s paid as part of a payroll tax. We have these in the USA as well but much lower and parts of it phase out as the employee earns more. Keep in mind that the USA employee may have to cover certain things like part of their health care though.
Secondly it’s far more difficult to get rid of an EU employee. We can of course, but it can be more expensive.
People make more in the USA and it’s a reason a lot of people from EU/UK come here to work in professional roles. Lower taxes and lower costs of employing someone send the money to the employee. But also a lot of the covered benefits (health, pension, etc) the USA employee has to cover themselves out of their pay (pre-tax though). So in part it’s a visibility thing too.
But to answer your question: In Germany, what the company actually ends up paying is about 20% higher than what you have in your contract. The company pays part of your unemployment insurance, healthcare insurance and some other contributions/taxes employees don't get to see. Your own contributions are usually around 40%. If a company pays 100k in total you end up with ~50k in your pocket after taxes/contributions.
I also feel that tech salaries in some regions of the US are a bit disconnected from what is happening in the rest of the world.