Copyright Engine
  • Monitoring
  • DMCA Takedowns
LoginStart my copyright
Copyright Engine

Any questions?

We're available Monday through Friday from 9am - 6pm CST

Product

  • Registration
  • Monitoring
  • DMCA Takedowns

Company

  • About
  • Contact

Resources

  • Blog
  • FAQ

Legal

  • Terms of Service
  • Privacy Policy
  • Legal Services Agreement

Copyright Engine provides information and software only. Use of Copyright Engine is subject to our Terms of Service, and Privacy Policy.

The Applicable Fees will be based on the specifics of your application but generally range from $44 and $125 and will be charged and collected at checkout.

  1. Home|
  2. Resource Center|
  3. Software and digital|
  4. Who Owns Code Written by an Employee?

Who Owns Code Written by an Employee?

Written byCopyright Engine

Published on November 20, 2026

Estimated Read Time: 7 minutes

Table of Contents

What decides employer ownership of employee code?How does work made for hire software work?Who counts as an employee?What does "scope of employment" mean?Does code I write outside work hours belong to my employer?Do I need a written agreement for my employer to own employee code?Where do employer ownership disputes show up?How ownership connects to everyone else's rightsYour next step: audit the paperwork behind your code
Who Owns Code Written by an Employee?

Table of Contents

What decides employer ownership of employee code?How does work made for hire software work?Who counts as an employee?What does "scope of employment" mean?Does code I write outside work hours belong to my employer?Do I need a written agreement for my employer to own employee code?Where do employer ownership disputes show up?How ownership connects to everyone else's rightsYour next step: audit the paperwork behind your code

Key Takeaways

  • Code an employee writes within the scope of the job is a work made for hire, so the employer is the author from day one with no paperwork.
  • Test side projects on three points: unrelated to your job, your own equipment and time, and no company data or code used.
  • Read your employment contract for clauses claiming anything related to the company's business, since a contract can reach further than copyright law.
  • Have every employee, intern and early hire sign an invention assignment so ownership holds even if their employee status is questioned.
  • Register the code with the employer named as author and work made for hire checked, since ownership alone doesn't let you sue in federal court.

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.

What decides employer ownership of employee code?

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.

How does work made for hire software work?

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.

Who counts as an employee?

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:

  • who controls how, when and where the work gets done
  • who supplies the tools, equipment and workspace
  • whether the company can assign you new projects
  • how you're paid, and whether it's a salary with benefits and tax withholding
  • how long the relationship lasts

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.

What does "scope of employment" mean?

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.

Does code I write outside work hours belong to my employer?

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:

  • The project has nothing to do with your job duties or your employer's business.
  • You built it on your own equipment, on your own time.
  • You didn't use company data, code, credentials or confidential information.
  • Your contract doesn't claim your side work.

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.

Do I need a written agreement for my employer to own employee code?

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:

  1. It backs up the default rule. If anyone later argues you weren't really an employee, an assignment gives the company a second path to ownership. Code you assigned in writing belongs to the assignee even if work-for-hire fails.
  2. It covers edge cases. Interns, part-timers, founders and early hires without formal titles are the people whose status gets questioned.
  3. It reaches beyond copyright. The same document usually handles patents, trade secrets and confidentiality, which copyright doesn't touch.
  4. It sets boundaries. Good agreements list prior inventions you're keeping, and some states limit how far an employer can reach into off-hours work.

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.

Where do employer ownership disputes show up?

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.

How ownership connects to everyone else's rights

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.

Your next step: audit the paperwork behind your code

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.

Sources

  1. U.S. Copyright Office. Circular 30: Works Made for Hire.
  2. U.S. Copyright Office. Copyright Law of the United States (Title 17).
  3. U.S. Copyright Office. Registration Portal.
Back to the article

Frequently asked questions

No. Code you wrote before employment is yours, and a job doesn't transfer it automatically. Problems start when you add that code to company projects without a written license or assignment. Keep a dated list of your prior work, and ask for it to be carved out in any invention assignment you sign.

It depends on whether the intern counts as an employee under the common law agency factors. Paid interns who work under supervision usually do, while unpaid or loosely managed ones may not. Because the answer is uncertain, companies should have interns sign a written assignment before they start contributing code.

For a work made for hire, copyright lasts 95 years from first publication or 120 years from creation, whichever ends first. That differs from the life of the author plus 70 years that applies to individual authors. In practice, most software becomes obsolete long before the term expires.

Copyright law alone wouldn't give the company code outside your scope of employment, but a signed contract might. Some agreements assign anything related to the company's business, and some states limit how far that can reach. Have an attorney read the clause before you launch a related side project.

No. Ownership begins automatically when the code is written and saved in a file. Registration is a separate step that gives the owner a public record, lets it sue for infringement in federal court, and opens the door to statutory damages and attorney's fees in many cases.

Keep reading

Who Owns a Copyright? Authors, Employers and Joint Owners

Initial copyright ownership belongs to the creator, with two exceptions: employers and joint authors. Here's how ownership works under U.S. copyright law and…

Who Owns Code Written by a Freelance Developer?

Who owns code written by a freelancer? Usually the freelancer, until you have a signed assignment. Here's how work for hire really works for contractors and…

Can You Copyright Code Written with AI Tools?

AI coding assistant copyright protects only what a human authored. Here is how much of your AI-assisted code you can claim, who owns it, and how to document it.