# MIT License

> A short open source license. You may do almost anything if you keep the notice.

**Field:** Software Development  
**Category:** Product & Releases  
**Also known as:** MIT, MIT Licence, Expat License

## Think of it like

Think of it like a free sample. The only rule is to keep the label on.

## Definition

The MIT License is a short open source license with very few rules. You may use it, change it, sell it and put it in closed apps. The one rule is to keep the copyright and license notice with the code. It also says the code comes with no warranty. It is one of the most used licenses, and React and Node.js use it.

## Example

Jack puts the MIT License on his small date library. A big company uses it in a paid app, which is fine as long as his notice stays in.

## Why it matters

It is simple and lets anyone use your code. That makes it easy for others to pick up.

## Common mistake

Deleting the license notice when copying MIT code into your project. Keeping it is the one thing MIT asks.

## Three principles

- **Almost anything goes.** Use, change, sell.
- **Keep the notice.** The one rule.
- **No warranty.** Use at your own risk.

## Related terms

- [Software License](https://learn.benibix.com/term/development/software-license)
- [Open Source Software](https://learn.benibix.com/term/development/open-source)
- [Apache License 2.0](https://learn.benibix.com/term/development/apache-license)
- [GNU General Public License (GPL)](https://learn.benibix.com/term/development/gnu-gpl)
- [Permissive License](https://learn.benibix.com/term/development/permissive-license)
- [BSD License](https://learn.benibix.com/term/development/bsd-license)

## Told apart from

- [MIT License vs GNU GPL](https://learn.benibix.com/compare/mit-license-vs-gpl): The MIT License and the GNU GPL are both open source licenses, but they differ on what you must give back to others. MIT lets you do almost anything, even put the code in a closed app, if you keep the notice. The GPL says that if you share a changed version, you must share its code under the GPL too. MIT is free to take; the GPL keeps code open.
- [MIT License vs Apache License 2.0](https://learn.benibix.com/compare/mit-license-vs-apache-license): The MIT License and the Apache License 2.0 both let you use, change and sell code with few rules. The main gap is patents. Apache adds a written promise that the authors will not sue users over patents in the code. It also asks you to keep a NOTICE file and mark changed files. MIT is shorter; Apache gives more legal cover.

## Taught in

- [Open Model Licenses](https://learn.benibix.com/learn/ai-models-providers/open-model-licenses): AI Models and Providers, 8/13

---

Source: https://learn.benibix.com/term/development/mit-license
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
