
Browse our curated list of Custom Software Development Companies
IP ownership in software development decides who owns the code, designs, documents and data created during a project. Many buyers assume that paying for software means owning it. It often does not. Under US copyright law, code written by an outside company or freelancer belongs to its author unless a signed written agreement transfers it. Code written by your own employees as part of their job usually belongs to you. So the contract, not the invoice, decides ownership. A good software contract assigns all project IP to the client on payment, licenses any tools the provider already owned, and lists the open source components used.
This guide explains the default rules, the difference between assigning and licensing IP, background IP, open source and AI-generated code, with sample clause wording, a worked example and a checklist. It is written for founders, product owners and procurement teams hiring a software development company. It is not legal advice, and rules differ between countries, so have a lawyer review your contract.
Key takeaways
- Paying for code does not transfer copyright by itself. In the US, a transfer of copyright must be in writing and signed[1].
- Use an assignment clause for project IP and a licence clause for the provider's existing tools.
- Ask for a list of open source components. More than two thirds of audited commercial codebases contain licence conflicts[2].
- Fixing missing IP assignments before a funding round or sale costs far more than getting them signed at the start.
What IP Ownership Covers in a Software Project
Intellectual property in a software project is more than source code. List each type in the contract, so nothing is left out.
| IP type | Examples | Who should usually own it |
|---|---|---|
| Source and compiled code | Application code, scripts, database schemas, infrastructure as code | Client, on payment |
| Designs | Wireframes, UI designs, design files, icons, brand assets | Client, on payment |
| Documentation | Specifications, architecture diagrams, user guides, test cases | Client, on payment |
| Data | Customer data, content, data created by the system | Client, always |
| Models and AI assets | Trained model weights, prompts, evaluation sets built for you | Client, if built and paid for in the project |
| Provider's existing tools | Internal libraries, starter kits, frameworks | Provider, with a licence to the client |
| Third-party and open source parts | Open source libraries, paid components, APIs | Their owners, under their licences |
The Default Rules: Employees, Freelancers and Agencies
Without a written agreement, the law decides who owns the work, and the answer depends on who wrote it. In the US, the US Copyright Office explains that a "work made for hire" is either a work prepared by an employee within the scope of their job, or a specially commissioned work in a limited list of categories with a signed written agreement[3]. Software written by an outside company does not usually fit that list, so the safe route is a written assignment.

