Skip to main content
FOSSA Logo
Free License Tool

Is Apache 2.0 compatible with MIT?

Apache 2.0-licensed code is compatible with a MIT project. Here is what that means for your obligations, conflicts, and distribution.

The license of the code you want to use.

The license you are applying to your project.

Apache 2.0MIT
Compatible

The short answer

Both licenses are permissive and place minimal restrictions on combining, modifying, and distributing the code.

Key obligations

Retain copyright notices and disclaimers for the Apache 2.0 code.

Potential conflicts

None. Both licenses allow free incorporation into other works.

Distribution notes

Distribute under MIT, respecting the notice requirements of Apache 2.0.

Stop guessing. Start automating.

Modern applications pull in hundreds of transitive dependencies. A manual check can't keep up.

Disclaimer: This tool offers general guidance based on widely accepted open source community norms and does not constitute legal advice. For commercial use, always consult legal counsel or use a dedicated compliance platform like FOSSA to analyze your specific dependency graph.

What this means in practice

Apache License 2.0 is a permissive (+ patent grant) license and MIT License is a permissive license. That combination is generally safe to ship: you can include the Apache 2.0 library in a MIT project as long as you meet the notice and distribution requirements below. Internal-only use rarely triggers copyleft obligations, while shipping binaries or running a public network service is more likely to.

Compliance checklist for Apache 2.0 MIT

  • Retain the original Apache 2.0 copyright and license notices.
  • Record that your project bundles Apache 2.0-licensed components (e.g. in an attribution or NOTICE file).
  • Distribute the combined work under terms that satisfy MIT.
  • Re-check the verdict if you switch to SaaS delivery or start modifying the component.

About these licenses

Apache License 2.0

Library

Permissive, with an express patent grant and a NOTICE-file requirement. Its patent terms make it incompatible with GPL v2.0.

Type
Permissive (+ patent grant)
Patent grant
Express
Source sharing
Not required

MIT License

Project

A short, highly permissive license. Use it almost anywhere as long as you keep the copyright and license notice.

Type
Permissive
Patent grant
None
Source sharing
Not required

Apache 2.0 and MIT: frequently asked questions

Common questions about combining Apache License 2.0 and MIT License.

Is Apache 2.0 compatible with MIT?

Both licenses are permissive and place minimal restrictions on combining, modifying, and distributing the code.

Can I use Apache 2.0 code in a MIT SaaS or cloud application?

Both licenses are permissive and place minimal restrictions on combining, modifying, and distributing the code.

What are my obligations when combining Apache 2.0 and MIT?

Retain copyright notices and disclaimers for the Apache 2.0 code. Distribute under MIT, respecting the notice requirements of Apache 2.0.

Explore related comparisons

The other direction

Get Started with FOSSA

Start managing your dependencies, licenses, and vulnerabilities today.