Legal

MIT vs Apache vs GPL: Open-Source Licenses Explained for Startups

The open-source license mistakes we see most in startup reviews, and what MIT, Apache 2.0, GPL and AGPL actually require.

By Natia Kurdadze

•

Beginner

Save For Later

Schedule the Call

Short answer: Open source doesn’t always mean the code must stay open. Permissive licenses like MIT and Apache 2.0 let you use the code in a closed, paid product as long as you keep the copyright and license notices. Copyleft licenses like the GPL require you to release your source under the same license when you distribute software built on them, and the AGPL extends that to software offered over a network.

The mistake we see most

In software licensing work, the most common problem is that founders can’t tell license types apart. Some assume any open-source code makes their whole product open. Others assume open-source code is free to use with no conditions and skip attribution. Both are wrong, and missing attribution is the violation we find most often.

The four licenses that matter most

MIT

Permissive. You can use, modify and sell the code, including inside proprietary software, and keep your changes private, as long as the copyright notice and license text go with the code (FOSSA). That is the attribution requirement: skipping it puts you outside the license.

Apache 2.0

Also permissive, with an explicit patent license from contributors and a requirement to keep notices and mark files you’ve changed. A good default for companies that worry about patents.

GPL (v2 and v3)

Copyleft. If you distribute a modified version or a combined work, you must release it under the GPL. Running GPL software internally or on your own servers isn’t distribution and doesn’t trigger this (OSPO Alliance).

AGPL v3

Network copyleft. Offering the software to users over a network, as in SaaS, triggers the obligation to share source (FOSSA). This is the license that catches SaaS startups.

How to stay compliant

  • Keep an inventory of every open-source dependency and its license. A software composition analysis tool can generate it.

  • Ship a third-party notices file with your product that includes the required copyright and license texts.

  • Flag GPL and AGPL code before it’s merged into anything you distribute or host for customers.

  • Check compatibility when combining code: MIT code can go into a GPL project, but GPL code can’t go into a proprietary product.

  • Choose your own project’s license on purpose. Pick copyleft if you want it to stay open; pick MIT or Apache 2.0 if you want maximum adoption.

Before fundraising or an acquisition

Investors and buyers ask for an open-source review during due diligence. Copyleft code in a proprietary product or missing attributions can delay a deal, and both are cheaper to fix during development. See also software licensing and IP law and our IP licensing agreement template.

Questions people ask

Can I use MIT-licensed code in a commercial product?

Yes. Keep the copyright notice and MIT license text with the code.

Do I have to share my changes to MIT code?

No.

Does using GPL software in my SaaS force me to open-source it?

Not if you only run it on your own servers. The AGPL is different: offering it over a network triggers source sharing.

What happens if I skip attribution?

You’re outside the license terms, which means you’re using the code without permission and can face an infringement claim.

Want your codebase or license reviewed? Book a consultation.

This article is general information, not legal advice for your specific situation.

Why

Why

Not?

Protect your intellectual property with confidence.