Shipping code under a copyleft license like GPL or AGPL does more than share your source. Many of these licenses include an explicit or implicit patent grant, meaning that by distributing your software you may be licensing every patent claim that reads on that software to every downstream recipient — royalty-free, irrevocable, and worldwide. That consequence is easy to miss when you are focused on the copyright side of open source.
What a Patent Grant in a License Actually Does
A patent grant is a promise not to sue. When a copyleft license contains one, you are telling every person who receives your software that they can make, use, sell, and distribute it without infringing any patent you hold that is necessarily practiced by the software you distributed.
The Key Word Is "Necessarily"
Most patent grants in open source licenses are scoped to patents that are necessarily infringed by the licensed work itself. That sounds narrow, but it is not always narrow in practice. If your software cannot function without practicing your patented method, that patent is almost certainly within the grant. The question is not whether you intended to license it — the question is whether a court would find the patent necessarily practiced by what you shipped.
Apache 2.0 Makes It Explicit
The Apache License 2.0 contains a written patent grant that covers patents held by contributors, scoped to their contributions. It also includes a patent retaliation clause that terminates the grant if the recipient sues for patent infringement. GPL version 2 does not contain an explicit patent grant, but courts and commentators have read an implicit one into it based on the license's anti-restriction language. GPL version 3 adds an explicit grant and broader anti-tivoization language. AGPL version 3 follows the same structure as GPL v3. LGPL, MPL 2.0, and EUPL each handle patent grants differently. The license text controls — read it before you distribute.
Where Founders and Companies Get Surprised
Distributing Code That Practices a Pending Patent
You file a patent application, then later open-source a reference implementation that practices the claimed invention. If you distribute that code under Apache 2.0 or GPL v3, you may have granted a patent license before the patent even issued. The grant typically attaches at the time of distribution, not at the time of issuance. By the time your patent grants, every downstream recipient already holds a license.
Contributions to Third-Party Projects
If your engineer contributes code to an open source project, that contribution may carry your company's patent rights with it — not just the engineer's. Contributor License Agreements (CLAs) govern part of this, but the underlying license the project uses also matters. A contribution merged into an Apache 2.0 project triggers that license's patent grant against your company's portfolio for the patents that read on the contribution.
Internal Forks That Escape
Companies sometimes maintain an internal fork of an open source library and then inadvertently publish it — through a public repository, a containerized product, or a cloud deployment that triggers AGPL's network-use provision. Once distributed, the patent grant follows the distribution. Undoing it is not straightforward.
How This Should Change Your Workflow
Before You Open-Source Anything
Before you publish code under a copyleft license, run a check against your pending applications and issued patents. Ask whether the code necessarily practices any claim. If it does, you face a choice: file a continuation or divisional that carves out features you want to commercialize exclusively, narrow the open-source release to avoid the patented method, or accept that you are licensing those claims. That is a business decision, but it needs to be a deliberate one.
Before You Accept Contributions
If you maintain an open source project and accept contributions, your CLA should address what happens to contributor patents. Many well-drafted CLAs require contributors to grant a patent license covering their contributions. Review what your CLA actually says — boilerplate CLAs vary significantly.
License Selection Is a Patent Decision
Choosing between MIT, Apache 2.0, GPL v2, GPL v3, and AGPL is not just a copyright decision. The patent grant scope differs across each one. MIT is silent on patents. Apache 2.0 is explicit. GPL v2 is implicit. GPL v3 and AGPL v3 are explicit and broader. If patent protection matters to your business model, license selection needs input from someone who has read your patent portfolio alongside the license text.
Practical Takeaways
- Distributing software under a copyleft license can create an irrevocable patent license for every downstream recipient, whether or not you intended it.
- The grant typically covers patents your software necessarily practices — if the code cannot work without your patented method, that patent is likely within the grant.
- Apache 2.0 and GPL v3 contain explicit patent grants; GPL v2 carries an implicit one that courts have recognized.
- Run a patent clearance check against your pending and issued applications before you publish any open-source release.
- Engineer contributions to third-party open source projects may carry your company's patent rights, not just the individual contributor's.
- License selection is a patent strategy decision — treat it as one before the code ships, not after.
Draft it, search it, check it — with a human in the loop.
YourPatentAI drafts provisional and non-provisional applications, runs prior-art search with IDS export, and checks claims for §§ 102, 103 and 112 issues before you file.
Get YourPatentAILearn moreThis guide is general education, not legal advice, and does not create an attorney–client relationship. For your specific situation, talk to a registered patent attorney.