Copyright Engine
  • Monitoring
  • DMCA Takedowns
LoginStart my copyright
Copyright Engine

Any questions?

We're available Monday through Friday from 9am - 6pm CST

Product

  • Registration
  • Monitoring
  • DMCA Takedowns

Company

  • About
  • Contact

Resources

  • Blog
  • FAQ

Legal

  • Terms of Service
  • Privacy Policy
  • Legal Services Agreement

Copyright Engine provides information and software only. Use of Copyright Engine is subject to our Terms of Service, and Privacy Policy.

The Applicable Fees will be based on the specifics of your application but generally range from $44 and $125 and will be charged and collected at checkout.

  1. Home|
  2. Resource Center|
  3. Software and digital|
  4. Can You Copyright an Algorithm?

Can You Copyright an Algorithm?

Written byCopyright Engine

Published on November 20, 2026

Estimated Read Time: 7 minutes

Table of Contents

Is an algorithm copyrightable under U.S. law?Why can't an algorithm be copyrighted by itself?What about the math?What does copyright protect in a piece of software?If someone copies my algorithm in a different language, is it infringement?Can an algorithm be protected by a patent instead?How do you register the code that implements your algorithm?Your next step: protect what you can, and decide on the rest
Can You Copyright an Algorithm?

Table of Contents

Is an algorithm copyrightable under U.S. law?Why can't an algorithm be copyrighted by itself?What about the math?What does copyright protect in a piece of software?If someone copies my algorithm in a different language, is it infringement?Can an algorithm be protected by a patent instead?How do you register the code that implements your algorithm?Your next step: protect what you can, and decide on the rest

Key Takeaways

  • Copyright covers your code and documentation, never the abstract method or math behind it, under 17 U.S.C. § 102(b).
  • Copying your logic in a fresh rewrite isn't infringement, but a line-by-line translation of your code can be.
  • Register the program as a computer program in eCO: $45 Single Application if you're the sole author and owner, otherwise $65.
  • If the method itself is novel, talk to a patent attorney; if it must stay private, consider trade secret protection.
  • Keep dated commits and drafts so you can prove what you wrote and when if a dispute comes up.

Is an algorithm copyrightable? Not as a method or idea, but the code you write to implement it is protected. Here's where the line sits and how to register your code.

Is an algorithm copyrightable? Not by itself. Copyright doesn't protect an algorithm as a method, process or idea, but it does protect the specific code and written text you create to express it. You own the writing, not the approach behind it, and that gap decides what you can stop others from copying.

Most developers learn this the hard way. You spend months on a clever ranking routine or compression trick, then see a competitor ship something that behaves the same way. Can you do anything? Sometimes, but only if they copied your actual code or your documentation, not just your idea.

Here's how the line gets drawn, what you can still protect, and what to do about the rest.

Is an algorithm copyrightable under U.S. law?

The short answer comes from 17 U.S.C. § 102(b). It says copyright never extends to an idea, procedure, process, system or method of operation, however it's described or illustrated. An algorithm is a step-by-step procedure for solving a problem. That puts it squarely on the unprotected side of the line.

Think of a recipe. The list of ingredients and the method (cream the butter, fold in the eggs) are free for anyone to use. Only the particular words and photos you wrote around the recipe belong to you. Algorithms work the same way.

So if your sorting method, pricing formula or recommendation logic is the thing you want locked down, copyright can't do that job. It was never designed to.

Why can't an algorithm be copyrighted by itself?

Copyright exists to reward creative expression, and the Copyright Act of 1976 deliberately keeps ideas free so that everyone can build on them. If one person could own the concept of binary search, nobody else could write a search function without permission. Progress would stall.

This is the core of the algorithm idea vs expression copyright question. Courts have long separated the two. The idea is the problem-solving approach. The expression is the particular way you wrote it down: your variable names, your structure, your comments, your organization of modules.

There's also a practical wrinkle called merger. When only a handful of ways exist to express an idea, the idea and its expression effectively merge, and copying that narrow expression isn't infringement. A very short, obvious routine often lands here.

What about the math?

People often ask whether does copyright cover the math behind software is a fair question when the formula took real genius. It's a fair question, and the answer is still no. Mathematical formulas and natural principles are facts about how the world works. Discovering one doesn't make you its author.

What does copyright protect in a piece of software?

Quite a lot, just not the method. Source code and object code are both treated as literary works under U.S. law. That's why copyright protection for algorithms really means protection for the code that carries them out. In practice, protection can cover:

  • The source code as you wrote it, line by line
  • The compiled object code
  • Original selection, structure and organization of the program, where it goes beyond what function requires
  • Written documentation, such as a design spec or manual
  • Original screen text and content bundled with the program

