# Dual Licensing

> One code base, two licenses to pick from. Often one is free and open, and one is paid.

**Field:** Software Development  
**Category:** Product & Releases  
**Also known as:** Dual License, Dual-Licensed Software, Multi-Licensing

## Think of it like

It is like a bakery with two prices. Share your recipe and the bread is free, or pay and keep it.

## Definition

Dual licensing means one owner offers the same code under two licenses, and you pick one. Often one is a copyleft license, like the GPL, and it is free. The other is a paid license that lets you keep your own code closed. Open projects get free use, and companies pay for the right to stay closed. The owner must hold the rights to all the code to do this.

## Example

Jack's firm puts a GPL chart library in a closed app. It does not want to open its code, so it pays for the other license.

## Why it matters

It is how many open source companies earn money. Knowing it shows you a legal path when copyleft does not fit.

## Common mistake

Thinking anyone can do this with a project. The owner must hold the rights to every line, often by a signed agreement.

## Three principles

- **One code, two licenses.** The user picks one.
- **Free or paid.** Copyleft for free, closed for pay.
- **Needs all the rights.** The owner must hold every line.

## Related terms

- [Software License](https://learn.benibix.com/term/development/software-license)
- [Copyleft](https://learn.benibix.com/term/development/copyleft)
- [GNU General Public License (GPL)](https://learn.benibix.com/term/development/gnu-gpl)
- [Contributor License Agreement (CLA)](https://learn.benibix.com/term/development/contributor-license-agreement)
- [Proprietary Software](https://learn.benibix.com/term/development/proprietary-software)

![Three panels. Dual licensing: one codebase with two arrows, one to a free GPL copy and one to a paid commercial licence. Contributor licence agreement: a contributor signs before the code is merged, so the owner holds the rights it needs. SPDX identifier: a package.json line, license: MIT, and a file header, SPDX-License-Identifier: Apache-2.0, read by a scanning tool. A note under the first panel says source-available code can be read but not used freely.](https://learn.benibix.com/diagrams/dev5-license-models.svg)

---

Source: https://learn.benibix.com/term/development/dual-licensing
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
