Can an employer use an NDA to claim ownership of code written on personal equipment?
Can an employer claim code written on personal equipment? Learn how IP assignment clauses and state laws dictate ownership. Analyze your contract today.
Can an employer claim ownership of code written on personal equipment?
An employer cannot automatically claim ownership of code written on personal equipment if the work was created entirely on your own time, without using company resources, and does not relate to the employer's current or anticipated business. However, overly broad IP assignment clauses in your employment contract may legally override these protections.
The Legal Framework of IP Assignment
Most employment contracts contain an Invention Assignment Agreement. This clause dictates that any intellectual property (IP) created during your employment belongs to the company. While these clauses are standard, they are not absolute. Their enforceability depends on the intersection of contract law and specific state statutes.
The Three-Pronged Test
In many jurisdictions, for an employer to claim ownership of your personal code, they must prove the work meets specific criteria. If you can demonstrate that your project fails any of these three prongs, the employer’s claim is likely invalid:
- Time: The work was developed entirely on your own time, outside of standard working hours.
- Resources: No company equipment, proprietary data, trade secrets, or software licenses were utilized.
- Relevance: The work does not relate directly to the employer’s business or their anticipated research and development.
Key takeaway: If you use a company-issued laptop to write a single line of code for a side project, you may have inadvertently triggered an assignment clause that grants the employer full ownership of your entire project.
Action Item: Audit your current employment agreement for the phrase "related to the business of the company." If this is defined broadly, your side projects are at higher risk.
State-Specific Statutory Protections
Several U.S. states have enacted laws that explicitly protect an employee's right to their own inventions. These statutes act as a "floor" for your rights, meaning an employer cannot contractually force you to waive these protections.
| State | Key Protection |
|---|---|
| California | Labor Code 2870 protects inventions made on personal time without company resources. |
| Washington | RCW 49.44.140 prevents employers from requiring assignment of personal inventions. |
| Illinois | 765 ILCS 1060/2 limits assignment to work related to the employer's business. |
| New Jersey | N.J.S.A. 34:1B-265 protects inventions developed on personal time. |
Action Item: Check if your state has an "Employee Invention Act." If you reside in a state without these protections, your contract terms are the final word on ownership.
Red Flags in Your Employment Contract
When reviewing your contract, look for these specific red flags that indicate an employer is attempting to overreach their legal rights:
- "All Inventions" Clauses: Language that claims ownership of "all inventions conceived or reduced to practice during the term of employment," regardless of whether they relate to the company.
- Broad Definition of Business: Definitions that include "any business the company may enter into in the future," which effectively captures almost any software project.
- Equipment Clauses: Language that mandates the use of company-approved hardware, which can be used to argue that you used company resources.
Action Item: If you find these clauses, request a "carve-out" or "prior inventions" disclosure form to list your existing side projects and exclude them from the agreement.
Best Practices for Protecting Your IP
To ensure your personal code remains yours, you must maintain a strict separation between your professional and personal work environments.
- Document Everything: Keep a log of hours worked on personal projects to prove they occurred outside of company time.
- Use Personal Hardware: Never install company software or access company repositories on your personal machine.
- Separate Repositories: Use a personal GitHub or GitLab account that is not linked to your corporate email address.
- Disclose Early: If you are starting a significant project, disclose it to your employer in writing to obtain a waiver or acknowledgment that it falls outside your scope of work.
Key takeaway: Documentation is your best defense. If a dispute arises, a clear paper trail showing the project was developed independently is more persuasive than a verbal agreement.
Action Item: Create a "Prior Inventions" document today. List all active side projects and store this document in a secure location to establish a baseline of ownership.
Conclusion
While employers have a legitimate interest in protecting their trade secrets, they do not have a blanket right to your personal creativity. By understanding your state's laws and the specific language in your contract, you can effectively ring-fence your personal projects from corporate claims.
TermScore can automatically analyze your employment contracts to identify aggressive IP assignment clauses and flag potential risks to your personal projects. Upload your document today to get an instant, plain-English breakdown of your ownership rights.
Check a suspicious clause
Paste a sentence or clause from your employment & nda to get an immediate statutory risk audit.
TermScore Legal Intelligence Group
Audited for 2026 StandardsResearched and cross-referenced against statutory codes, judicial rulings, and TermScore's proprietary Corpus of 100,000+ analyzed contracts. Our intelligence unit continuously audits contract enforceability and predatory clause variance across all 50 US jurisdictions.
Get the contract red-flag checklist
Join landlords and freelancers getting clause breakdowns and benchmark data. No spam.
Keep reading
Employment & NDA
Can an employer enforce an NDA to claim ownership of side projects built on personal time?
Employment & NDA
Can my employer claim ownership of my personal side projects if I didn't use company resources?
Employment & NDA
Can an employment NDA legally claim ownership of personal side projects built without company resources?
Employment & NDA
Can an employer use an NDA to restrict listing specific software frameworks on a resume?
Employment & NDA
Can my employer use a confidentiality agreement to block my participation in open-source projects on personal time?
Employment & NDA
Does an employment NDA cover personal side projects created on weekends without company equipment?