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 builds software or uses unique methods to deliver a product or service, protecting that know‑how matters. One of the first questions we hear is: “can a computer program algorithm be copyrighted?”
Short answer: in the UK, copyright protects the expression of code (source and object code), documentation and other written materials - but not the underlying ideas, methods or purely mathematical concepts that make up an algorithm.
Don’t stress - you still have strong ways to protect the value in your software. The trick is understanding what the law covers, then putting the right mix of IP, confidentiality and contracts in place so you’re protected from day one.
What Does UK Law Actually Protect - Code Or Algorithms?
Under the Copyright, Designs and Patents Act 1988 (CDPA), computer programs are protected as “literary works.” This covers the specific code you write (both source code and compiled object code), along with related materials like technical documentation and user manuals.
However, copyright doesn’t protect ideas, principles, algorithms or methods of operation themselves. The functionality of a program, the logic of an algorithm, or a mathematical method you’ve devised are concepts - and concepts aren’t protected by copyright. This principle has been affirmed repeatedly in UK and European decisions: you can copyright how you express an idea (the code you write), not the idea itself.
So, if a competitor independently writes different code that achieves the same functionality as yours, they’re not infringing your copyright - unless they copied your actual code or a protectable part of its structure and expression.
That distinction is crucial for small businesses. It means you should treat your algorithm as valuable know‑how to be protected through confidentiality, contracts and (where viable) patents, while relying on copyright to protect the code you’ve actually authored.
Can You Patent An Algorithm, Or Should You Keep It Secret?
When people ask, “can a computer program algorithm be copyrighted?”, they’re usually trying to lock down the competitive edge in their logic. Copyright won’t do it - but patents or trade secrets sometimes can.
Software Patents In The UK
In the UK and Europe, you can’t patent “programs for computers” or “mathematical methods” as such. But software-related inventions are patentable if they provide a technical solution to a technical problem (often called a “technical effect”). Examples might include:
- Control systems that improve the operation of hardware
- Signal processing methods that enhance image or audio quality
- Security techniques that improve computer or network functioning
This is a specialist area and success depends on careful claim drafting. If your algorithm genuinely solves a technical problem in a new and non‑obvious way, it’s worth speaking with a patent attorney. If it’s more about business logic, pricing, recommendations or user flows, a patent is less likely to be viable - and trade secret protection may be a better route.
Trade Secrets And Confidential Information
Many of the most valuable algorithms are protected as trade secrets. In the UK, the Trade Secrets (Enforcement, etc.) Regulations 2018 give legal remedies against unlawful acquisition, use or disclosure of trade secrets. To rely on these protections, you’ll need to show that:
- The information isn’t generally known or easily accessible
- It has commercial value because it’s secret
- You’ve taken reasonable steps to keep it secret (for example, access controls and confidentiality clauses)
In practice, that means using strong internal controls and robust contracts with staff, contractors, suppliers and partners. We’ll walk through those practical steps shortly.
How To Protect Your Algorithm In Practice
Even though the answer to “can a computer program algorithm be copyrighted?” is largely “no” (the idea itself can’t), you can combine multiple measures to protect your competitive edge.
1) Lock Down Ownership Of Code And Documentation
Copyright arises automatically in your original code and documentation, but ownership doesn’t always sit where you think it does. If you use freelancers, agencies or third‑party developers, make sure their agreements include a clear assignment of IP to your business. Otherwise, you might not own what you paid for.
- For bespoke builds, use a professionally drafted Software Development Agreement that assigns IP on payment or delivery.
- When licensing or distributing your software, have a clear Software Licence Agreement that sets out authorised uses and restrictions.
- Where contractors are involved, include express IP transfer provisions or a separate IP Assignment so everything created for you ends up owned by you.
2) Protect The Algorithm As A Trade Secret
To keep your algorithm confidential, take reasonable steps right across your business:
- Use confidentiality clauses in employment contracts and contractor agreements
- Limit access to “need‑to‑know” staff and log access to code repositories
- Segment your documentation, so sensitive logic isn’t widely shared
- Use NDAs before disclosing to potential partners or investors
When collaborating or exploring partnerships, a tailored Copyright Licence Agreement can let you test a relationship without handing over the crown jewels, and it can sit alongside a strong confidentiality framework.
3) Be Smart About What You Publish
Every time you publish code, architecture diagrams, or detailed process write‑ups, you risk eroding your trade secret position. Open‑source is powerful - but if your competitive advantage lives in the algorithm, keep that part private and modularise public components where possible. If you do open‑source parts of your stack, be deliberate about licence selection and compliance obligations.
4) Consider Patent Strategy (If A Technical Effect Exists)
If your algorithm solves a technical problem in a novel way, speak with a patent attorney early. Public disclosures (including pitches and conference talks) can destroy patentability. A measured strategy can leave room for both trade secret protection and later filings if appropriate.
5) Keep Your House In Order
Practical hygiene goes a long way:
- Version control and change logs so you can evidence authorship and timelines
- Internal policies around data handling and system access
- Clear supplier terms when third parties have any role in development
- Third‑party licence compliance (SDKs, APIs, open source)
If you’re building mobile products, the same principles apply - contracts, ownership and confidentiality should be baked into your Mobile App Development process from the start.
Key Contracts Every Software‑Led Business Should Have
Legal documents do the heavy lifting in protecting your algorithm as know‑how and your code as copyright. Here are the essentials most SMEs should consider.
Employment And Contractor Agreements
Make sure your agreements deal with confidentiality, ownership and post‑termination restrictions:
- Confidentiality clauses that clearly define “confidential information” to include algorithms, models and training data
- IP ownership provisions that assign all rights in works created in the course of employment or engagement
- Restrictions on use of personal repositories and generative AI tools with sensitive code
If you rely on freelancers, be especially careful - our guide on IP when using independent contractors explains the risks and how to manage them.
Development And Collaboration Agreements
When working with agencies or co‑developing with partners, a strong Software Development Agreement sets the rules around deliverables, milestones, acceptance, IP assignment, moral rights waivers and confidentiality. If you’re sharing pre‑existing components or libraries, you can layer in a targeted licence so each party knows what they can (and can’t) do with the code.
Licensing And Distribution
If you commercialise your software, you’ll need standard terms that fit your model - on‑prem, SaaS, OEM or embedded. A tailored Software Licence Agreement helps you control use, sublicensing, reverse engineering, benchmarking, open‑source compliance and audit rights. For broader content or bundled IP, a Copyright Licence Agreement can give partners limited rights while keeping ownership with you.
Website And Data Policies
If you collect any personal data (for user accounts, telemetry, support logs, analytics), UK GDPR and the Data Protection Act 2018 apply. You’ll need a clear, accurate Privacy Policy, lawful bases for processing, and appropriate security measures - especially if logs or datasets reveal aspects of your algorithm. This isn’t just a compliance box‑tick; good data hygiene protects your IP and reputation too.
Internal Use Of AI Tools
Developers increasingly use AI assistants and hosted repositories. That’s fine - but only with strong rules around what can be pasted into third‑party tools and where code is stored. It’s wise to educate your team about ChatGPT confidentiality and apply the same caution to any service that processes sensitive code or logic.
Common Scenarios And How To Handle Them
To make this concrete, here are typical situations we see - and how to stay protected.
“A Contractor Built Our MVP - Who Owns The IP?”
Unless your contract says otherwise, the contractor likely owns the copyright in code they created, granting you only a licence. That’s a risk if you later want to pivot, raise capital or change suppliers. Solve this with a clear assignment in your contractor terms or a stand‑alone IP Assignment so your company owns the code outright.
“We’re Pitching To A Potential Enterprise Client And Need To Share Our Architecture”
Share what you must - but watermark materials, limit what’s disclosed and use a robust NDA. For pilots, consider a restricted trial licence rather than giving access to your full repository. Your licence should prohibit reverse engineering and benchmarking, and it should require confidentiality around performance metrics.
“We’re Open‑Sourcing A Library - Will That Expose Our Algorithm?”
Open‑source can be great for adoption. Keep your secret sauce separate: modularise the algorithm, keep it server‑side, or expose only inputs/outputs via an API. Review third‑party licences carefully before you publish, and make sure your own licence choice aligns with your commercial strategy.
“A Competitor Launched A Product With The Same Features”
Feature overlap doesn’t automatically mean infringement. If they copied your actual code or lifted protectable parts of its structure or documentation, copyright claims may be available. If an ex‑employee is involved, trade secret misuse may be in play. Gather evidence (timestamps, access logs, diffs) and get advice early - the remedy will turn on what was copied and how.
“We Want To File A Patent”
Pause public disclosure until you’ve had a specialist assess whether your invention produces a technical effect. If viable, you might file a provisional application while continuing development. If not, double down on trade secret controls and tighten contracts.
Frequently Asked Questions
Can A Computer Program Algorithm Be Copyrighted In The UK?
No - the algorithm itself (the ideas, methods and logic) isn’t protected by copyright. Copyright protects your expression of it: the specific code, documentation and other authored materials.
If Someone Re‑Implements My Algorithm In New Code, Is That Infringement?
Not necessarily. If they independently write different code that achieves the same functionality without copying your code or protectable structure/expression, that typically isn’t copyright infringement. You may still have claims if they misused your confidential information or breached contract.
What About Database Rights Or Design Rights?
Database rights can protect a database where there’s been substantial investment in obtaining, verifying or presenting data - but they don’t protect algorithms. UK design rights relate to the appearance of products, not software logic.
Should I Publish A Paper Or Blog Post About My Algorithm?
Publishing can help marketing and recruitment, but it weakens your trade secret position and could affect patent options. Share high‑level principles; keep implementation details and tuning secret unless you’ve chosen a deliberate open strategy.
What’s The Best Single Step I Can Take Today?
Make sure you own your code and you’ve got strong confidentiality terms across staff and suppliers. From there, add the right licensing, data protection and operational controls for your model.
A Simple Blueprint To Get Protected
If you’re wondering where to start, here’s a practical sequence:
- Audit what you have: repositories, documentation, datasets, third‑party components
- Confirm ownership: employment terms, contractor agreements, and any needed IP Assignment
- Lock down confidentiality: NDAs, access controls, internal practices
- Set your commercial model: choose a Software Licence Agreement or SaaS terms that fit
- Prepare collaboration terms: a clear Software Development Agreement for any external builds
- Sort your data compliance: publish an accurate Privacy Policy and align internal practices
- Patent check: if you suspect a genuine technical contribution, get a specialist view before disclosing
- Educate your team: especially around open‑source use and AI tooling, supported by policy and process
It can feel like a lot, but taking these steps early will save you headaches later - and make due diligence conversations much smoother when customers, partners or investors ask the hard questions.
Key Takeaways
- In the UK, the answer to “can a computer program algorithm be copyrighted?” is no for the idea itself - but yes for the code and documentation that express it.
- Protect algorithmic know‑how with trade secret measures: confidentiality clauses, access controls and disciplined disclosure practices.
- Own your code outright through the right contracts - use a Software Development Agreement for builds and an IP Assignment where needed.
- Commercialise safely with a clear Software Licence Agreement and tight restrictions around reverse engineering, benchmarking and disclosure.
- If your algorithm solves a technical problem, consider a patent strategy - but get advice before any public disclosure.
- Back everything up with strong data practices and an accurate, compliant Privacy Policy if you handle personal data.
- Educate your team on appropriate use of AI tools and open‑source to avoid accidental leaks of sensitive logic.
If you’d like tailored help protecting your software, you can reach us at 08081347754 or team@sprintlaw.co.uk for a free, no‑obligations chat.


