November 22, 2026
Open Source License for Commercial Use: Which Licenses Allow It and What They Require
Looking for SaaS to license? Browse live listings or explore products by category. New to the deal structures? Compare licence and white-label types or check a term in the glossary. Explore the white-label SaaS marketplace, software to license or license vs build. SaaS founder? List your Product for licensing.
Quick answer: every license approved by the Open Source Initiative allows commercial use, because the Open Source Definition forbids restricting who may use the software or for what. What differs is the price you pay in obligations. Permissive licenses such as MIT, BSD and Apache 2.0 mostly ask you to keep the copyright notice and license text. Weak copyleft licenses such as the LGPL and MPL 2.0 make you share changes to the licensed files or library. Strong copyleft licenses such as the GPL make you release the source of the whole derived program under the same license when you distribute it, and the AGPL extends that to software users reach over a network. Licenses that ban commercial use, such as PolyForm Noncommercial or Creative Commons NC, are not open source. This is general information, not legal advice.
Founders, agencies and developers ask the same question before they ship a product built on someone else's code: can I use this commercially, and what do I owe in return? The short answer is that open source and commercial use are not opposites. The real questions are whether you distribute the software, whether you changed it, and how the license treats code you combine with it. This guide compares the common licenses for commercial use, explains the source-available licenses that look open but restrict business use, and ends with a checklist for selling or licensing software that contains open source.
Key takeaways
- All OSI-approved open source licenses allow commercial use; none can ban it and stay open source.
- Permissive licenses (MIT, BSD, Apache 2.0) are the easiest to use in closed, paid products: keep the notices.
- Copyleft duties usually start when you distribute the software; the AGPL also covers users who reach it over a network.
- Licenses that prohibit commercial use (PolyForm Noncommercial, CC BY-NC, Commons Clause) are source-available, not open source.
- Before you sell or license a product, list every third-party license in it: buyers will ask in due diligence.
Does open source license commercial use come with conditions?
Yes. Open source license commercial use is always permitted, but never unconditional. The Open Source Definition, which the Open Source Initiative (OSI) uses to approve licenses, says a license may not discriminate against any field of endeavour, and commercial business is a field of endeavour. So a license that says "no commercial use" cannot be an OSI-approved open source license.
The conditions come from three questions:
- Do you distribute the software? Shipping an app, an installer, a device, a downloadable SDK or source code to a client is distribution. Running code only on your own servers usually is not, except under the AGPL.
- Did you modify it or combine it with your own code? Copyleft licenses attach duties to modified versions and, in the GPL's case, to the whole derived program.
- Which license family is it? Permissive, weak copyleft or strong copyleft. The family tells you most of what you owe.
Open source licenses for commercial use compared
| License | Commercial use | Must you share your source? | What triggers the duty | Best fit |
|---|---|---|---|---|
| MIT, BSD 2/3-Clause, ISC | Yes | No; keep the copyright and license notice | Distributing copies | Closed, paid products and SaaS |
| Apache 2.0 | Yes | No; keep notices, the NOTICE file and mark changed files | Distributing copies | Commercial products that want an express patent grant |
| MPL 2.0 | Yes | Only the MPL-licensed files you change | Distributing copies | Mixing open files into a closed product |
| LGPL 2.1 / 3 | Yes | Changes to the library; users must be able to swap the library | Distributing the library or a program linked to it | Using a library inside a closed app |
| GPL 2 / 3 | Yes | Yes, the whole derived program under the GPL | Distributing the program or a derivative | Open products, or dual licensing |
| AGPL 3 | Yes | Yes, including to users who reach it over a network | Distributing it or letting users interact with a modified version online | Open SaaS, or dual licensing |
| BSL, SSPL, Elastic 2.0, PolyForm (source-available) | Limited or banned | Varies; read the license | Varies | Not open source: check every restriction |
Permissive licenses: the easiest for commercial products
Permissive licenses let you use the code in open or closed products, charge for them and keep your own code private. They are why most commercial software contains open source.
- MIT and ISC: keep the copyright notice and the license text with the software. That is the main condition.
- BSD 2-Clause and 3-Clause: keep the notice; the 3-Clause version also bars using the authors' names to endorse your product without permission.
- Apache 2.0: keep the notices and any NOTICE file, state which files you changed, and note the express patent license. If you sue a contributor claiming the software infringes your patent, your patent license from that contributor ends.
In practice, compliance means a third-party notices file or an "open source licenses" screen in your product listing each component, its copyright line and its license text.
Weak copyleft: LGPL, MPL and EPL
Weak copyleft licenses keep the licensed code itself open while letting you build closed products around it.
- MPL 2.0 (Mozilla Public License): copyleft works file by file. If you change an MPL file and distribute it, you share that file's source. Your own separate files can stay closed.
- LGPL 2.1 and 3: you can link a closed program to an LGPL library, but changes to the library must be shared, and users must be able to replace the library with a modified version. Dynamic linking is the usual way to keep that simple.
- EPL 2.0 (Eclipse Public License): copyleft applies to modules you modify, not to separate modules that only use them.
Strong copyleft: GPL and AGPL
The GNU General Public License (GPL) allows commercial use and even selling copies, but if you distribute a program derived from GPL code, the whole program must be licensed under the GPL and its complete source made available to the people who receive it. They can then share it, so charging for copies rarely works as a business model by itself.
The GPL's duty starts at distribution. A company that modifies GPL code and only runs it on its own servers to provide a service is generally not distributing it. The GNU Affero GPL (AGPL) was written for that case: if you modify AGPL software and users interact with it over a network, you must offer them the source of your version. That is why many companies ban AGPL components in closed SaaS products, and why some founders choose the AGPL for their own code to steer commercial users towards a paid license (see dual licensing).
Rule of thumb: permissive code can go almost anywhere with its notices; GPL code is fine for internal tools and servers but needs care before you ship it; AGPL code needs a legal review before it goes into any product users reach online.
Licenses that prohibit commercial use (and are not open source)
Several popular licenses publish source code but restrict commercial use. They are called source-available licenses, and the search for an "open source license that prohibits commercial use" usually ends at one of them:
- PolyForm Noncommercial: allows use for non-commercial purposes only.
- Creative Commons NC licenses: ban commercial use, but are designed for content such as text, images and data, not software code.
- Commons Clause: added to another license to stop others selling the software or a service whose value comes mainly from it.
- Business Source License (BSL): limits production or competing use for a set period, then the code converts to an open source license on a stated change date.
- SSPL and Elastic License 2.0: aimed at stopping cloud providers offering the software as a managed service.
Many AI model licenses work the same way: weights are downloadable, but the license adds acceptable-use rules, user thresholds or bans on using outputs to train competing models. Read them as commercial licenses with conditions, not as open source; our AI model license agreement guide covers the terms to check.
Choosing a license for your own software
If you own the code, the license is a business decision as much as a legal one:
- You want maximum adoption and earn money from hosting, support or premium features: a permissive license such as Apache 2.0 or MIT.
- You want companies that ship closed products to pay: GPL or AGPL plus a paid commercial license, which is dual licensing. You must own or control the rights to all the code, usually through contributor agreements.
- You want free non-commercial use only: a source-available license, accepting that it is not open source and some communities will not adopt it.
- You want to sell licenses directly: a proprietary license, priced perpetual or subscription, and offered exclusively or non-exclusively.
Compare the commercial models on our license types page before you decide.
Checklist before you sell or license software that contains open source
- Inventory every component. Generate a software bill of materials (SBOM) with a license scanner and list direct and transitive dependencies.
- Sort by family. Flag every GPL, AGPL, LGPL and source-available component for review.
- Check how you ship. SaaS, on-premise installer, mobile app, SDK or source code sale: each one changes when copyleft duties start.
- Produce the notices. One file or screen with each component, its copyright line and license text.
- Confirm you own the rest. Contractor and contributor work should be assigned to your company in writing.
- Disclose it to buyers. A licensee or white-label partner will ask which third-party licenses come with the product; put the list in the agreement's schedule.
This is general information, not legal advice. Licenses have exact wording that matters, so have a lawyer review copyleft and source-available components before you ship or sign.
Listing software built on open source on LicenseSaaS
Software that contains open source can be licensed and white-labeled like any other product, as long as the third-party licenses allow how the buyer will use it. On LicenseSaaS, listing is free; state the main third-party licenses in your listing so buyers can check fit early (see pricing for fees). Buyers can browse software available to license, including APIs and developer tools. LicenseSaaS does not verify listings, so buyers should review the code and its license inventory before they sign.
Frequently asked questions
Can open source software be used for commercial purposes?
Yes. Every license approved by the Open Source Initiative allows commercial use, including selling products built with the software. The license decides what you must do in return, from keeping a copyright notice (MIT, BSD, Apache 2.0) to releasing your own source code under the same license when you distribute (GPL). This is general information, not legal advice.
Which open source license does not allow commercial use?
None that is truly open source, because the Open Source Definition forbids restrictions on fields of use. Licenses that ban or limit commercial use, such as PolyForm Noncommercial, Creative Commons NC licenses and the Commons Clause, are source-available licenses. If you want free non-commercial use and paid commercial use of your own code, a source-available license or dual licensing (a copyleft license plus a paid commercial license) is the usual route.
Can I sell software that uses GPL code?
Yes, the GPL allows you to charge for copies. But if you distribute a program that is a derivative of GPL code, you must give recipients the complete source code under the GPL, and they may share it freely. That makes it hard to sell a closed product built on GPL code; companies that need that usually buy a commercial license from the copyright holder if one is offered.
Is the MIT license free for commercial use?
Yes. The MIT license lets you use, copy, modify, merge, publish, distribute, sublicense and sell the software, in open or closed products. The main condition is that the copyright notice and license text are included in all copies or substantial portions of the software. It comes with no warranty.
Does the AGPL apply to SaaS products?
Yes, that is its purpose. Under the GPL, running modified code on your own servers is generally not distribution, so the source duty does not start. The AGPL closes that gap: if you modify AGPL software and let users interact with it over a network, you must offer those users the source of your modified version. Many companies do not allow AGPL code in closed SaaS products for this reason.
Take the next step
Discover SaaS products to license, browse by category, or list your own product on LicenseSaaS.
Browse SaaS licenses
Explore live listings from founders ready to license or white-label their SaaS.
Browse the marketplaceShop by category
Find SaaS products by category — CRM, marketing, analytics, fintech and more.
View all categoriesList your own product
Are you a SaaS founder? List your product for licensing or white-labeling in minutes.
List your Product