| Who writes the code | Default owner without a contract | What you need |
|---|---|---|
| Your employee, as part of their job | Usually the employer | An employment contract with an IP clause, to remove any doubt |
| A freelancer or contractor | Usually the freelancer | A signed IP assignment in the contract |
| A software development company | The company (it owns its employees' work) | An assignment from the company to you, and confirmation its staff and subcontractors assigned to it |
| A subcontractor of your provider | The subcontractor | A chain of assignments: subcontractor to provider to you |
Many countries follow a similar pattern: employers own their employees' work, while commissioned work stays with its author unless the contract says otherwise. The details differ, so check the law that governs your contract, especially if the team is in another country.
Assignment vs Licence
An assignment transfers ownership. A licence gives permission to use something that someone else still owns. Most software contracts need both.
| Factor | Assignment | Licence |
|---|---|---|
| What you get | Ownership | Permission to use |
| Can the provider reuse it for others? | No | Yes, unless the licence is exclusive |
| Can you change, sell or license it on? | Yes | Only if the licence allows it |
| Typical use | Code and designs written for your project | Provider's existing tools, open source, paid components |
| What to check | Signed, in writing, covers all project IP | Perpetual, irrevocable, worldwide, allows changes, survives termination |
Background IP and foreground IP
Foreground IP is what is created for your project. Background IP is what the provider owned before, such as a login module, a payment integration library or a deployment template it reuses for many clients. Providers rarely give away background IP, because reusing it is how they keep prices down. That is fair, as long as you receive a licence that lets you keep using, changing and hosting the software forever, even if you stop working with the provider. Ask the provider to list its background IP in the statement of work, so there is no argument later about which parts it can reuse.
Open Source Code and Your IP
Almost every modern application uses open source libraries. You do not own them, but you can use them under their licences. The Open Source Initiative keeps the list of approved licences and their terms[4]. Licences fall into two broad groups:
- Permissive licences such as MIT, BSD and Apache 2.0 allow use in commercial software with few conditions, mainly keeping copyright notices.
- Copyleft licences such as the GPL can require you to release your own source code if you distribute software that includes the licensed code. Network copyleft licences such as the AGPL can apply even when software runs as an online service.
Licence problems are common. Black Duck's 2026 analysis of commercial codebases found that more than two thirds contain licence conflicts, the highest level in its data[2]. Ask your provider for a software bill of materials (SBOM), a list of every component and its licence, at each major release and at handover. Our software company due diligence checklist covers how to check a provider's practices.
AI-Generated Code and IP Ownership
Developers now use AI coding assistants every day, which raises two questions. First, can AI-generated code be owned at all? In its 2025 report on copyrightability, the US Copyright Office concluded that copyright protects human authorship, and that prompts alone do not give enough control over the output to make the person who wrote them its author. Human selection, arrangement and changes to AI output can still be protected[5]. In practice, most project code mixes human and AI work, and the contract should assign whatever rights exist to you.
Second, AI tools can reproduce code from open source projects without its licence notice. Add these points to your contract:
- The provider tells you which AI coding tools its team uses, and that client code is not used to train public models.
- All code, whether written by people or with AI help, is reviewed by the provider's developers before delivery.
- The provider runs licence scanning on the codebase and fixes conflicts before handover.
- The usual IP warranty and indemnity cover AI-assisted code in the same way as other code.
Sample IP Clauses for a Software Contract
The wording below shows what each clause should achieve. Use it to check a provider's contract, and ask a lawyer to adapt it to your governing law.
| Clause | Example wording |
|---|---|
| Assignment of project IP | "On payment of each invoice, the Provider assigns to the Client all rights, title and interest in the Deliverables covered by that invoice, including all copyright and other intellectual property rights." |
| Background IP licence | "The Provider grants the Client a perpetual, irrevocable, worldwide, royalty-free licence to use, copy, modify and host the Background IP as part of the Deliverables." |
| Staff and subcontractors | "The Provider confirms that all personnel and subcontractors working on the Deliverables have assigned their rights to the Provider in writing." |
| Open source | "The Provider will not include open source components under licences that require disclosure of the Client's source code without the Client's written approval, and will supply a list of all components and licences at each release." |
| Warranty and indemnity | "The Provider warrants that the Deliverables do not infringe third-party rights and will defend the Client against any claim that they do." |
| Moral rights | "To the extent permitted by law, the Provider waives, and will procure that its personnel waive, any moral rights in the Deliverables." |
| Further assurance | "The Provider will sign any documents reasonably needed to confirm or register the Client's ownership." |
These clauses usually sit in the master services agreement, while the statement of work lists the deliverables and background IP. Our guide to MSA vs SOW explains which terms go where, and our software development contract checklist covers the other clauses to review.
IP Ownership by Type of Engagement
The right IP terms depend on what you are buying. Custom development and a product licence are very different deals.
| Engagement | What you should own | What usually stays with the provider |
|---|---|---|
| Fixed price custom project | All project code, designs and documents, on milestone payment | Background IP, licensed to you |
| Time and materials or dedicated team | Everything the team produces, on payment of each monthly invoice | Internal tools and templates, licensed to you |
| White-label or ready-made product with customisation | Your customisations and your data | The core product; you get a licence or subscription |
| SaaS platform with integrations | Your data and any integration code written only for you | The platform itself |
| Proof of concept or discovery phase | Reports, designs and any code delivered | Methods and reusable assets |
White-label deals are where buyers most often get surprised. If a provider builds your "custom" app on its own platform, you may own only the customisations. That can be fine for speed and price, but you need to know it before you sign, and you need a clear exit plan for your data.
IP with offshore and cross-border teams
Hiring a team in another country adds two questions. First, which country's law governs the contract? Pick one clearly, usually where your company is based, and make sure the assignment is valid there. Second, does the provider's own employment contract with its developers give the company ownership of their work under local law? Ask the provider to confirm this in writing. For offshore projects it is also worth registering copyright in key software where that is possible, because registration makes ownership easier to prove. Our guide to software development outsourcing to India covers other cross-border contract points.
When Should IP Pass to You?
There are three common approaches, and each balances risk differently.
| Approach | How it works | Risk for the client | Risk for the provider |
|---|---|---|---|
| On creation | You own everything as soon as it is written | Lowest | Highest: unpaid work is already yours |
| On payment of each milestone | IP for each milestone passes when its invoice is paid | Low | Low |
| On final payment | Nothing passes until the project is fully paid | Higher: a dispute can block your access to the code | Lowest |
Transfer on payment of each milestone is the fairest and most common choice. Combine it with regular access to the code repository, so you always hold a current copy of work you have paid for.
Source code escrow for licensed software
When you license software instead of owning it, such as a white-label platform or a provider's core product, ask about source code escrow. An independent escrow agent holds a copy of the source code and releases it to you if agreed events happen, for example if the provider closes, stops supporting the product or seriously breaches the contract. Escrow costs money every year, often a few hundred to a few thousand dollars, so it makes sense mainly for software your business depends on. Check that the deposit is updated regularly and includes build instructions, because old or incomplete code is of little use in an emergency. For software you own outright, escrow is not needed: holding the repository yourself does the same job more cheaply.
Worked Example: Fixing Missing IP Before a Funding Round
A startup built its product over two years with a small agency and four freelancers. During due diligence for a funding round, the investor's lawyers find that the agency contract has an IP assignment, but two freelancers worked on simple email agreements with no IP clause, and one of them cannot be reached. These are example figures for illustration.
| Item | Cost | Delay |
|---|---|---|
| Lawyer time to review contracts and draft confirmatory assignments | $3,500 | 1 week |
| Payment to a reachable freelancer to sign an assignment | $1,500 | 2 weeks |
| Rewriting the module built by the unreachable freelancer, 160 hours at $45 | $7,200 | 4 weeks |
| Total | $12,200 | About 5 weeks, with some work in parallel |
| Cost of signing assignments at the start | About $0 extra | None |

The money is only part of the cost. A five-week delay during a funding round can change terms or stop a deal. The fix is simple: use one contract template with an IP assignment for everyone who writes code, and keep signed copies in one place.
IP at Handover: What You Should Receive

- Full source code in a repository you own, with complete history, not just a zip file.
- Build and deployment scripts and infrastructure as code, so another team can run the system.
- Credentials and accounts for hosting, domains, app stores and third-party services, in your company's name.
- Design files in their original editable format.
- Documentation covering architecture, setup and main decisions.
- A software bill of materials listing every open source and paid component and its licence.
- A written list of background IP and confirmation of your licence to it.
If you are taking over a project from a provider that is not cooperating, our guide on how to rescue a failing software project explains how to recover code and access.
Common IP Ownership Mistakes
- Relying on an NDA. An NDA protects confidential information but does not transfer ownership. Our guide to the NDA for software development explains the difference.
- Code in the provider's repository only. If the relationship ends badly, you may not get it back quickly.
- App store and cloud accounts in the provider's name. Moving them later can take weeks.
- No list of background IP. The provider later says a core module was always its own.
- Freelancers without contracts. Small tasks done on a handshake create gaps in ownership.
- Ignoring open source licences. One copyleft library in the wrong place can force difficult choices.
Questions to Ask a Software Company About IP
- When does ownership of code and designs pass to us, and is it written in your standard contract?
- Do all your staff and subcontractors assign their work to your company in writing?
- Which background IP or internal tools will you use, and what licence will we receive?
- Will the code live in a repository owned by our company from day one?
- How do you track open source licences, and will you provide a software bill of materials?
- Which AI coding tools does your team use, and how do you review and scan AI-assisted code?
- Will you warrant that the deliverables do not infringe anyone else's rights?
Clear answers to these questions are a good sign of a mature provider. Vague answers, or reluctance to put IP terms in writing, are a reason to keep looking. Our list of questions to ask a software development company covers the rest of the selection process, and our statement of work template shows where to list deliverables and background IP.
IP ownership is one of the few contract terms that becomes far more expensive to fix later. Get the assignment, the background licence and the open source list in writing before the first line of code is written, and keep the code in accounts you control.