LicensePlain 中文 visits —
Home / Compare / MIT License vs Apache License 2.0
MIT vs Apache-2.0Permissive · Permissive

MIT License vs Apache License 2.0

Same permissions, different paperwork.

CompatibilityBoth ways

Both let you ship a closed product and sell it. Apache-2.0 adds three things MIT has no concept of: an explicit patent grant, a NOTICE file convention, and the rule that modified files must be marked. MIT is shorter and needs nothing but the notice.

Side by side

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

AttributeMIT LicenseApache License 2.0
OSI approvedYesYes
FSF free licenceYesYes
Commercial useYesYes
Closed-source productYesYes
Patent grantNoYes
Trademark grantNoNo
Notice requiredYesYes
Mark modified filesNoYes
Disclose sourceNothingNothing
Same licence coversNothingNothing
Network clauseNoNo
Link into proprietaryYesYes
Relicense freelyYesPartly

What actually differs

  • Patent grant — No for MIT License, Yes for Apache License 2.0.
  • Mark modified files — No for MIT License, Yes for Apache License 2.0.
  • Relicense freely — Yes for MIT License, Partly for Apache License 2.0.

Same in both: OSI approved, FSF free licence, Commercial use, Closed-source product, Trademark grant, Notice required, Disclose source, Same licence covers, Network clause, Link into proprietary.

Which one to pick

MIT License

Default for libraries and small tools that want maximum adoption.

Licence page

Apache License 2.0

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

Licence page

Can you mix them?

MIT License → Apache License 2.0

compatible

Apache License 2.0 → MIT License

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 Apache License 2.0 in the same project?

Both let you ship a closed product and sell it.

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.