Published on November 20, 2026
Estimated Read Time: 7 minutes
Employer ownership of employee code is the default under U.S. copyright law when a developer writes software within the scope of the job. Here's where that rule stops and what a written agreement adds.
If you write code as a regular employee, as part of your job, your employer owns the copyright from the moment you write it. The law treats that code as a "work made for hire," so the company is the legal author. You don't need to sign anything for that default rule to apply.
That's the short version, and it covers most salaried developers. The details matter when the job is fuzzy, the work happens at night, or the paperwork says something different. Employer ownership of employee code is a rule with a few well-defined edges, and those edges are where disputes start.
This article walks through how the rule works, where it stops, and what a written agreement adds. It's legal information, not legal advice, so take a real edge case to a copyright attorney.
Two sentences in the Copyright Act of 1976 do the heavy lifting. Under 17 U.S.C. § 201(b), when a work is made for hire, the employer is considered the author and owns everything unless both sides sign a paper saying otherwise. Under 17 U.S.C. § 101, a work made for hire includes "a work prepared by an employee within the scope of his or her employment."
So the question isn't really "who typed the code?" It's two narrower questions. Was the person an employee? And was the code written within the scope of that employment? If both answers are yes, the company is the author and the first owner. The developer never owned it, so nothing needs to be transferred.
That's different from most creative work. A painter owns a painting the second it's finished. A salaried engineer doesn't own the feature they ship on Tuesday.
Work made for hire software follows the same two-part test as any other employee work. Courts look at both parts, and the second one causes most of the arguments.
The Supreme Court answered this in Community for Creative Non-Violence v. Reid, and it didn't use the label on your offer letter. It used the general common law of agency, which weighs things like:
A full-time developer on payroll, using company laptops and answering to a manager, is almost always an employee. A person who invoices you, picks their own hours and uses their own machine looks like an independent contractor, and that's a different story entirely. For contractors, read who owns code written by a freelance developer, because the default flips.
Courts generally ask whether the work is the kind of thing you were hired to do, whether it happened mostly within normal working time and place, and whether you wrote it at least partly to serve the employer. Code written on the job copyright questions usually turn on those three points.
A backend engineer building the payments API at work is squarely inside the scope. The same engineer sketching a personal recipe app on a Saturday probably isn't. In between, it gets messy.
Usually not, but "usually" is carrying weight in that sentence.
Writing code at 11 p.m. on your own laptop doesn't automatically put it outside the scope of employment. If you're finishing the ticket you were assigned that day, your employer still owns it. The clock isn't the test. The subject matter and purpose are.
Side projects are safer when they meet all of these conditions:
That last bullet is the trap. Plenty of employment contracts reach beyond the scope of employment and claim anything "related to the company's business," or anything you create while employed. Copyright law itself wouldn't give the company that code, but a signed contract might. Read what you signed before you start a side project in the same field as your day job.
For a true employee, no. The work-for-hire rule applies automatically, with or without a contract. But a written agreement is still worth having, and most companies insist on one.
An employee invention assignment agreement does a few things the statute doesn't:
If you've inherited a codebase from a company that never had people sign these, it's worth fixing now. Getting a signed assignment from a former employee years later is a lot harder than getting it on day one.
The same logic applies if you're the developer. A contract that says "I assign all rights" in broad terms can sweep in more than you realize. Check the carve-outs.
A few situations come up again and again.
Code you wrote before you were hired. You own it. Bringing it into the company's repository without a license can still create trouble, because the company may end up relying on code it doesn't own. Document what's yours before your first day.
Remote work and personal devices. Working from your kitchen table doesn't change your status. Scope of employment is about the work, not the address.
Open-source contributions. If you contribute to an open-source project on company time, the company usually owns the contribution and has to approve the license. Many employers have a written policy, so ask.
AI-assisted code. If a model wrote part of the code, the employer's ownership only reaches the human-authored contribution. That's a separate question covered in whether you can copyright code written with AI tools.
Leaving the job. You can take your skills with you, but not the company's code. Copying the repository on your way out is infringement and often a breach of contract too.
Work made for hire is one of several ways ownership gets decided. Authors, joint authors, employers and assignees each follow their own rules, and the broader picture is in our overview of who owns a copyright.
One more detail worth knowing: ownership and registration are different things. Your employer owns the code the moment it's fixed in a file, but the owner still has to register before it can sue for infringement in federal court. When the application is filed, the employer is named as the author and the box for "work made for hire" is checked. The Copyright Office explains the doctrine in its circular on works made for hire.
Registration also affects the clock. Work made for hire lasts 95 years from publication or 120 years from creation, whichever ends first, which is different from the life-plus-70 term for an individual author.
Whether you're the employer or the developer, spend an hour this week on three documents. Pull the employment agreement and any invention assignment, find the clause about intellectual property, and note whether it covers off-hours work. Then list the code in your product that came from people who weren't employees, because that's where gaps hide.
Once ownership is clean, protect it. The steps for filing are in our guide on how to copyright source code. Copyright Engine prepares and files the application for you, so you can skip learning eCO, with the employer correctly named as author.