LicensePlain 中文 visits —
Home / Compare / Apache License 2.0 vs GNU GPL v3.0
Apache-2.0 vs GPL-3.0Permissive · Strong copyleft

Apache License 2.0 vs GNU GPL v3.0

Apache into GPLv3 works; GPLv3 into Apache does not.

CompatibilityOne way

GPLv3 was written partly to be compatible with Apache-2.0, so Apache code can enter a GPLv3 project with its patent terms intact. The other direction fails because Apache-2.0 imposes additional restrictions that GPLv3 forbids you from adding.

Side by side

Rows that differ are marked. Everything else behaves the same in both licences.

AttributeApache License 2.0GNU GPL v3.0
OSI approvedYesYes
FSF free licenceYesYes
Commercial useYesYes
Closed-source productYesNo
Patent grantYesYes
Trademark grantNoNo
Notice requiredYesYes
Mark modified filesYesYes
Disclose sourceNothingDistribution
Same licence coversNothingThe whole work
Network clauseNoNo
Link into proprietaryYesNo
Relicense freelyPartlyNo

What actually differs

  • Closed-source product — Yes for Apache License 2.0, No for GNU GPL v3.0.
  • Disclose source — Nothing for Apache License 2.0, Distribution for GNU GPL v3.0.
  • Same licence covers — Nothing for Apache License 2.0, The whole work for GNU GPL v3.0.
  • Link into proprietary — Yes for Apache License 2.0, No for GNU GPL v3.0.
  • Relicense freely — Partly for Apache License 2.0, No for GNU GPL v3.0.

Same in both: OSI approved, FSF free licence, Commercial use, Patent grant, Trademark grant, Notice required, Mark modified files, Network clause.

Which one to pick

Apache License 2.0

Corporate-friendly default when patents matter — infrastructure SDKs and anything a company may want to adopt.

Licence page

GNU GPL v3.0

New GNU projects and anything that wants patent language and Apache-2.0 compatibility.

Licence page

Can you mix them?

Apache License 2.0 → GNU GPL v3.0

compatible

GNU GPL v3.0 → Apache License 2.0

not compatible

Compatibility statements are one-way and general. How you combine the code — linking, subprocess, copying files — can change the answer, so check the FSF list for anything unusual.

Questions

Can I use Apache License 2.0 and GNU GPL v3.0 in the same project?

GPLv3 was written partly to be compatible with Apache-2.0, so Apache code can enter a GPLv3 project with its patent terms intact.

What happens if I get the direction wrong?

You end up distributing code under terms its authors never granted — which is copyright infringement, not a technicality. The fix is usually to relicense the outbound side to the stricter licence.

Do both licences require a NOTICE file?

Apache-2.0 does when the upstream project ships one; MIT and the BSD licences have no NOTICE convention at all.