Short answer: Under U.S. copyright law, code written by your own employee as part of their job belongs to you, but code written by an outside developer (a freelancer, agency, or software company) generally belongs to that developer unless a written agreement signed by them transfers ownership to you. Software usually doesn't fit the narrow categories that can be made a work made for hire by contract, so the agreement should include a written assignment. Have an attorney review it, and make sure your domain, hosting, and code repository are in your own name.
Key facts
- Employees: work an employee creates within the scope of their job is a "work made for hire," and the employer is the author and owner (U.S. Copyright Office, Circular 30).
- Outside contractors: a commissioned work is a work made for hire only if it falls into one of nine categories (such as a contribution to a collective work, a compilation, or a translation) and both parties sign a written agreement saying so.
- Software and the nine categories: custom software usually isn't one of them, so a "work made for hire" clause alone may not make the code yours.
- Assignment: a transfer of copyright "is not valid unless" it is in writing and signed by the owner of the rights (17 U.S.C. 204(a)).
- Domains are separate: ICANN warns that a developer who registered your domain may be the registrant of record, even if you paid.
- Not legal advice: how this applies depends on your facts and contract. Have an attorney review it.
Do you own the code if you paid a developer to write it?
Not automatically. If the developer is an independent contractor and there's no signed written agreement transferring the copyright, the developer generally keeps it. You may end up with permission to use the software but not the right to change it, resell it, or hand it to another developer without questions. Exactly what rights you'd have without a written agreement depends on the facts, which is a question for an attorney.
This is the default under the U.S. Copyright Act. The U.S. Copyright Office's Circular 30 explains that a "work made for hire" (where the hiring party is the legal author and owner) only happens in two situations: an employee creating something as part of their regular duties, or a specially commissioned work in one of nine listed categories with a written agreement signed by both sides. If a commissioned work fails any of those requirements, it is not a work made for hire.
Is custom software a work made for hire?
Usually not when an outside developer writes it. The nine categories that can be made a work made for hire by contract are: 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. A typical business application doesn't fit neatly into any of these.
That's why many development contracts include two things: a work made for hire clause and an assignment clause that transfers all rights to the client "to the extent the work is not a work made for hire." The assignment does the real work. Under 17 U.S.C. 204(a), it must be in writing and signed by the owner of the rights (the developer or their company).
| Who wrote it | Who owns it by default | How you get ownership |
|---|---|---|
| Your employee, as part of their job | Your business | Already yours (check employment terms) |
| A freelancer or contractor | The contractor | Signed written assignment |
| An agency or software company | The company (or its contractors, if it didn't get assignments from them) | Signed written assignment, and confirmation the company owns what it's assigning |
What should the contract say about code ownership?
The contract should say clearly what you'll own, when ownership passes, and what's excluded. Points to cover with your attorney:
- Assignment. The developer assigns copyright in the code written for your project to you, in writing, signed.
- When it passes. Many contracts transfer ownership on payment. That's reasonable; just know what triggers it.
- Pre-existing code. Developers often reuse their own libraries and tools. Those usually stay theirs, with a license for you to use them as part of your software. Make sure that license is permanent and allows changes by another developer.
- Open-source components. Most software includes open-source libraries under their own licenses. You don't own those, but you can use them under their terms. Ask for a list.
- Subcontractors. If the developer uses others, they need assignments from them too, or they can't pass full ownership to you.
- Delivery. The source code, not just the running app, in a repository you control, plus notes on how to build and deploy it.
How we handle this
At We Build Custom Software, we write the plan down (what we'll build, in what order, and what it will do) before any building starts. Our default is simple: you own the code we write for you, and your domain, hosting, and code repository are set up in your name, with us given access. We put that in the written agreement, and we're happy to sign a nondisclosure agreement before you share details. Have your attorney review whatever you sign, with us or anyone else. Describe your project to get started.
What else do you need to own besides the code?
Code you can't deploy isn't much use. Ownership of the code should come with control of the things it runs on:
- Domain name: registered in your business's name with an email address you control. ICANN notes that paying a developer to register a domain doesn't stop them from listing their own details, and you may need proof of payment to fix it.
- Hosting and cloud accounts: in your name. AWS recommends the account's owner login use an email address managed by your business, with multi-factor sign-in.
- Code repository: in an account or organization you own. On GitHub, a repository can be transferred to a new owner, and its issues, history, and links move with it.
- Third-party services: email sending, payments, maps, and AI services should be billed to and owned by your business.
Questions
What if I never signed a contract with my developer?
Then the developer likely still holds the copyright, and you may have only an unclear right to use the software. The fix is a signed written assignment now, ideally while you're on good terms. Talk to an attorney about the right document for your situation.
Can my developer reuse code they wrote for me?
If you own the code by assignment, generally not without your permission, except for their own pre-existing tools and general know-how. If they kept ownership, they may be free to reuse it. Spell out what you expect in the contract.
Does it matter if my developer used AI tools to write the code?
It can. In its January 2025 report on copyrightability, the U.S. Copyright Office concluded that AI output is protected only where a human author determined enough of the expressive elements, and that writing prompts alone isn't enough. Using AI as a tool inside a larger human-written work doesn't rule out protection. Ask your developer how they use AI tools, and ask your attorney how that affects your agreement.
Sources
- U.S. Copyright Office, Circular 30: Works Made for Hire
- 17 U.S.C. 204: Execution of transfers of copyright ownership
- U.S. Copyright Office: Copyright and Artificial Intelligence, Part 2 (Copyrightability), January 2025
- ICANN: General questions for registrants
- GitHub Docs: Transferring a repository
- AWS: Root user best practices for your AWS account