Who owns the code in custom software? Unless your contract says otherwise, the developer does. In the UK, the US and India, copyright belongs first to the person who wrote the work, and an independent developer or agency is that person. Paying for the software gives you a right to use it, usually implied, but not ownership. That surprises buyers, and it is the reason a single clause in a contract decides whether you can change vendors, sell the business with its software, or stop a developer from reusing your system for a competitor. This post explains the default, the difference between assignment and licence, what happens to background IP and open-source components, how payment conditions work, what to ask for, and how the three jurisdictions differ.

Who owns custom software by default

Copyright law in most countries starts from the same rule: the author owns what they create. The UK's Copyright, Designs and Patents Act 1988 puts it plainly in section 11: the author of a work is the first owner of any copyright in it, with an exception for employees, whose employer owns work made in the course of employment.

Notice what that exception does not cover: contractors, freelancers and agencies. They are not your employees, so the exception does not apply, and the default returns to the author. When an agency's employee writes your code, the agency owns it (through the employment rule). When a freelancer writes it, the freelancer owns it. In neither case do you, unless a written assignment says so.

The US reaches a similar place by a different route. Under the work-made-for-hire doctrine, described in the US Copyright Office's Circular 30, an employer owns an employee's work automatically, but a commissioned work from an independent contractor counts as work made for hire only for certain categories of work and only with a signed agreement. Custom software written by a contractor generally needs an express written assignment to be yours.

India's Copyright Act, 1957 follows the same author-first principle, with an employer exception for work done under a contract of service. An independent agency works under a contract for service, so ownership stays with the agency until assigned in writing.

So the answer to "who owns the code in custom software" is the developer, by default, in all three places. Courts will sometimes imply a licence so that the buyer can use what they paid for, because that is obviously what both sides intended. They are far more reluctant to imply an assignment. A licence is enough to run the software. It is not enough to own it.

Assignment vs licence in plain words

The two words carry the whole question, so it is worth being precise.

Assignment Licence
Who owns the copyright You The developer
Can you modify the code Yes Only if the licence says so
Can you give it to another developer to maintain Yes Only if the licence allows it
Can you sell it with the business Yes Depends on transfer terms
Can the developer reuse it for another client No (except background IP) Yes, unless exclusivity is agreed
Usual form A clause assigning all IP in the deliverables to the client, often on payment Terms of use, scope, territory, duration
Typical for Custom software built for one client Off-the-shelf products, SaaS, reusable components

For software you are paying to have built for your business, an assignment of the foreground IP is the normal expectation and the right ask. Licences have their place: a SaaS product you subscribe to is licensed, a developer's reusable toolkit is licensed, and sometimes a buyer is happy with an exclusive licence at a lower price. But if you expect to own the code, make sure the word in the contract is "assign", not "licence", and that it covers the source code, not just the compiled application.

A full assignment also covers the things around the code: the database schema, design files, documentation, build scripts and configuration. Ask for "all deliverables" rather than "the software".

Background IP, foreground IP and open-source components

Custom software is never written entirely from scratch, and a good contract recognises three layers.

Foreground IP is the code written for you on this project. This is what gets assigned.

Background IP is what the developer brought in: their own frameworks, internal libraries, boilerplate, deployment tooling and components built on earlier work. It stays with the developer, because assigning it would stop them using their own tools for anyone else. What you need is a perpetual, irrevocable, royalty-free licence to use that background IP as part of your software, including the right to modify it and to let another developer maintain it. Without that licence, an assignment of the foreground code can leave you with an application you own but cannot legally run.

Open-source components are owned by nobody at the table. Your application almost certainly depends on dozens of them, each under its own licence. Most (MIT, Apache, BSD) permit commercial use with minimal obligations. Some (the GPL family) impose conditions on distribution that matter if you ever ship the software to others rather than running it as a service. A professional developer keeps an inventory of the open-source components and their licences, and your contract should require that inventory as a deliverable and prohibit components with licences incompatible with your intended use.

