Choosing a tech partner7 min read

Who owns the code in a software development contract? EU, UK, US and Italian rules

Paying for software is not the same as owning it. You need a written assignment and you need the keys.

A glass key in the lock of a small crystal box holding a glowing lilac cube

Who owns the code if the contract says nothing?

Whoever wrote it, unless they wrote it as an employee. Copyright starts with the author; employers get an exception for staff working within their duties, and commissioning clients get no equivalent default for software. The table sets out where the main jurisdictions land.

Default ownership of software, by jurisdiction (general rules)
JurisdictionEmployee codeContractor or agency codeTransfer formality
EU (Directive 2009/24/EC)Employer exercises the economic rights, unless the contract says otherwiseThe author or its employer; no EU rule moves it to the clientSet by national law
United KingdomEmployer is first owner, subject to contrary agreementAuthor (the contractor) is first ownerAssignment must be in writing, signed by the assignor
United StatesWork made for hire: employer is author and ownerGenerally the contractor: software is not one of the nine commissioned categoriesTransfer must be in writing and signed
ItalyEmployer holds the economic rights, unless agreed otherwiseNo equivalent rule: depends on the contractTransfer must be proved in writing

The sources behind each row: Article 2(3) of Directive 2009/24/EC for the EU; section 11 and section 90(3) of the UK's Copyright, Designs and Patents Act 1988; the US Copyright Office's Circular 30 on works made for hire and 17 U.S.C. §§ 201 and 204; and Articles 12-bis and 110 of Italy's copyright law.

Two situations catch founders out. Code a co-founder wrote before incorporation still belongs to them until it is assigned, which is why it should be covered in the founders' paperwork alongside the equity split with a technical co-founder. And no-code platforms set ownership in their own terms of service, as we explain in no-code vs custom development. If you join a startup studio or incubator, ask in writing who will own the code.

Doesn't a ‘work made for hire’ clause solve it in the US?

Not on its own. Under US law a commissioned work is ‘made for hire’ only if it falls into one of nine categories, such as a contribution to a collective work, a translation or a compilation, and the parties sign a written agreement saying so. Software written by an independent contractor generally sits outside those categories, so the label alone may not move ownership. A well-drafted US contract therefore pairs the work-for-hire wording with an express assignment of copyright, signed in writing.

It protects the expression of a program in any form, including preparatory design material; it does not protect the ideas and principles behind it, including those behind its interfaces (Article 1 of the EU directive). In practice, your old vendor cannot stop another team from building a product with the same features, but without an assignment the rights in the code they wrote may stay with them.

The rights at stake are concrete: reproducing the program, translating, adapting and altering it, and distributing it (Article 4). Without them, you need the rightholder's permission before a new team can modify the code. That is why investors ask who owns the technology early in due diligence.

What should the IP assignment clause cover?

It should say what is assigned, when, how broadly and what is carved out. This is our own checklist for the clause:

Seven points to check in the clause

  1. Scope

    Source and compiled code, documentation, preparatory material, designs, deployment scripts and infrastructure configuration.

  2. Timing

    When the assignment takes effect: on delivery, on payment of each milestone, or on final payment.

  3. Breadth

    All economic rights, including modification and sublicensing, worldwide and without time limit.

  4. Vendor's pre-existing components

    Libraries the vendor reuses across clients: if they are not assigned, you need a perpetual, irrevocable, royalty-free licence for your product.

  5. Open source

    A list of third-party components and their licences, and a commitment not to use any incompatible with your business model.

  6. Handover

    Repository, credentials, documentation and release instructions, delivered continuously rather than only at the end.

  7. Warranties

    The vendor warrants that the code does not infringe third-party rights and indemnifies you if it does.

What about open-source components inside your product?

You never own those; you use them on the terms of their licence. Most modern software products use a lot of them, and some licences carry obligations, such as publishing your modifications, that can clash with how you plan to make money.

68%

of 947 commercial codebases audited for Black Duck's 2026 OSSRA report contained open-source licence conflicts, up from 56% the year beforeSource: Black Duck, 2026 OSSRA report

Black Duck sells code-scanning tools, so read the figure as a snapshot of companies that run these audits. The lesson still holds: ask your vendor for a list of third-party components and licences and keep it current with each release. Treat AI-generated code the same way and review it like any other code.

How do experienced buyers protect themselves?

They write it into every contract. The US Digital Services Playbook tells federal teams to keep software and data built by third parties under government control and to secure the rights needed so custom software can be reused. Italy goes further: its digital administration code requires public bodies to state in tender specifications that they hold all rights in software developed for them, unless that is excessively costly for documented reasons. If governments have to spell it out, so does a startup.

What should you get handed over, beyond the clause?

Everything another team would need to carry on without your current vendor:

  • The code repository in your company's name, with full history.
  • Hosting, domain, email, payments and analytics accounts owned by the company.
  • Apple and Google developer accounts in the company's name, if you ship mobile apps.
  • Technical documentation and instructions to install and release the product.
  • A list of third-party components and their licences.
  • A copy of the data and backups, with restore instructions.

These points belong in vendor selection too: see how to choose a software development company. And if you are still deciding between models, the ownership question looks different for employees, freelancers and agencies: compare agency vs freelancer vs in-house.

Frequently asked questions

Will I own the source code at the end of the project?

Only if the contract assigns the rights and requires delivery of the source. Without a written clause, you may end up with a product you can use but cannot have another team change.

Can I get an assignment after the contract is signed?

Yes, through a separate written agreement, ideally signed before you raise money or change vendor. The longer you wait, the harder it is to reconstruct who wrote what.

Can a developer reuse code they wrote for me?

It depends on the contract. Vendors often assign project-specific code and keep their generic components, licensing them to you. That is fine if it is in writing and the licence is perpetual and irrevocable.

Is AI-generated code protected by copyright?

The question is unsettled and varies by country. Meanwhile, treat it like any other code: have it reviewed, check it does not reproduce components under incompatible licences, and cover it in the vendor's warranties.

What if my vendor refuses to hand over the code?

It depends on what the contract says, and you should take legal advice. The best protection is prevention: a repository in your company's name from day one and continuous delivery of the code.

Sources

  1. Normattiva, Legge 22 aprile 1941, n. 633 (artt. 2, 12-bis, 64-bis, 110) (19 October 2026)
  2. EUR-Lex, Direttiva 2009/24/CE relativa alla tutela giuridica dei programmi per elaboratore (19 October 2026)
  3. Normattiva, D.Lgs. 7 marzo 2005, n. 82 (CAD), art. 69 (19 October 2026)
  4. Black Duck, 2026 Open Source Security and Risk Analysis (OSSRA) report (19 October 2026)
  5. U.S. Copyright Office, Circular 30: Works Made for Hire (rev. 08/2024) (19 October 2026)
  6. U.S. Copyright Office, Title 17, Chapter 2 (§§ 201, 204) (19 October 2026)
  7. legislation.gov.uk, Copyright, Designs and Patents Act 1988, ss. 11 e 90 (19 October 2026)
  8. U.S. Digital Service, Digital Services Playbook (19 October 2026)

Figures and definitions checked on the dates shown.

Building a startup?

Let's talk