Social security (as tax systems) cannot be harmonized because the countries are distinct historically, structural, and political. Differences are in the bases, in the rates and exemptions, in the pension schemes and if there is maximum contribution per period. In most cases, social systems are favourable for small incomes. For workers who are flexible, it is possible to reduce social charges by foreign employment and posting, which is possible because of the right of free movement.
EU regulation 883/2004 and regulation 987/2009 deal with the coordination of social systems between the EU member states and with associated countries. For example, Switzerland has introduced the rules 2012 with the “Wegleitung für die Versicherungspflicht” (WVP).