Dual licensing

On this page 7

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.

AspectOpen source trackCommercial track
PriceFree of chargeLicense fee or subscription
Source disclosureRequired for distributed derivative worksNot required
Use in proprietary productsRestricted by copyleftPermitted
Warranty and indemnityDisclaimedUsually included
Support and updatesCommunity channelsContractual support
Typical usersOpen source projects, hobbyists, researchersProduct vendors, OEMs, enterprises
The two tracks of a typical dual licensing offer

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.

MechanismWhat the vendor receivesEffect on contributors
Copyright assignmentFull ownership of contributed codeHighest friction; some refuse
CLA with relicensing grantBroad license including relicensingModerate friction; widely used
Developer Certificate of OriginAssurance of origin only, no relicensing rightLow friction; does not enable dual licensing
In-house development onlyOwnership through employmentNo external contributions accepted
Ways to secure the rights needed for dual licensing

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 licenseCopyleft strengthDemand for commercial license
MIT License, BSD licenseNone (permissive)Very low
Apache License 2.0None, with patent grantVery low
LGPL, Mozilla Public LicenseWeak, file or library levelLow to moderate
GPLStrong, triggered by distributionHigh for embedded and desktop products
AGPLStrong, also triggered by network useHigh for hosted and cloud services
How the open license affects demand for a commercial license

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 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.