What it doesn't cover is the logic you'd draw on a whiteboard. Two programmers can solve the same problem with the same method and each own their own, independently written code. Neither infringes the other.

Functions and interface definitions raise their own questions, which we cover in our guide on whether you can copyright an API.

If someone copies my algorithm in a different language, is it infringement?

Usually not, if all they took was the method. Suppose you write a route-planning routine in Python and a competitor reads how it works, then writes their own version in Rust from scratch. They've used your idea. They haven't copied your expression.

It becomes infringement when they copy the expression itself. A line-by-line translation of your code into another language is a different story. That's a derivative work, and making one without permission can infringe. Copying your comments, your unusual structure or your documentation can also cross the line.

Courts look at whether the copied material is original and protectable, then whether it's substantially similar once the unprotected ideas are filtered out. That filtering is where most software disputes are won or lost.

Evidence matters here. Dated commits, early drafts and a registration certificate make it far easier to show what you wrote and when. If you're facing a real dispute, talk to a copyright attorney early, because filtering ideas from expression is fact-heavy work.

Can an algorithm be protected by a patent instead?

Sometimes. A patent can protect a new, useful and non-obvious method, which is exactly what copyright won't touch. But software patents are hard to get. The U.S. Patent and Trademark Office applies strict rules on abstract ideas, and the process is slow and expensive compared with copyright registration.

A patent also requires public disclosure of how your invention works, and it expires after a fixed term. If you're weighing the two routes, our breakdown of copyright versus patent for software covers when each makes sense. Many founders use both: a patent for the novel method, copyright for the code.

Keeping the logic secret is a third option, and it doesn't require filing anything. The tradeoff is that nothing stops someone from legitimately working it out on their own.

How do you register the code that implements your algorithm?

Registering is the practical step you can take today. Registration is optional, but it's what gives you the ability to file an infringement lawsuit in federal court, and it opens the door to statutory damages and attorney's fees in many cases. The broader question of when registration matters is covered in whether you need to register a copyright to be protected.

The general path looks like this:

  1. Create an account in the Copyright Office's eCO system.
  2. Choose the right application. The Single Application costs $45 and fits one author, one work, with the author as owner. Otherwise the Standard Application costs $65.
  3. Describe the work as a computer program and identify what's new in it.
  4. Upload a deposit. For source code, that's typically the first and last 25 pages, with special rules for trade secret material.
  5. Pay the fee and submit.

Your deposit is the code, not a flowchart of the algorithm. If you describe the claim as a method, the Office won't register it. Claim the program's original code and text instead. The detailed steps are in our guide to copyrighting source code.

If eCO feels like a hassle, Copyright Engine prepares and files the application for you, so you can focus on shipping.

Your next step: protect what you can, and decide on the rest

Spend an hour this week sorting your project into three piles. First, the code and documentation you wrote, which is eligible for copyright now. Second, any truly novel method that might justify talking to a patent attorney. Third, logic you'd rather keep private as a trade secret.

Then register the code. It's the cheapest, fastest protection you have, and it starts the clock on your ability to enforce. The algorithm itself stays free for the world. Your implementation of it doesn't have to.

Sources

  1. U.S. Copyright Office. Circular 61: Copyright Registration of Computer Programs.
  2. U.S. Copyright Office. Registration Portal and Guidance.
Back to the article

Frequently asked questions

Yes, the written document itself can be protected as a literary or pictorial work, because the Office treats that as your original expression. But the protection covers only the specific drawing or text. Someone can still read it and implement the same method in their own code without infringing.

No. Publishing code under a license doesn't turn the underlying method into property or take away your copyright in the code. The license simply sets the terms others must follow when reusing your code. The method itself remained unprotected by copyright before you published and stays that way afterward.

It will register the program's original code if it contains enough human authorship. It won't register the algorithm as a process or method. If your application claims the method instead of the code and text, expect a refusal or a request to narrow the claim to the authorship.

Copyright generally doesn't prevent someone from studying how your software behaves and writing independent code that does the same thing. Contract terms, trade secret law or a patent may offer more control. A copyright attorney can tell you which fits your situation, since the answer depends on your facts.

Keep reading

Do You Need to Register a Copyright to Be Protected?

Do you need to register copyright to be protected? No, your work is covered the moment you create it, but automatic protection has sharp limits. Here's when…

Can You Copyright an API?

Is an API copyrightable? Your code and documentation are protected, but the functional interface mostly isn't. Here's what Google v. Oracle decided and what…

Can You Copyright Code Written with AI Tools?

AI coding assistant copyright protects only what a human authored. Here is how much of your AI-assisted code you can claim, who owns it, and how to document it.