Kamran Mushtaq
Back to Git
Git

Apache License 2.0

Added: July 27, 2026

Definition

The Apache License 2.0 is a permissive open-source software license that allows anyone to use, modify, distribute, and sell software while also providing an explicit patent license from contributors. It is commonly used for large open-source projects where legal certainty is important.

The Problem That Led to It

The MIT License already allowed developers to use and modify code, but it did not explicitly state what happens if the project contains patented technology. Large companies worried that a contributor might later claim patent infringement after thousands of people had adopted the software. This legal uncertainty made some businesses hesitant to use open-source projects. Apache 2.0 was created to remove that uncertainty by clearly granting patent rights along with copyright permissions.

What Problem It Solves

It allows developers to:

  • Use the software
  • Modify it
  • Distribute it
  • Use it commercially
  • Receive an explicit patent license from contributors

This gives businesses greater legal confidence when adopting the software.

What Happens If Not Used

If patented technology exists, users may face uncertainty about whether they have permission to use those patents, even if they have permission to use the source code.

Easy Wording

"You can use my software almost however you like, and I also promise not to enforce my patents against you for using my contribution under this license."

Layman Example

You invent a new bicycle with a patented gear system and publish the design.

With Apache 2.0, you tell others:

"Build, modify, or sell bicycles based on my design. I also promise not to sue you over my patented gear technology as long as you follow this license."

Technical Example

Before Apache 2.0

Company releases Library │ Developer wants to use it │ ▼ Allowed to use the code ❓ Unsure about patent rights

After Apache 2.0

Company releases Library

  • Apache 2.0 License │ ▼ Developer │ ├── Clone ✅ ├── Modify ✅ ├── Commercial Use ✅ ├── Distribute ✅ └── Protected by explicit patent license ✅

Businesses can confidently adopt the software without worrying that contributors will later assert patent claims related to their licensed contributions.

Limitation

Apache 2.0 is longer and more legally detailed than the MIT License. For small personal projects or simple libraries where patents are unlikely to matter, many developers choose the simpler MIT License instead.