OpenSource Risk Experts
Map your blast radius

GLOSSARY / DEFINITION

What is a derivative work

A derivative work is the concept that decides whether a copyleft license reaches into your own code. Understanding what a derivative work is, and where the boundary sits, is central to reading the obligations that come with copyleft open source.

Definition

A derivative work is new software that is based on, adapted from, or incorporates existing software in a way that copyright law treats as derived from the original. In the open source context, the question is whether your software counts as a derivative work of a component you have used. If it does, the license that governs that component can reach your code and impose its conditions on it. If it does not, those conditions stay with the original. The boundary is drawn by copyright law and by how a specific license defines its scope, which means the precise line is a legal determination and belongs with your own counsel. What matters for risk is recognizing when the question is live.

Why a derivative work matters for license risk

The reason the concept carries weight is copyleft. A permissive license asks little, so whether your code is a derivative work of a permissively licensed component rarely changes much. A copyleft license is different. Licenses such as the GPL and the GNU AGPL attach reciprocal obligations to derivative works: if your software is a derivative work of the copyleft component, the license can require you to release your own source code under the same terms. For an organization that ships proprietary software, that is a material outcome. The classification is therefore not academic. It determines whether a copyleft obligation reaches your code or stops at the component boundary. For the broader mechanism, see what is copyleft.

Where the boundary is contested

The hardest part is that the boundary is genuinely disputed in places. Combining two pieces of code by copying source from one into another is widely accepted as creating a derivative work. Far less settled is linking, where one program calls another at build time or run time. Strong copyleft licenses are often read to treat linked code as part of a single combined derivative work, while a Lesser GPL deliberately includes a linking exception so that linking to the library does not pull your code into the same obligation. The answer turns on the type of linking, the structure of the software, and the wording of the license. Because reasonable parties disagree, the safest posture is to identify where the question arises and resolve it with counsel rather than assume. The network dimension adds another layer: the GNU AGPL extends the trigger to software offered over a network, not only software distributed as a file.

Derivative work versus distribution

It helps to separate two questions that often travel together. Whether something is a derivative work is about how your code relates to the original. Whether you distribute is about whether you convey the software to anyone else. Many copyleft obligations are triggered only when a derivative work is also distributed, so both conditions usually need to be met before the obligation bites. This is why a copyleft component used purely internally, never shipped, often carries less practical exposure than the same component in a product you sell. The exception is a network license like the GNU AGPL, which can treat offering software as a service as the equivalent of distribution. For a buyer mapping exposure, the practical step is to record which copyleft components are present, how they are combined with your code, and whether the software reaches users, then to confirm the classification with counsel. Doing this within an open source license risk assessment turns an open ended legal worry into a bounded, documented question.

SEE YOUR EXPOSURE

Find where copyleft reaches your code

An open source license risk assessment maps every copyleft component, records how it combines with your software, and flags where the derivative work question needs counsel. Independent, buyer side, paid only by you.

Not ready to talk? Read the free open source license risk guides first.

Start a risk assessment

COMMON QUESTIONS

Questions buyers ask.

What is a derivative work?

A derivative work is new software that is based on or incorporates existing software in a way that, under copyright law, creates a work derived from the original. In open source, whether your code is a derivative work of a component determines whether that component's license obligations reach into your code. The precise boundary is a legal question for your counsel.

Why does a derivative work matter for license risk?

Because copyleft licenses such as the GPL and the GNU AGPL attach their reciprocal obligations to derivative works. If your software is a derivative work of a copyleft component, the license can require you to release your own source under the same terms. The classification therefore decides whether a copyleft obligation reaches your proprietary code.

Does linking to a library create a derivative work?

It depends on the type of linking and the specific license, and it is genuinely contested. Strong copyleft licenses are often read to treat linked code as part of a combined derivative work, while a Lesser GPL includes an exception for linking. Because the answer turns on technical and legal detail, the boundary should be confirmed with your own counsel.

Is a derivative work the same as distribution?

No. A derivative work is about how your code relates to the original. Distribution is about whether you convey the software to others. Many copyleft obligations are triggered only when a derivative work is distributed, so both conditions usually matter, and a network license such as the GNU AGPL can extend the trigger to offering software over a network.

Is this definition legal advice?

No. This is commercial and licensing risk advisory, not legal advice. Whether a specific piece of software is a derivative work is a legal determination, and it should be made with your own counsel.