TREADSTONE LAW · ONTARIO · DIGITAL LEGAL SERVICES · EST. MMXXI ·TSL
Learn/Ask a Lawyer/Buying & Selling a Business/Who owns a software company's…
Buying & Selling a Business

Who owns a software company's source code if it was built by contractors instead of employees?

TSL Written by the Treadstone Law team· Updated August 2026

This is one of the biggest hidden risks in buying a software company, because the default rule for contractors is essentially the opposite of the default rule for employees. Code written by an employee in the course of their job generally belongs to the employer automatically. Code written by an independent contractor generally belongs to the contractor unless the contract specifically assigns ownership of the work to the company that hired them — and a surprising number of small software companies never got that assignment properly documented, especially in their early days.

If a contractor never assigned their rights, the company may hold only a licence to use the code, not outright ownership, which can materially limit what a buyer is actually acquiring and create real risk if that contractor later objects to the company's use, or the buyer's continued use, of their work. This is exactly the kind of gap that due diligence needs to surface before closing, not after.

Reviewing every contractor agreement tied to material parts of the codebase, and securing confirmatory assignments from contractors where the original paperwork is missing or unclear, protects the buyer's actual ownership of what it's paying for.

Key takeaways

  • Contractor-created code generally belongs to the contractor unless expressly assigned in writing.
  • This is the reverse of the default rule for employee-created work.
  • A missing assignment can leave the company with only a licence, not ownership, of key code.
  • Review contractor agreements and secure confirmatory assignments before closing where gaps exist.
This is general information, not legal advice. It doesn’t create a lawyer–client relationship, and the rules can change. For advice on your situation, a Treadstone business lawyer can help.
Was this helpful?Share:

Go deeper

Still have questions?

Search 6,000 answers, or send yours to a Treadstone lawyer — we answer in plain language.

All answersStart a File →