Alex is Sprintlaw’s co-founder and principal lawyer. Alex previously worked at a top-tier firm as a lawyer specialising in technology and media contracts, and founded a digital agency which he sold in 2015.
If your business is building software, chances are you’ve had this exact thought at some point: you’ve spent months (and a lot of budget) developing a clever algorithm, and now you want to stop competitors copying it.
So, can a computer program algorithm be copyrighted in the UK?
The answer is a little more nuanced than most founders expect. In many cases, copyright can protect the code you wrote and the way you expressed your idea - but it usually won’t protect the underlying algorithm as an abstract method.
Below, we’ll break down how copyright works for algorithms and software in the UK, what protection you can realistically rely on, and the practical steps startups and SMEs can take to protect their IP from day one.
What Are You Actually Trying To Protect: The Algorithm Or The Code?
Before you can protect your tech, you need to be clear about what the “thing” is.
In everyday product talk, “algorithm” can mean a few different things:
- The underlying method or logic (eg “use these steps to rank results” or “use this approach to detect fraud”).
- The implementation of that method in a specific programming language (your source code).
- The broader system around it (data pipeline, model training, UI, workflow, rules, documentation, APIs, etc.).
This matters because UK IP law draws a big line between:
- Ideas, methods and principles (generally not protected by copyright), and
- The expression of those ideas (often protected by copyright).
In practical terms, if someone independently builds the same logic but writes their own code, copyright may not stop them. But if someone copies your actual code (or very close parts of it), copyright can be a powerful tool.
Can A Computer Program Algorithm Be Copyrighted Under UK Law?
Let’s answer the key question in plain terms: can a computer program algorithm be copyrighted in the UK?
Usually, the algorithm itself (as a method) is not protected by copyright. UK copyright law generally doesn’t protect “ideas” or “methods of operation”.
However, computer programs (ie code) are protected by copyright in the UK as a category of “literary work”. The key legislation is the Copyright, Designs and Patents Act 1988 (CDPA).
What Copyright Typically Protects In Software
For startups and SMEs, the most relevant point is that copyright can protect things like:
- Source code (eg Python, JavaScript, C#, etc.).
- Object code (compiled code).
- Software documentation (user manuals, technical specs, internal documentation, help guides).
- Original text, images and UI elements (to the extent they’re creative works).
It can also sometimes protect certain aspects of structure (for example, a particular selection/arrangement of elements) - but for pure functionality, the courts are cautious. If something is essentially dictated by technical function, it’s less likely to be protected as “original expression”.
What Copyright Usually Does Not Protect
Copyright generally won’t give you a monopoly over:
- The concept (eg “dynamic pricing based on demand”).
- The mathematical method (eg “use this formula/approach”).
- The algorithm as an abstract process (eg a step-by-step method that could be implemented in many ways).
- General programming techniques and standard approaches.
This is where many founders feel frustrated - because the “magic” is often the idea. But in UK copyright law, protection tends to attach to the specific output you created (like code), not the broader idea or logic itself.
If Copyright Won’t Protect The Algorithm, What Can You Do Instead?
Don’t stress - not being able to “copyright an algorithm” doesn’t mean your business is unprotected. It just means you need to use the right mix of legal tools.
For most startups and SMEs, protecting algorithms comes down to a layered strategy:
- Copyright (protects your code and written materials).
- Confidentiality / trade secrets (protects the method by keeping it secret).
- Contract terms (controls how customers, staff and suppliers can use your software and know-how).
- Patent protection (possible in some cases, but not always suitable).
1) Trade Secrets And Confidentiality (Often The Most Practical Option)
If your competitive advantage is the underlying logic, one of the most practical approaches is to treat it as a trade secret. That means:
- limiting who can access it,
- documenting it carefully, and
- using strong confidentiality obligations in writing.
A well-drafted Non-Disclosure Agreement can be a key part of this (for example, when you’re pitching to partners, onboarding contractors, or discussing integrations).
In many businesses, trade secret protection is the “real” protection for algorithms - because it targets the thing copyright doesn’t: the underlying method.
2) Patents (Sometimes, But Not Always)
Some founders ask: “If I can’t copyright an algorithm, can I patent it?”
Patents are complex in software. In the UK, software and algorithms “as such” are generally excluded - but some computer-implemented inventions can be patentable where, on the specific facts, they make a sufficient technical contribution. This is a technical, case-by-case assessment and isn’t limited to simply running a business method on a computer.
Patent strategy is very fact-specific and can be expensive, so it’s often most relevant where:
- you’re building genuinely novel tech,
- your business relies heavily on defensibility, and
- you can justify the cost as part of a long-term IP moat.
Even if you don’t pursue patents, it’s worth knowing that “copyright vs patent” is not an either/or - sometimes businesses use both, depending on what part of the product they need to protect.
3) Contracts (How You Control Use In The Real World)
Contracts can’t magically turn an unprotectable idea into IP, but they can set clear boundaries about what other people can do with what you share.
Depending on your business model, that might include:
- licensing terms for customers (what they can and can’t do with your software),
- restrictions on reverse engineering (these can help in practice, but enforceability is fact-specific and may be limited by mandatory legal rights in some contexts),
- confidentiality and security requirements, and
- clear ownership clauses for improvements and feedback.
If you provide your product as SaaS or under a licence model, a tailored Software Licence Agreement can be central to protecting how your software and related IP is used in practice.
Who Owns The Copyright In Your Code (And Why Startups Get This Wrong)?
Even if copyright protection exists, it’s only useful if your company actually owns it.
This is a common trap for startups and SMEs - especially where the product is built by a mix of founders, employees, freelancers, overseas developers, and agencies.
Employees vs Contractors
As a general rule in the UK:
- Employees: copyright created in the course of employment is often owned by the employer (subject to the employment contract and the circumstances).
- Contractors/freelancers/agencies: they typically own the copyright in what they create unless your contract clearly assigns it to you.
So if you hired a developer on a contractor basis and you don’t have a proper IP transfer in writing, you may not fully own your own codebase - which can cause major issues during fundraising, acquisition due diligence, or even just scaling your team.
This is why it’s so important to use an IP Assignment (or robust IP clauses in your development agreement) when contractors contribute to your product.
Founders Building Before The Company Exists
Another common scenario: two co-founders build an MVP before incorporating, or they start development while still “figuring out the structure”.
If you build first and incorporate later, you should be thinking about:
- who owns the early code,
- whether it’s been properly transferred to the company, and
- how that ownership is documented for investors.
Getting this clear early is one reason many startups put a Founders Agreement in place - it helps set expectations around contributions, ownership and what happens if someone leaves.
And if you’re bringing in shareholders (even friends and family), a Shareholders Agreement can help lock down the commercial deal and reduce disputes that can derail the business later.
How Do You Prove Someone Copied Your Code (And What Evidence Helps)?
Copyright arises automatically in the UK - you don’t register it like you might with a trade mark.
But if a dispute ever happens, you still need to prove:
- you own the copyright,
- the work is original (in the copyright sense), and
- someone copied a substantial part of it.
From a business perspective, the best time to prepare for this is now, not after something has gone wrong.
Practical Steps That Help Startups And SMEs
- Use version control properly (commits, timestamps, author attribution).
- Keep a clean audit trail of who worked on what (especially contractors).
- Use written agreements that confirm IP ownership and confidentiality.
- Document your development process (technical specs, architecture docs, roadmaps).
- Limit access to sensitive repositories, production environments and model weights.
If your product involves customer data, analytics, or any personal data processing, it’s also worth ensuring your compliance foundations are solid - including a fit-for-purpose Privacy Policy and clear internal practices on who can access what.
Evidence and governance won’t just help in a dispute. It can also make fundraising and enterprise sales smoother, because you’ll be able to answer due diligence questions confidently.
What Legal Documents Should You Put In Place To Protect Software IP?
If you’re running a startup or SME building software, your legal protection usually won’t come from one “magic document”. It comes from a set of documents that work together.
Here are some common documents to consider, depending on your model and team structure:
Core IP And Confidentiality
- NDA: for early conversations, partners, contractors and suppliers.
- IP assignment / IP clauses: especially for non-employees contributing to the codebase.
- Contractor or developer agreement: to set deliverables, payment, IP ownership and warranties.
Customer And Product Terms
- Licence / SaaS terms: to define permitted use, restrictions, fees, support, and IP boundaries.
- Website terms: to control how users interact with your site and content, and to set baseline legal terms. For many businesses, a tailored Website Terms and Conditions is a sensible starting point.
Team And Ownership
- Founders and shareholder documentation: to avoid disputes about ownership, contributions, and exit scenarios.
- Employment and workplace policies: if you’re hiring staff, you’ll want clear rules around confidentiality, acceptable use, and IP created at work.
Templates can be tempting, but software IP is one area where “almost right” can be effectively useless. A clause that doesn’t match how your product is delivered (API access, on-prem deployments, embedded software, open-source components, etc.) can create gaps that competitors, ex-contractors, or customers might exploit.
It can feel like a lot - but once your foundations are set, you’ll be in a much stronger position to scale, raise capital, and negotiate with larger customers.
Key Takeaways
- Copyright can protect your code in the UK, because computer programs are generally treated as “literary works” under the Copyright, Designs and Patents Act 1988.
- The underlying algorithm (as an abstract method) is usually not protected by copyright, so a competitor may be able to implement the same logic if they don’t copy your expression.
- Trade secrets and confidentiality are often the most practical way to protect algorithms, especially when the value lies in the method rather than the code itself.
- Make sure your company actually owns the IP - contractor-created code often requires an IP assignment or clear IP clauses in your agreements.
- Contracts are essential for controlling real-world use, including licensing, restrictions, confidentiality obligations, and ownership of improvements.
- Build your evidence trail early with version control, access controls, and clear documentation, so you can prove ownership and copying if a dispute arises.
This article is general information only and isn’t legal advice. For advice on your specific situation, speak to a qualified lawyer.
If you’d like help protecting your software IP, drafting the right contracts, or getting your ownership and licensing structure set up properly, you can reach us at 08081347754 or team@sprintlaw.co.uk for a free, no-obligations chat.