Ask the developer to list the background IP explicitly in the contract or a schedule. "Our standard tools" is not a list. A specific list is what lets a future developer tell which parts they may change.

IP transfer on full payment: how the condition works

Most developer contracts make the assignment conditional on payment in full, which is fair: the developer should not hand over ownership of unpaid work. The question is how the condition is drafted, because a badly drafted one creates a standoff.

The clean arrangement is milestone-based. Each sprint or milestone has a deliverable, an invoice and, on payment, an assignment of the IP in that deliverable. Code is delivered to a repository you control as it is written, so you are never dependent on a final handover. If the relationship ends halfway, you own what you paid for and the developer keeps what you did not.

The arrangement to avoid is one where all IP transfers only on the final payment of the whole project, and the code sits in the developer's repository until then. If the project runs over, scope is disputed, or the developer disappears, you have paid most of the money and own none of the code. Our earlier post on red flags at a software development company lists this among the contract terms that cause trouble.

Two practical safeguards: insist that the repository is in your organisation's account from day one, with the developer as a contributor, and that the assignment clause operates automatically on payment rather than requiring a separate signed document later.

What to ask for in the contract

You do not need to draft the clause yourself; you need to know what to check. Before signing with any developer, confirm the agreement contains:

  1. An assignment of all intellectual property in the deliverables to you, covering source code, schema, designs, documentation and configuration.
  2. A clear statement of when the assignment takes effect (per milestone on payment is best).
  3. A schedule of background IP with a perpetual, irrevocable licence to use, modify and have others maintain it within your software.
  4. A requirement for an open-source inventory and a restriction on licences incompatible with your use.
  5. A moral rights waiver where the jurisdiction allows it (the UK and India recognise moral rights; the waiver prevents an author objecting to later changes).
  6. Confidentiality covering your data and business logic, so that the developer cannot describe your system to a competitor even where they retain background IP.
  7. Delivery to your repository as work proceeds, not at the end.
  8. Where the developer uses subcontractors, a warranty that they have assigned their IP to the developer so that the chain to you is unbroken.
  9. A warranty of originality: the developer confirms the foreground code is theirs to assign and does not infringe anyone else's rights.
  10. For AI-assisted code, a clause confirming the developer reviews and takes responsibility for generated code, since copyright in machine-generated output is unsettled in several jurisdictions.

A developer who will not agree to the first three items is telling you that you will not own your software. That is a legitimate commercial position for them to take, but it should change the price, and it should be said out loud. Our checklist for evaluating a software development agency and our list of questions to ask a software development company both put IP near the top for that reason.

At Upwwards the position is simple: you own all the code and IP we write for you. It is part of how we scope custom software development from the first conversation, so there is nothing to negotiate later.

UK, India and US differences in one paragraph

The three jurisdictions reach the same default (the author or their employer owns the code; the client does not without an assignment) but differ in the details. The UK requires an assignment to be in writing and signed by the assignor, recognises moral rights that can be waived, and makes equitable arguments for implied ownership hard to win. The US work-for-hire doctrine only covers contractor work in listed categories with a signed agreement, so software from a contractor generally needs an explicit assignment, which should also be in writing and signed. India's Act gives an employer first ownership under a contract of service but not a contract for service, so an agency keeps ownership until a written assignment, and Indian law also recognises moral rights. If your developer is in one country and you are in another, the contract should name the governing law and the assignment should satisfy the formal requirements of both, which in practice means a signed written assignment every time.

Settling who owns the code before the first sprint

Who owns the code in custom software is decided by one clause, and the time to decide it is before the first invoice. Ask for an assignment of the foreground IP that takes effect as each milestone is paid, a listed schedule of background IP with a perpetual licence, an open-source inventory, delivery to your own repository as work proceeds, and a clean chain through any subcontractors. With those in place, you can change developers, sell the business, or build on the system without asking anyone's permission, which is what paying for custom software is supposed to buy.

If you want to talk through a build, or check a contract you have been sent, book a free 30-minute discovery call. A senior engineer talks it through, and we send a written approach, timeline and estimate within two business days.