On a rainy Tuesday morning in Beijing, a French data scientist named Claire noticed a new line item on her payslip: “五险一金.” Her Chinese colleagues laughed and said, “It’s complicated.” That’s an understatement. For foreign professionals in China, the social insurance system often feels like a maze. To make matters worse, most HR materials are in Chinese. This guide walks you through the essentials – what it is, what you must pay, and what happens when you leave.

What Is the “Five Social Insurances and One Housing Fund”?
The “五险一金” (wǔ xiǎn yī jīn) is a set of five mandatory social insurances plus a housing fund. Here’s what each component covers:
- Pension insurance (养老保险) – provides a monthly pension after retirement. You will not receive the employer-paid portion if you leave early.
- Medical insurance (医疗保险) – covers basic medical expenses, including outpatient visits, hospital stays, and prescription drugs within the national reimbursement list.
- Unemployment insurance (失业保险) – pays a temporary allowance if you lose your job and have paid contributions for at least one year.
- Work-related injury insurance (工伤保险) – covers medical costs and compensation for work-related accidents. Purely funded by the employer.
- Maternity insurance (生育保险) – covers maternity fees and provides a maternity allowance. In many cities, this has been merged into medical insurance.
- Housing fund (住房公积金) – a compulsory savings scheme for housing-related needs such as renting, buying, or renovating a home.
Your employer and you pay a percentage of your monthly salary into each account. Contribution rates vary by city. For example, in Shanghai, the employee-side pension contribution is 8%, medical is 2%, unemployment is 0.5%, and the housing fund is 5–12% (depending on the employer’s chosen rate). Employer contributions are often two to three times higher, making the social insurance package a significant part of your total compensation in China.
Foreign Employees and Social Insurance: The Legal Basis
The legal foundation is the Interim Measures for the Participation of Foreigners Employed in China in Social Insurance (Decree No. 16 of the Ministry of Human Resources and Social Security), which took effect in 2011. Under these rules, any foreigner with a valid work permit or foreign expert certificate must be enrolled in social insurance within 30 days of starting work. Failure to do so can result in fines for both the employer and the employee, so no legitimate company will skip it.
A common misunderstanding is that foreign employees can simply refuse to pay. That is not true. The law overrides any contract clause that tries to waive social insurance. However, China has signed bilateral social security agreements with several countries, including Germany, South Korea, Japan, Denmark, Finland, Canada, Switzerland, the Netherlands, France, Spain, and Luxembourg. These agreements can exempt you from certain contributions, usually pension and unemployment, but you need to obtain a certificate of coverage from your home country’s social security authority and submit it to the Chinese agency.
What Foreign Employees Are Actually Required to Pay?
Under the national framework, all five insurances are mandatory. But the housing fund is a different story. The national Housing Provident Fund Regulations technically apply to every employee, but implementation is uneven. In Beijing and Shanghai, foreign employees are required to contribute to the housing fund. In some other cities, it is voluntary, and only company policy determines whether you participate.
So, in practice:
- Mandatory everywhere: pension, medical, unemployment, work-related injury, and maternity insurance.
- Possible mandatory or optional: housing fund, depending on local city rules.
- Exemptible: pension and unemployment contributions under bilateral social security agreements.
To check your exact obligations, ask your HR for the latest local social insurance ratios. Many companies provide employees with a “social insurance card” (社保卡) and an online app to verify contribution records.
Leaving China? Withdrawing or Transferring Your Social Insurance
One of the first questions foreign employees ask is whether they can get the money back when they leave. The short answer is: partly, yes.
If you leave China before reaching the legal retirement age, you can apply to terminate your pension relationship and withdraw the employee-funded balance in your pension account. The employer-funded portion stays in the local social pool and cannot be refunded. Similarly, your medical insurance personal account balance can be withdrawn. The housing fund, however, is more generous: you receive both your own contributions and your employer’s contributions after closing the account.

Here is the typical process, which is now largely digitalized in major cities:
- Notify your employer of your departure and obtain a resignation or release letter.
- Gather your passport, work permit, and bank account details.
- Submit a “social insurance termination and refund” application either at the local social security service hall or through the official government app, such as 12333 or Alipay.
- For the housing fund, use the housing fund center’s app or website to apply for a full withdrawal.
Processing takes roughly 10–20 working days. Money is generally transferred to your home country bank account if you provide one, or to a Chinese bank account that you can later transfer. Some cities allow you to keep your pension account open and claim it when you reach 60 or 55 (depending on gender), but the amount may shrink due to inflation, and the administrative hassle after you leave is considerable. Most expats choose the one-time cash-out.
Social Insurance vs. Commercial Insurance: A Smart Mix
China’s social insurance is designed to be a safety net, not a comprehensive medical plan. The medical insurance system has annual deductibles, reimbursement caps, and a catalogue of allowed drugs and treatments. Expensive imported drugs, dental work, private hospital VIP rooms, and long-term rehabilitation are often not covered.
For this reason, experienced expats usually build a two-layer protection:
- Layer 1: Mandatory social insurance – for compliance and basic domestic coverage.
- Layer 2: Private commercial health insurance – for broader inpatient care, high-cost drugs, and access to top-tier hospitals.
When choosing a commercial policy, look for coverage that includes international clinics and emergency evacuation. Also note that most carriers in China exclude pre-existing conditions and do not cover retirement benefits, so buy early while your medical history is clean.
Common Questions from Foreign Employees
Can I opt out if my contract says I don’t want social insurance?
No. Waiving social insurance is against Chinese law. Any contract clause that attempts to waive it is null and void. Employers can be fined up to three times the amount they should have paid, so companies generally enforce registration.
I am from a bilateral agreement country. Do I need to do anything special?
Yes. You must apply for a certificate of coverage from your home country’s social security authority. Without that paper, your employer will still be required to deduct pension and unemployment contributions. Once the certificate is approved, those contributions stop, but you still pay for medical and injury insurance.
How much money will I actually get back when I leave?
Let’s use a typical example: an engineer earning RMB 30,000 per month in Shanghai for three years. Employee pension contribution is 8% per month, so personal pension deposits equal 72,000 RMB plus interest. After tax adjustments, the refund might be around 75,000 RMB. The housing fund, at a 10% combined rate, could add another 108,000 RMB (employee and employer portions). These are meaningful sums, so always apply.
Can I transfer my pension to my home country’s system?
No. There is no transfer agreement between social security systems. The only options are to withdraw your personal share or leave the account frozen until China’s retirement age. Withdrawing is almost always the rational choice.
Final Thoughts
China’s social insurance system is one of the most organized in Asia, and it is becoming easier for foreigners to navigate. Mobile apps now track your balance, and HR departments in international companies are used to these questions. The golden rule is: always confirm the latest local policies with your HR or the local social security bureau, because rules differ by city and change frequently.
Mark, our opening scene’s British engineer, eventually got the hang of it. His monthly contribution now funds a decent medical card and a housing fund that he can cash out when his contract ends. Rather than being a deduction, it’s a forced savings plan and a legal ticket to living and working in China.





















Start the discussion at forum.chinacomes.com