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

MIT License vs GNU GPL v2.0

MIT into GPL-2.0 is fine; the reverse is not.

CompatibilityOne way

The same one-way street as with GPL-3.0, and the same trap: a project that says “GPL-2.0 or later” can take the merge one step further than a project pinned to GPL-2.0-only.

Side by side

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

AttributeMIT LicenseGNU GPL v2.0
OSI approvedYesYes
FSF free licenceYesYes
Commercial useYesYes
Closed-source productYesNo
Patent grantNoPartly
Trademark grantNoNo
Notice requiredYesYes
Mark modified filesNoYes
Disclose sourceNothingDistribution
Same licence coversNothingThe whole work
Network clauseNoNo
Link into proprietaryYesNo
Relicense freelyYesNo

What actually differs

  • Closed-source product — Yes for MIT License, No for GNU GPL v2.0.
  • Patent grant — No for MIT License, Partly for GNU GPL v2.0.
  • Mark modified files — No for MIT License, Yes for GNU GPL v2.0.
  • Disclose source — Nothing for MIT License, Distribution for GNU GPL v2.0.
  • Same licence covers — Nothing for MIT License, The whole work for GNU GPL v2.0.
  • Link into proprietary — Yes for MIT License, No for GNU GPL v2.0.
  • Relicense freely — Yes for MIT License, No for GNU GPL v2.0.

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

Which one to pick

MIT License

Default for libraries and small tools that want maximum adoption.

Licence page

GNU GPL v2.0

Legacy kernel-adjacent and embedded projects that never upgraded.

Licence page

Can you mix them?

MIT License → GNU GPL v2.0

compatible

GNU GPL v2.0 → MIT License

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 MIT License and GNU GPL v2.0 in the same project?

The same one-way street as with GPL-3.0, and the same trap: a project that says “GPL-2.0 or later” can take the merge one step further than a project pinned to GPL-2.0-only..

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.