Guide
Freelance client work while employed: check before you start
Plenty of developers start freelancing on evenings and weekends while keeping a job. It is a sensible way to test whether client work suits you. It also puts two sets of obligations side by side, and the one that can hurt is the one you signed first.
This guide is general information, not legal advice. Employment law differs by country and, in the US, by state. If real money or a real risk is involved, a short consultation with an employment lawyer costs less than a dispute.
Start with what you signed
Pull out your offer letter, employment agreement and any policy documents you accepted. Read for five things.
- Outside work or moonlighting clauses. Some contracts ban outside work entirely. Some require permission. Some only ban work for competitors.
- Conflict of interest language. Often a separate policy. It may cover clients, suppliers, or anyone doing business with your employer.
- Invention or IP assignment. Some employment agreements say that work you create belongs to the employer, and the wording can reach beyond work done on company time.
- Confidentiality. What counts as confidential, and whether it covers ideas, customer lists or code you saw at work.
- Non-compete and non-solicit. These can limit who you can work for after, and sometimes during, employment. Whether they can be enforced varies a lot by country and, in the US, by state.
Employer-side guidance shows what these clauses usually look like. A Wolters Kluwer article for employers says basic moonlighting policies generally cover interference with the primary job, conflicts of interest, and the employer's approval of additional employment. Its sample wording includes a clause asking staff to discuss outside work with a supervisor before accepting it, and another requiring written permission for outside work with anyone doing business with the employer. A Lexology article on Canada says employers who worry about moonlighting are advised to put a conflict-of-interest or exclusivity clause in the contract, which works alongside unwritten common law protections such as an employee's duty of loyalty. The first is written for US employers and the second for Canadian ones, so use them as a checklist of what to look for, not as a statement of your rights.
The IP question is the one to understand
The practical fear is simple: you build something for a client or a side project, and your employer claims it. Whether they can depends on the contract and the law where you live.
California has a statute that shows the shape of the issue. Labor Code section 2870 says a provision in an employment agreement that makes you assign an invention to your employer does not apply to an invention you developed entirely on your own time, without the employer's equipment, supplies, facilities or trade secret information. There are two exceptions: inventions that relate to the employer's business or its actual or demonstrably anticipated research and development, and inventions that result from work you did for the employer. The statute also says that to the extent a contract tries to require more than that, the provision is unenforceable as against California public policy.
We opened that text on 2026-10-09. We did not research other states or countries, though some have comparable laws. Do not assume the same protection applies where you are.
What it teaches, wherever you live:
- Doing the work on your own time with your own equipment and accounts is the baseline.
- "Related to the employer's business" is where disputes start. If your day job is e-commerce software and your side client wants an e-commerce plugin, you are close to that line.
- The words in your agreement matter more than a general idea of what is fair.
Conflicts and competitors
The Lexology piece makes the same point from the employer's side: a ban on working for a competing business is often enough for them, while a part-time job in an unrelated field is less likely to hurt the employer if you give your full attention at work. Employers care most about competition and distraction, so avoid:
- Clients who compete with your employer.
- Clients your employer works with, unless you have permission.
- Any use of employer knowledge, contacts or code.
If you freelance in the same niche as your job, ask permission. The answer might be yes, and you will have it recorded.
How to ask permission
Short email to your manager or HR, and keep a copy. For example:
"I'm planning to take a small amount of freelance web development work outside work hours, using my own equipment. It won't involve [company's product area] or any of our clients. Is that okay under my agreement, and is there anything you'd like me to avoid?"
Possible answers: yes, no, or send us the details. Each is useful. A vague verbal "should be fine" is not.
Keep the two lives apart
- Use your own laptop, email address, repository accounts and cloud accounts for client work.
- Do side work outside working hours. Do not take client calls on your employer's time or in their office.
- Never copy employer code, templates or documentation, even "just a pattern".
- Keep your own clients' data off employer systems.
- Do not use your employer's name in your portfolio or pitch without permission.
Protect the side clients too
Your client agreement should say who owns what and when. A common structure is that ownership of the deliverable transfers to the client once they have paid in full, while you keep your own tools and general know-how. State that you are an independent contractor and that you have the right to provide the service, which you will if you did the checks above.
If you have an existing side project, check whether your agreement has a place to list prior inventions or projects, and keep dated proof of what you built before you joined.
Money, tax and status
Freelance income is generally taxable income wherever you live, usually on top of your salary. Rules for registering, invoicing and paying tax differ widely, so check your country's requirements before your first invoice. If you work on an employment-based visa, check whether outside work is allowed at all.
Finding the first client while you have a job
You have less time, so spend it well. Pick one kind of work. Small, well-defined jobs fit around a full-time role better than open-ended builds. Agencies can suit this stage, since they hand you scoped tasks; see subcontracting for agencies as a freelance developer. If you build automations, get your first automation clients without Upwork covers routes that fit evenings. Be honest about your availability with every client, and do not promise same-day replies you cannot give.
Where Thomas Partners fits
Thomas Partners finds client work for freelancers and runs the outreach; you keep most of the profit.
FAQ
Is it legal to freelance while employed?
Often yes, but your contract and local law decide. Look for moonlighting, conflict of interest, IP assignment and non-compete terms.
Can my employer own my side project?
It depends on your agreement and where you live. In California, Labor Code 2870 limits assignment for work done entirely on your own time without employer resources, with exceptions for work related to the employer's business or resulting from your job.
Should I tell my employer?
If the contract requires it, yes. If it is unclear, asking in writing is the safe way to find out.
What if my contract says nothing about outside work?
You may still be bound by implied duties such as confidentiality and loyalty. Avoid competitors and do not use employer resources.
Do I need a lawyer?
For a non-compete, a conflict you are unsure about, or a large side contract, a short review is worth it.
Sources
- California Labor Code section 2870, leginfo.legislature.ca.gov. Opened in full 2026-10-09.
- Wolters Kluwer, "Do You Need an Employee Moonlighting Policy to Protect Your Business?", wolterskluwer.com. Opened in full by Reviewer 2 on 2026-10-09 (US employer guidance; the two sample approval clauses are in it).
- Lexology, "Canada: Performing Other Work on Company Time? How Employers Can Protect Against Moonlighting", dated 2025-09-23. Search excerpt only (first part), Reviewer 2 2026-10-09.
- Internal links (/guides/subcontract-for-agencies-as-a-freelance-developer resolves only after batch 4 is published; /guides/first-automation-clients-without-upwork was fetched live 2026-10-09).
- Not researched: employment law outside California, and the US NLRB position on moonlighting rules.
- /guides/subcontract-for-agencies-as-a-freelance-developer was not confirmed live by Reviewer 2 (batch 4 status unchecked).
Tell me what you build and who you build it for. It takes a few minutes.