Algorithms on their own cannot be patented, but an invention that applies an algorithm to solve a specific technical problem often can. So the real question behind “can algorithms be patented” is whether your claim describes a genuine technical improvement or just a mathematical process dressed up in software. If it’s the former, you still have to clear novelty, non-obviousness, and a detailed disclosure requirement, and then keep paying maintenance fees to hold the patent for its full 20-year term.
Why a Pure Algorithm Is Not Patentable
Federal patent law defines eligible subject matter broadly: any new and useful process, machine, manufactured item, or composition of matter can qualify.1Office of the Law Revision Counsel. 35 U.S. Code 101 – Inventions Patentable Courts have carved out three exceptions to that language: laws of nature, natural phenomena, and abstract ideas.2United States Patent and Trademark Office. Manual of Patent Examining Procedure 2106 – Patent Subject Matter Eligibility Algorithms are mathematical processes, which puts them squarely in the abstract-idea category.
The modern test for deciding whether an algorithm-based invention escapes that category comes from the Supreme Court’s 2014 decision in Alice Corp. v. CLS Bank International.3Justia. Alice Corp. v. CLS Bank Int’l It has two steps.
Step one asks whether the claim is directed to an abstract idea. A mathematical calculation, a method of organizing human activity, or a mental process that could be done with pen and paper will almost always fall into this bucket.
Step two asks whether the claim adds an inventive concept that transforms the abstract idea into something patent-eligible. Running the algorithm on a standard computer does not count. As the Court put it, stating an abstract idea and adding the words “apply it with a computer” simply combines two steps with the same deficient result.3Justia. Alice Corp. v. CLS Bank Int’l The invention has to do something genuinely new at a technical level.
What Makes an Algorithm-Based Invention Patentable
The key to passing the Alice test is tying the algorithm to a concrete technical improvement rather than presenting the algorithm itself as the invention. USPTO guidance looks for a “practical application” — something beyond the math that delivers a real-world result or measurably improves how a computer system works.
Claims That Tend to Succeed
The classic example is the 1981 Supreme Court case Diamond v. Diehr, involving a process for curing synthetic rubber. The inventors used a mathematical equation to continuously monitor temperature inside the mold and signal the press to open at the correct moment. The Court held the claim was patent-eligible because the inventors weren’t trying to patent the equation; they were patenting a process that used the equation to produce a better physical result.4Justia. Diamond v. Diehr, 450 U.S. 175 (1981)
More recent algorithm patents follow the same logic. An algorithm that refines MRI scan data to produce clearer medical images is solving a technical problem in imaging, not just doing math. A machine-learning model that detects network intrusions by identifying anomalous packet patterns improves cybersecurity infrastructure. A data compression algorithm that reduces file sizes through a novel method improves how computer systems handle storage and transmission. In each case, the algorithm is a component of a larger invention that produces a specific technical benefit.
Claims That Tend to Fail
An algorithm that models financial risk, prices insurance products, or matches buyers with sellers will almost certainly be rejected unless the claim points to a technical improvement beyond the business logic. The same goes for algorithms that automate tasks humans could do mentally, like sorting data or performing calculations, unless the claim identifies a specific improvement to the computer’s own functioning. The examiner’s central question is whether the algorithm is the whole invention or a tool within a larger technical solution.
The Other Patentability Requirements
Even an algorithm that clears the abstract-idea hurdle still has to satisfy three more requirements, and each one trips up applicants for different reasons.
Novelty
The invention must be genuinely new. If the same invention was already patented, described in a published paper, used publicly, or offered for sale before you filed, you lose.5Office of the Law Revision Counsel. 35 U.S. Code 102 – Conditions for Patentability; Novelty There is one safety valve: if you or a co-inventor published or demonstrated the invention, you have a one-year grace period to file before that disclosure counts as disqualifying prior art. But if someone else independently published the same concept first, the grace period doesn’t apply. For machine learning and other fields where researchers routinely post preprints, this timeline matters.
Non-Obviousness
A hypothetical person with ordinary skill in the field, looking at everything already published, must not find the invention an obvious next step.6Office of the Law Revision Counsel. 35 U.S. Code 103 – Conditions for Patentability; Non-Obvious Subject Matter Combining two known techniques in a predictable way, such as applying a standard neural network architecture to a new dataset, is often considered obvious even if nobody has done it before. The inventive step usually has to be in how the algorithm works, not just where it’s applied.
Enablement
The application must describe the invention thoroughly enough for someone skilled in the field to build and use it without excessive experimentation.7Office of the Law Revision Counsel. 35 U.S. Code 112 – Specification For algorithm-based inventions, you can’t just describe what the algorithm does at a high level and skip the logic that makes it work. Flowcharts of the sequence of steps, diagrams showing how servers, databases, and user devices interact, and pseudocode explaining the core logic are all expected. Proprietary source code isn’t required, but a competent engineer must be able to implement the invention from what you disclose. Vague descriptions like “a machine-learning model that analyzes data to detect fraud” get rejected. The examiner wants to know what kind of model, how it processes the data, and what makes the approach different.
The written description also has to clearly identify the problem the algorithm solves and why the solution is both new and technically meaningful. The same description that satisfies enablement often provides the evidence of a practical application that gets you past the Alice hurdle in the first place.
Filing the Application
Strategic choices at the filing stage can significantly affect both cost and how quickly you get a decision.
Provisional vs. Nonprovisional
A provisional application establishes an early filing date and gives you 12 months to refine the invention before committing to the full nonprovisional process. It isn’t examined; it stakes your claim to the priority date. The filing fee is modest: $325 for a large entity, $130 for a small entity, or $65 for a micro entity.8United States Patent and Trademark Office. USPTO Fee Schedule In software and AI, where the technology evolves quickly, an early filing date can be the difference between getting a patent and losing to prior art.
The nonprovisional application is the real thing. It includes a detailed specification, drawings, claims defining the scope of protection, and an abstract. This is what the USPTO examines.9United States Patent and Trademark Office. Nonprovisional (Utility) Patent Application Filing Guide
Filing Fees
For a nonprovisional utility application filed electronically, the combined basic filing, search, and examination fees are:
- Large entity: $2,000 ($350 filing, $770 search, $880 examination)
- Small entity: $800 ($140 filing, $308 search, $352 examination)
- Micro entity: $400 ($70 filing, $154 search, $176 examination)
Small entity status applies to independent inventors, businesses meeting SBA size standards, and nonprofits that haven’t licensed rights to a larger company.10eCFR. 37 CFR 1.27 – Definition of Small Entities and Establishing Status Micro entity status cuts fees by 80% compared to large-entity rates but requires every inventor and owner to qualify as a small entity and to have gross income no higher than $251,190.11United States Patent and Trademark Office. Micro Entity Status The income limit adjusts annually.
Timeline and Expedited Review
After filing, the USPTO assigns the application to an examiner with technical expertise in the field. As of early 2026, the average wait for a first office action is about 22 months, and total pendency from filing to final disposition averages roughly 28 months for applications without continued examination requests.12United States Patent and Trademark Office. Patents Pendency Data Applications with back-and-forth through continued examination requests average closer to 45 months total.
The Track One prioritized examination program aims for a final decision within about 12 months.13United States Patent and Trademark Office. USPTO’s Prioritized Patent Examination Program The extra fee is $4,515 for large entities, $1,806 for small entities, or $903 for micro entities, on top of the standard filing fees.8United States Patent and Trademark Office. USPTO Fee Schedule
Expect a Section 101 Rejection
For algorithm-based inventions, expect at least one office action rejecting the claims under Section 101 and citing the Alice test. The response window is typically three months, extendable up to six months for a fee.14United States Patent and Trademark Office. Manual of Patent Examining Procedure – 710 Period for Reply Responses usually involve rewriting claims to emphasize the technical aspects of the invention or submitting arguments explaining why the algorithm goes beyond an abstract idea. Several rounds are common.
Keeping the Patent in Force
A utility patent lasts 20 years from the filing date, but only if you pay three rounds of maintenance fees.15Office of the Law Revision Counsel. 35 U.S. Code 154 – Contents and Term of Patent; Provisional Rights Miss a payment and the patent expires early. The fees escalate over the life of the patent:8United States Patent and Trademark Office. USPTO Fee Schedule
- 3.5 years after grant: $2,150 large, $860 small, $430 micro
- 7.5 years after grant: $4,040 large, $1,616 small, $808 micro
- 11.5 years after grant: $8,280 large, $3,312 small, $1,656 micro
Each payment has a six-month window that opens six months before the due date. If you miss the window, a six-month grace period allows late payment with a surcharge.16United States Patent and Trademark Office. Manual of Patent Examining Procedure Section 2504 Miss the grace period and the patent lapses. Some patent holders in fast-moving fields intentionally let later maintenance fees drop because the underlying technology has become obsolete. For patents on foundational algorithms with staying power, the total maintenance cost of $14,470 at large-entity rates over 12 years is modest compared to the competitive protection.
When to Consider Trade Secret or Copyright Instead
A patent requires public disclosure. Anyone can read your patent and learn exactly how your algorithm works. For some inventions, that trade-off doesn’t make sense.
Trade secret protection covers confidential business information that derives economic value from being kept secret. Google’s search ranking algorithm and many proprietary trading models are protected this way. The protection lasts indefinitely as long as the company takes reasonable steps to maintain secrecy: access controls, non-disclosure agreements, limited distribution. If someone misappropriates a trade secret, the Defend Trade Secrets Act provides a federal cause of action, with injunctions, damages for actual losses and unjust enrichment, and exemplary damages up to double the actual damages for willful theft.17Office of the Law Revision Counsel. 18 U.S. Code 1836 – Civil Proceedings The catch: trade secrets offer no protection against independent development or reverse engineering, and they collapse the moment the information becomes public.
Copyright automatically protects the source code you write, without registration, though registration strengthens enforcement. For an individual author, it lasts life plus 70 years. For work made for hire, which covers most code written by employees, protection runs 95 years from publication or 120 years from creation, whichever expires first.18United States Copyright Office. Circular 30 – Works Made for Hire Copyright only protects the literal code, not the underlying idea or method. A competitor who writes entirely new code that performs the same function hasn’t infringed.
Patents give you the broadest offensive weapon: the right to stop anyone from making, using, or selling the inventive process, even if they developed it independently. But they demand full public disclosure and expire after 20 years. Trade secrets avoid disclosure and can last forever, but collapse the moment the information gets out. Copyright is essentially free and long-lasting, but won’t stop a clean-room reimplementation. Many companies use a combination: patenting the core inventive method, keeping implementation details as trade secrets, and relying on copyright to prevent wholesale code copying.