Pick the wrong open source license and the cost shows up months later, not on day one: a company that wanted to embed your code walks away, or a contributor's pull request turns into a legal headache nobody wants to touch. The real choice in the MIT vs Apache vs GPL debate is not which license is "best." It is whether you want your code to flow freely into other people's products with no strings attached, or whether you want to guarantee that anything built on it stays open too.
Key takeaways
- MIT and Apache 2.0 are both permissive: they let anyone reuse, modify and even sell your code with almost no obligations. GPLv3 is copyleft: it requires that derivative works ship under the same license and disclose their source, according to choosealicense.com.
- Apache 2.0's main practical difference from MIT is an explicit patent grant and a requirement to document changes, per choosealicense.com's license comparison.
- On the Open Source Initiative's own 2025 license-page traffic, MIT drew 1.53 million pageviews versus 344,000 for Apache 2.0 and a combined 131,000 for GPLv2 and GPLv3, a rough proxy for developer interest, not actual project counts.
- Roughly 80% of public repositories still carry no license file at all, a share that has held steady since GitHub's own 2015 study found it, according to RedMonk's 2026 analysis of GitHub Archive data.
The Real Dividing Line Is Copyleft, Not Popularity
Every "MIT vs Apache vs GPL" comparison eventually reduces to one question: does the license follow the code into whatever gets built with it? MIT and Apache 2.0 say no. Under both, choosealicense.com's official summaries show the only conditions are preserving the copyright and license notice, plus, for Apache 2.0, stating what you changed. Anyone can take the code, fold it into a closed-source product, and never publish a line of their own work.
GPLv3 answers yes. Choosealicense.com describes it as a strong copyleft license whose permissions are conditioned on "making available complete source code of licensed works and modifications." Ship software built on GPL code, even internally modified, and you generally owe the recipients that source under the same license. That single difference, not branding or community size, is what should drive the decision.
What MIT, Apache 2.0 and GPLv3 Actually Require
The three licenses look similar on a GitHub dropdown menu and behave very differently in practice. Here is what each one actually permits, conditions and limits, based on the official license summaries at choosealicense.com.
| License | Type | Key condition | Patent grant |
|---|---|---|---|
| MIT | Permissive | Preserve copyright and license notice | No |
| Apache 2.0 | Permissive | Preserve notice, state changes | Yes, explicit |
| GPLv3 | Strong copyleft | Disclose source, reuse under same license | Yes, explicit |
The patent clause is the part most developers skip past. Apache 2.0 and GPLv3 both include what choosealicense.com calls an express grant of patent rights from contributors, meaning anyone who contributes code also implicitly licenses any patents they hold that cover that code. MIT has no such clause, which is one reason companies with large patent portfolios, including Google and IBM, lean toward Apache 2.0 for projects where patent disputes are a realistic risk.
What the Numbers Actually Show, and Where They Disagree
Popularity data for licenses is messier than most comparison posts admit. The Open Source Initiative's own tally of 2025 pageviews on its license pages put MIT first by a wide margin: 1.53 million views and 925,000 visitors, against 344,000 views and 245,000 visitors for Apache 2.0, and a combined 131,000 views for GPLv2 and GPLv3, according to OSI's "Top Open Source Licenses in 2025" post. OSI itself cautions that this measures page traffic, not how many projects actually ship under each license, and that ad blockers and users in China are likely undercounted.
For actual adoption, the most-cited dataset is still old: GitHub's own March 2015 analysis found MIT covering 44.69% of licensed repositories, with GPLv2 at 12.96%, Apache at 11.19% and GPLv3 at 8.88%. Industry analyst Stephen O'Grady of RedMonk, writing in March 2026, tracked more recent GitHub Archive data showing permissive licenses overall falling from about 82% of licensed projects in 2022 to 73% in 2025, with Apache's share spiking to roughly 30% in 2022 before dropping sharply in 2023 while MIT's share jumped. O'Grady's own read is that the 2023 swing is probably a sampling artifact from a shrinking pool of GitHub Archive data, not a real shift in developer preference, since the ecosystem-tracking site deps.dev shows no comparable move.
Decision Checklist: Which License Actually Fits Your Project
Strip away the branding and the choice comes down to what you want strangers to be able to do with your code:
- Choose MIT if you want maximum adoption and don't care whether companies build closed products on top of your code, and you don't hold patents tied to the project.
- Choose Apache 2.0 if you want the same permissiveness as MIT but also want an explicit patent grant from contributors, which matters once a project has corporate contributors or touches patentable techniques.
- Choose GPLv3 (or LGPL for libraries you want others to link against freely) if your goal is making sure improvements to your code come back to the community rather than disappearing into private forks.
- Choose a non-OSI "source available" license such as BSL only if you specifically want to block commercial competitors while still publishing the source, and understand that this is not open source by the Open Source Initiative's definition.
This is also where many teams overthink it. If you are shipping a small utility, a learning project, or a library meant to be embedded everywhere, MIT removes friction for adopters and for you. Anyone evaluating whether to use a new piece of developer tooling will check the license before anything else, and a permissive one clears that check instantly.
Who This Actually Matters To, and Who Can Skip the Debate
This decision matters most to maintainers starting a new public repository, companies open-sourcing an internal tool, and anyone accepting outside contributions, because the license is far harder to change retroactively than to pick correctly up front. Changing a project's license later generally requires either unanimous agreement from every contributor who holds copyright on their contributions, or rewriting the parts you can't get permission for. The same caution applies to who you let contribute in the first place: projects that accept outside pull requests without a clear contributor agreement run into the same kind of trust problem that has made supply-chain security such a persistent headache for package ecosystems.
It matters much less to someone writing a one-off script for themselves, a student assignment, or an internal company tool nobody outside the team will ever see. In those cases, any permissive license, or simply marking the repository private, solves the practical problem without a legal deep dive.
Does Skipping a License Mean Your Code Is Public Domain?
The most common license mistake is not choosing the wrong one, it is choosing none at all. GitHub's own documentation states that a public repository with no license file defaults to standard copyright: the author retains all rights, and nobody else may legally reproduce, modify or redistribute the code, even though they can see it. Publishing to a public GitHub repository does let other users view and fork it under GitHub's terms of service, but that is narrower than an actual license grant. A legal analysis published on Opensource.com argues there is a reasonable case for an implied license in some circumstances, but notes it probably would not extend to commercial reuse, the thing most downstream users actually want.
The honest counterpoint to this entire framework is that license choice matters far less than most comparison articles imply for the majority of repositories. RedMonk's 2026 analysis, echoing GitHub's 2015 finding, puts the unlicensed share of public repositories at around 80%, a number that has barely moved in a decade despite years of "always add a license" advice. Most code on GitHub is tutorials, personal projects and abandoned experiments where nobody, including the author, is thinking about downstream legal exposure. If that describes your repository, the license question is close to moot. It stops being moot the moment someone outside your team wants to depend on your code.
The Takeaway
Default to MIT unless you have a specific reason not to: it is the license with the least friction and the one most tooling, CI systems and corporate open-source policies already recognize without review. Switch to Apache 2.0 the moment patents are a realistic concern, which is common in projects touching codecs, cryptography or anything a larger company might contribute to. Reach for GPLv3 only when keeping derivative works open is itself the goal, not an afterthought. And whatever you pick, add the LICENSE file before the first outside contributor shows up, not after, since unclear project governance tends to compound the same way unpaid maintenance debt does.




Top comments (0)