Foreign engineers and tech staff in China are protected by the same working-hours, overtime and dismissal rules as their Chinese colleagues — and "996" (9am to 9pm, six days a week) is unlawful as a standard schedule. The issues that cause the most damage, though, usually come at the end: a performance dismissal without the process the law requires, a layoff that skips the statutory steps, a non-compete that blocks your next job, or stock options that vanish when you leave.
Who this covers and your legal status
This page is for software engineers, hardware and process engineers, product managers, data scientists, R&D staff and technical specialists at Chinese tech companies, foreign-invested manufacturers and R&D centres, startups and research-driven businesses.
You need a Z visa, a Foreigner's Work Permit (engineers often reach Category A on the points system through salary, degree and experience; otherwise Category B) and a work-type residence permit. The K visa introduced in October 2025 for young STEM talent helps with entry and exchanges but is not itself a work permit. See our work permit guide and China labor law for foreigners.
How employment usually works
Expect a fixed-term contract of two or three years with a probation period (up to two months for a contract of one to three years; up to six months for three years or more). Pay usually includes base salary, a year-end or performance bonus, sometimes a 13th month, and at larger companies a long-term incentive — stock options, RSUs or phantom shares, often granted by an offshore holding company. Contracts typically come with a confidentiality agreement, an invention assignment clause and, for senior or R&D staff, a non-compete.
The most common problems
996, long hours and unpaid overtime
The standard working week is 40 hours. Overtime must be agreed, is generally capped at 1 hour a day (3 hours in special circumstances) and 36 hours a month, and must be paid at 150% on workdays, 200% on rest days (unless time off is given in lieu) and 300% on statutory holidays. A "comprehensive" or "flexible" working hours system is lawful only with labor authority approval and for eligible roles. In 2021 the Supreme People's Court and the Ministry of Human Resources and Social Security published typical cases confirming that a 996 schedule breaches the law. See is 996 legal in China? and our overtime calculator.
Evidence is the key. The employee bears the initial burden of proving overtime, but if the employer controls attendance records, it must produce them or face an adverse inference. Keep screenshots of messages sent late at night, commit logs, access card records and calendar invites. Claims for overtime during employment can generally be brought within one year after employment ends. See unpaid overtime claims.
Non-compete and trade secret claims
A post-employment non-compete is lawful only for senior managers, senior technical staff and others with confidentiality obligations, for up to two years, with monthly compensation after you leave (LCL Art. 23–24). Under SPC Interpretation (II) (effective 1 September 2025), a non-compete with an employee who had no real access to trade secrets or confidential information is not binding, and the scope must be reasonable. If the employer does not pay compensation for three months, you can generally terminate it. Liquidated damages for breaching a valid non-compete can be very large, so understand your position before joining a competitor. Trade secret claims are separate: taking source code, designs or customer data can lead to civil liability under the Anti-Unfair Competition Law and, in serious cases, criminal liability. See non-compete agreements.
Inventions and IP
Inventions you make in the course of your duties, or mainly using company resources, are service inventions owned by the employer under the Patent Law, and you are entitled to an inventor reward and remuneration. Clauses claiming ownership of everything you create, including personal side projects unrelated to the business or made before you joined, go further than the law supports. List pre-existing IP in writing before you start.
Stock options and RSUs
Most tech equity is granted under an offshore plan governed by foreign law. On departure, unvested awards usually lapse and vested options must be exercised within a short window. Whether a Chinese arbitration commission will hear an equity dispute depends on who granted the award and how it is linked to your employment — some tribunals treat it as a labor matter, others send it to civil court or foreign jurisdiction. If you are being terminated, negotiate vesting, exercise windows and leaver status as part of the package. See stock options and SAFE registration.
Layoffs
Tech layoffs in China are often framed as "optimisation". A company cutting 20 or more staff, or fewer than 20 but at least 10% of the workforce, must follow the mass layoff procedure: 30 days' prior explanation to the union or all staff, consulting their views, and reporting to the labor authority (LCL Art. 41). In practice most companies instead offer mutual termination packages at N or N+1 or more. You are not obliged to accept. See mass layoff rules and use our severance calculator.
Performance dismissals and PIPs
A low rating alone is not grounds for dismissal. Under LCL Art. 40(2), the employer must show you were incompetent against objective standards, then provide training or a changed role, and show you remained incompetent — and then pay severance plus one month in lieu of notice. A "last place eliminated" ranking system does not by itself establish incompetence. PIPs are often used to build a file or pressure a resignation. See performance dismissals and pressured to resign.
Relocation, transfers and changed duties
Tech companies reorganise often. A transfer to another city, team or role that materially changes your job is a change to the labor contract, which requires agreement in writing (LCL Art. 35), unless it is a reasonable adjustment the contract and lawful rules already allow. Refusing an unreasonable transfer is not by itself misconduct. For a foreign employee, a new workplace in another city may also require a new work permit. See job or pay changed without consent.
Working for a Chinese company versus a foreign one
Foreign engineers at Chinese tech companies often find HR practices less formal: offer letters that differ from the labor contract, salary partly paid as "reimbursements", and year-end bonuses announced verbally. At foreign-invested companies, the risk is the reverse — detailed global policies that do not match Chinese law, such as at-will termination language or US-style non-competes with no compensation. In both cases, the Chinese labor contract and mandatory Chinese rules prevail over policies that conflict with them.
If a dispute starts
- Keep copies of your contract, offer letter, equity documents and performance reviews — but do not copy source code or confidential company files.
- Answer PIPs and warnings in writing, with facts.
- Do not sign a resignation or "mutual" agreement until you know what you are giving up, including equity and non-compete terms.
- Watch the one-year arbitration limit and your work permit's validity; cancelling a permit too early can leave you without legal status to stay in China.
Red flags before you sign
- A non-compete covering any company in "internet" or "technology" nationwide, or one with no compensation figure.
- "Unlimited overtime" or a salary said to "include all overtime" without an approved hours system.
- An IP clause that captures pre-employment work and personal projects.
- Equity promised in the offer letter but no grant agreement or plan document.
- A long probation that exceeds the statutory limit for your contract term.
- Salary split into base and large "allowances" to lower the social insurance and severance base.
How we help
We advise foreign engineers and tech staff on contracts, overtime claims, non-compete and trade secret risk, equity on exit, and layoff or PIP negotiations. We act in labor arbitration and court. See wrongful termination, severance negotiation and non-compete and trade secrets, or contact us.
Frequently asked questions
Is 996 legal in China?
No, not as a standard schedule. Overtime is generally capped at 36 hours a month and must be paid at 150%, 200% or 300%. The Supreme People's Court and the labor ministry confirmed this in typical cases published in 2021.
How do I prove overtime as a foreign engineer?
Collect work messages, emails, commit logs, access card records and calendar invites. You bear the initial burden, but if the employer holds attendance records and refuses to produce them, the tribunal can draw an adverse inference.
Is my non-compete enforceable if I was a regular developer?
It depends on whether you had real access to trade secrets or confidential information. Since 1 September 2025, courts will not enforce a non-compete against staff without such access, and the scope must be reasonable. Compensation must be paid monthly after you leave.
What happens to my stock options if I'm laid off?
It depends on the plan rules, which are usually governed by foreign law. Unvested awards commonly lapse and vested options have a short exercise window. Negotiate accelerated vesting or an extended window as part of your exit.
Can I be fired for a low performance rating?
Not on that basis alone. The employer must prove incompetence, provide training or a different role, show you remained incompetent, and pay severance plus one month in lieu of notice.
Who owns code I write on weekends?
Work created in performing your duties or mainly with company resources belongs to the employer. Unrelated personal projects built on your own time and equipment generally do not, unless a valid agreement says otherwise. Document them.
How we can help
Unpaid Wages, Overtime & Bonus Claims
Owed salary, overtime, unused annual leave or a withheld bonus? We help employees in China recover what they earned through labor inspection, payment orders and arbitration.
Learn moreWrongful Termination Claims
Fired unlawfully in China? Claim double severance (2N) or reinstatement. We help employees and expats respond, gather evidence, negotiate and win in labor arbitration.
Learn moreNon-Compete, Confidentiality & Trade Secrets
Enforceable non-competes, confidentiality agreements and exit protocols that protect your know-how in China, plus trade secret claims and service-invention (employee IP) advice.
Learn moreSeverance Review & Negotiation
Offered a mutual termination package? We check it against what Chinese law actually entitles you to (N, N+1 or 2N) and negotiate a better exit before you sign.
Learn moreExpat & Foreign Employee Rights
Foreign employees in China are protected by Chinese labor law, provided the job is lawful. We review contracts, fix permit risks and pursue claims, even after you leave China.
Learn moreRead next
Is 996 Legal in China? Working Hours Law Explained
No. A 996 schedule (9am to 9pm, six days a week) breaks China's statutory limits on working hours and overtime, and the Supreme People's Court and MOHRSS said so expressly in 2021. Here is what the law allows, what employees can claim and what employers risk.
Read moreOvertime Pay in China: 150%, 200% and 300% Rules Explained
Chinese law requires overtime pay at 150% on workdays, 200% on rest days (unless time off is given) and 300% on statutory holidays. Here is how the rates, caps, special working-hour systems and calculation base work in practice.
Read moreNon-Compete Agreements in China: Compensation, Scope and Enforcement
Chinese non-competes are enforceable only for staff with real access to confidential information, for up to two years, and only if the employer pays monthly compensation. We explain the 30% fallback, release rules, liquidated damages and how SPC Interpretation II narrows the scope.
Read moreTerminating an Underperforming Employee in China
Poor performance alone is not a ground for dismissal in China. Under LCL Art. 40(2) an employer must show incompetence against objective standards, provide training or a job adjustment, show the employee is still incompetent, and then pay N+1. Here is how to run the process — and where PIPs go wrong.
Read moreMass Layoffs in China: The 20-Employee / 10% Rule
Cutting 20 or more employees in China — or fewer than 20 but at least 10% of the workforce — is an economic layoff under LCL Art. 41, with statutory conditions, a 30-day consultation, a report to the labor authority and retention priorities. Here is how the rule works and why most employers use negotiated separations instead.
Read moreEmployee Stock Options in China: SAFE Registration and Tax
Employees in China who receive options or RSUs from an overseas-listed parent must be registered with SAFE under Circular 7 through a domestic agent, and gains are taxed as wages. We explain the listed and unlisted routes, the separate-calculation tax policy, and how leaver provisions interact with Chinese labor law.
Read more