Dual licensing is a software licensing model in which the copyright holder offers the same code under two different licenses, typically a copyleft open source license such as the GPL or AGPL and a paid commercial license without copyleft obligations. Each recipient chooses which set of terms to accept, and the choice determines what that recipient may do with the code.
In software licensing, the model lets a vendor publish its product openly while still earning revenue from companies that cannot or will not comply with copyleft. It depends on one essential condition: the vendor must control all the copyright in the code, or hold sufficient rights from every contributor, because only the rights holder can grant a second license.
How dual licensing works in practice
Dual licensing works by separating users according to their obligations. Developers who accept the open source license may use, modify and redistribute the code for free, but they must follow its conditions, which under a strong copyleft license include releasing derivative works under the same license and providing source code.
Organizations that want to embed the code in closed-source products or offer it without sharing their modifications buy the commercial license instead. That license grants the same technical rights but removes the copyleft duty, and it usually adds warranties, indemnification and support that the open license disclaims.
The table below compares the two license tracks offered under a typical dual licensing arrangement.
| Aspect | Open source track | Commercial track |
|---|---|---|
| Price | Free of charge | License fee or subscription |
| Source disclosure | Required for distributed derivative works | Not required |
| Use in proprietary products | Restricted by copyleft | Permitted |
| Warranty and indemnity | Disclaimed | Usually included |
| Support and updates | Community channels | Contractual support |
| Typical users | Open source projects, hobbyists, researchers | Product vendors, OEMs, enterprises |
Why copyright ownership is the decisive requirement
Dual licensing is legally possible only when the offering party holds the right to relicense every line of code. If outside contributors keep copyright in their patches, the vendor may distribute their work only under the open license they contributed under and cannot sell it under commercial terms.
Vendors solve this problem with contributor agreements. A Contributor License Agreement (CLA) grants the vendor a broad license, often including the right to relicense, while a copyright assignment transfers ownership outright. Both create friction for contributors, and many developers decline to sign them, which tends to shrink the external contributor community around dual-licensed projects.
The comparison below summarizes the main ways a vendor can secure relicensing rights.
| Mechanism | What the vendor receives | Effect on contributors |
|---|---|---|
| Copyright assignment | Full ownership of contributed code | Highest friction; some refuse |
| CLA with relicensing grant | Broad license including relicensing | Moderate friction; widely used |
| Developer Certificate of Origin | Assurance of origin only, no relicensing right | Low friction; does not enable dual licensing |
| In-house development only | Ownership through employment | No external contributions accepted |
Choice of the open license and its commercial effect
The commercial value of dual licensing depends on how strongly the open license compels disclosure. A permissive license such as the MIT License or the Apache License already allows proprietary use, so almost nobody would pay to avoid it. Vendors therefore pair the commercial license with a strong copyleft license.
| Open license | Copyleft strength | Demand for commercial license |
|---|---|---|
| MIT License, BSD license | None (permissive) | Very low |
| Apache License 2.0 | None, with patent grant | Very low |
| LGPL, Mozilla Public License | Weak, file or library level | Low to moderate |
| GPL | Strong, triggered by distribution | High for embedded and desktop products |
| AGPL | Strong, also triggered by network use | High for hosted and cloud services |
The AGPL became the preferred open track for server software because the GPL does not require source disclosure when software is only offered as a network service. Under the AGPL, a company running a modified version for remote users must share its changes, which makes the commercial license attractive for software-as-a-service providers.
Dual licensing compared with related business models
Dual licensing is one of several ways to fund open development, and it is often confused with open core and source-available models. The key difference is that under dual licensing the same code base is available under both licenses, whereas other models split features or restrict the open terms themselves.
- Open core keeps a base product open and sells separate proprietary extensions; the extensions are never released under an open license.
- Source-available licensing, such as the Business Source License or the Server Side Public License, publishes code under terms that do not meet the Open Source Definition.
- Support and services models release everything openly and charge for hosting, consulting or guaranteed response times.
- Multi-licensing offers more than two licenses, for example GPL, LGPL and a commercial option, to suit different integration needs.
Well-known examples of dual licensing include the MySQL database, offered under the GPL and a commercial license, and the Qt application framework, available under the GPL, the LGPL and commercial terms.
Risks and common misunderstandings
Both vendors and users make predictable mistakes with dual licensing. Users often assume that internal use triggers copyleft, although the GPL obligations generally apply only on distribution, and the AGPL adds network interaction with users. Legal review of the exact license text remains essential.
Vendors face their own risks. Forks created under the open license can compete with the vendor’s commercial offering, and a change of ownership can shift licensing policy in ways that alarm the community. Accepting a single contribution without a CLA can also break the relicensing chain for the affected code, which then cannot be sold under commercial terms.
The short version
Dual licensing means one program, two sets of rules, and the user picks one. The free set lets anyone use the program, provided that they share their own improvements openly on the same terms.
A company that wants to keep its own code secret can buy the paid set of rules instead. The software is identical; only the conditions differ. This works only because the creator owns the whole program and can therefore decide how it is shared.
Where it makes a difference
A medical device manufacturer wants to use an embedded database inside the control unit of an infusion pump. The database is dual-licensed under the GPL and a commercial license. Shipping the device with the GPL version would require the manufacturer to offer the source code of the linked firmware to every buyer, which conflicts with its regulatory documentation and its trade secrets.
After a legal review, the manufacturer buys a commercial license priced per unit shipped, which also provides indemnification and a guaranteed patch window for security issues. The firmware stays proprietary, the database vendor gains revenue that funds further open development, and hobby projects keep using the same database for free under the GPL.