Published on November 20, 2026
Estimated Read Time: 8 minutes
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 what to put in writing.
Who owns code written by a freelancer? Unless a signed written agreement says otherwise, the freelancer does. Copyright belongs to whoever writes the code, and a contractor isn't your employee. To become the owner, you need a signed assignment or a qualifying work-for-hire agreement, in writing.
That surprises a lot of founders. You paid the invoice, the app runs your business, and the code feels like yours. Legally, though, payment buys you the finished product and (at best) permission to use it. It doesn't transfer the copyright.
This guide covers the rules for independent contractors only. If the developer is on your payroll, a different default applies, and we explain it in who owns code written by an employee.
Not automatically. Under the Copyright Act of 1976, copyright vests in the "author" the moment code is fixed in a file, and 17 U.S.C. § 201(a) says it belongs initially to that author. For a freelancer, the author is the freelancer.
The big exception is work made for hire. When an employer's employee writes code within the scope of the job, the employer is treated as the author from day one. Freelancers sit outside that default. The Supreme Court's decision in CCNV v. Reid settled that a hired party counts as an employee only under ordinary agency law, which looks at things like who controls the work, who supplies the tools, and whether benefits and taxes are handled like a staff job.
A typical freelancer fails that test. They use their own laptop, set their own hours, invoice you, and work for other clients too. So the default result is simple: the developer owns the code, and you hold, at most, a license to use it.
Courts often find an implied, nonexclusive license when you paid for code and the developer handed it over for your use. That lets you run the software. It may not let you modify it, resell it, sublicense it, or stop the developer from giving the same code to a competitor. Nonexclusive means exactly what it says.
No, and this is where most agreements go wrong. A contract can't simply declare that a freelancer's output is work made for hire and make it true. Section 101 of the Copyright Act allows a commissioned work to be work made for hire only if two things happen. First, the work must fit one of nine listed categories. Second, both sides must sign a written instrument saying so.
The nine categories include a contribution to a collective work, part of a motion picture or other audiovisual work, a translation, a supplementary work, a compilation, an instructional text, a test, answer material for a test, and an atlas. Standalone software doesn't appear on that list. Some code can be squeezed into a category, such as code that's part of an audiovisual work, but you shouldn't count on it.
That's why a clause reading "all work is work made for hire" is only half a solution for freelance developer work for hire software projects. It may fail on the category requirement, and then you're left with nothing unless the contract has a backup.
Good contracts say the work is made for hire to the extent the law allows, and, if it isn't, the developer assigns all rights to the client. The second half does the real work. It turns a weak theory into a transfer that holds up in either case.
Yes. Section 204(a) requires that any transfer of copyright ownership be in writing and signed by the owner of the rights being transferred. A handshake, an email thread saying "it's all yours," or an invoice marked paid in full isn't enough on its own. Some signed emails have been held to satisfy the rule, but that's an argument you'd rather not have to make in court.
A solid assignment names the work clearly, transfers all right, title and interest in the copyright, and is signed by the developer. It should also cover code written before the contract was signed, if the project started on a trial basis.
One more detail. Because an assignment is a transfer rather than work made for hire, the author (or heirs) can terminate it after 35 years under 17 U.S.C. § 203. That's a long runway, and most startups won't be around to worry. Work-for-hire status avoids termination rights, which is one reason lawyers like to pair the two clauses.
Think of the contract as the document that settles contractor software ownership copyright questions before they become disputes. A few clauses carry most of the weight:
Open-source components deserve their own scrutiny, since their licenses travel with your product. We break those terms down in the guide to open source licenses, so check that before you sign off on a dependency list.
For a broader pre-launch review that covers contractor agreements alongside everything else, the copyright checklist for developers and startups is a good companion.
It depends on what your contract says, and that's exactly why you should address it. If you hold a full assignment, the developer can't reuse the specific code you own without your permission. But they can reuse their general skills, ideas, and any code they wrote before your project and kept for themselves.
Many freelancers keep a personal toolkit of utilities and boilerplate. A reasonable arrangement is for them to retain ownership of that toolkit and give you a perpetual, irrevocable license to use whatever of it appears in your deliverables. You get what you need, and they keep their tools.
If the contract says nothing, the developer owns everything and can reuse all of it, including parts you thought were custom. A reuse clause is cheap insurance.
If your freelancer used an AI assistant, ownership gets another layer, since purely machine-generated material may not qualify for copyright at all. That topic has its own treatment in copyright for code written with AI tools. Ask your developer to disclose AI use in the contract.
You can fix it after the fact. Ask the developer to sign a written assignment now, ideally with a short confirmation that it covers all work done to date. Pay a modest fee if needed. It's far cheaper than a dispute later, especially before you raise money, sell the company, or face an investor's due diligence.
Be careful with one thing. A retroactive assignment can transfer ownership, but it can't create work-for-hire status for work that was never covered by a signed instrument. Treat it as an assignment and word it that way.
If the developer has vanished, or the situation involves a dispute, joint authorship, or a foreign contractor, talk to a copyright attorney. Those edge cases turn on facts, and this article is legal information, not legal advice.
Pull out your contract this week and look for two things: a signed assignment and a list of third-party code. If either is missing, send the developer a short assignment to sign. Once ownership is clean, register the code so your rights are on the public record. Copyright Engine prepares and files it for you (the Copyright Office fee is $45 for a Single Application and $65 for a Standard Application). The registration process itself is covered by the Copyright Office's registration page.