Subscription plans
The SonarCloud’s pricing model is subscription-based: each organization is assigned a subscription plan. Three different plans are available for new organizations:
- Free plan, if you want to analyze public projects only.
- Team Plan, for smaller teams.
- Enterprise Plan, for larger organizations and teams.
The former Paid Plan is deprecated.
For information about the billing model, see the Billing model page.
Free plan
If you want to analyze only public projects in your organization, you can use the Free, open-source plan. This plan allows you to import and analyze an unlimited number of public projects in your organization. When using the Free plan, your code and analysis results will be publicly accessible.
Any private repository in that organization will not be importable.
Anyone, including anonymous users, can view a Free plan organization record. Non-members cannot see the organization’s list of members.
A Team or Enterprise Plan is required to have access to SonarCloud's AI features.
Team Plan
Upgrading an organization to the Team Plan allows you to import private repositories from your DevOps platform. A private repository becomes a private project in SonarCloud, guaranteeing the privacy of your source code. Only members of the organization can view the organization in the SonarCloud interface.
In addition, the Team Plan gives you access to AI CodeFix and other Early Access features not available in the Free plan.
The Team Plan's pricing is based on the number of Lines of Code (LOC) of private projects: see LOC-based pricing below.
A Team Plan organization may include both public and private projects. It can contain an unlimited number of public projects with no size limit, just like in a Free plan organization (i.e. there is no LOC threshold for public projects).
If you downgrade an organization from the Team Plan to the Free plan, the private projects will be deleted from SonarCloud.
Enterprise Plan
With the Enterprise Plan, you benefit from the following features in addition to the Team Plan's features (see above):
- Enterprise-level hierarchy.
- SSO authentication through SAML.
- Management reporting: portfolios, security reports, and project reports.
- Organization-wide project configurations: long-lived branches name pattern definition, analysis scope adjustment, automatic analysis disabling.
- Report of security alerts in GitHub.
- Support of the ABAP, COBOL, RPG, PL/I, Apex languages.
- Centralized management of the organization's projects (Projects Management tab).
The Enterprise Plan's pricing is based on the number of Lines of Code (LOC) of private projects: see LOC-based pricing below.
What happens with the existing paid plan organizations?
If your paid plan organization is billed on a monthly basis, it will still benefit, for a given period, from some features that were moved to the Enterprise Plan:
- Report of security alerts in GitHub.
- Support of the ABAP, COBOL, RPG, PL/I, Apex languages.
- Centralized project management.
If your paid plan organization was billed using a yearly coupon, you will have the option to try out the Enterprise Plan features for a limited time, support excluded, starting in August 2024.
See Upgrading a paid plan on the Changing your subscription plan page.
LOC-based pricing
The Lines of Code (LOC) based pricing is calculated by adding up the LOC of each private project analyzed for your organization. The calculation is a measure of the sum of the LOC of the largest long-lived branches for all your projects. It is not a measure of the new code analyzed in a given billing cycle. During calculation, the following are excluded from your LOC count:
- Test code.
- Files excluded from analysis.
- Code in unsupported languages.
- Comments or blank lines.
Example
Your Organization has two private projects:
- Project-1 has 500 lines of code on its main branch and 400 on a secondary long-lived branch: its LOC is 500.
- Project-2 has 0 lines of code on its main branch (provisioned but never analyzed) and 200 on a secondary long-lived branch: its LOC is 200.
- The total LOC for your organization is 500 + 200 = 700.
With the Team and Enterprise plans, you can choose the maximum total number of LOC for your organization's private projects.
You need to ensure that your choice of plan covers all of the LOCs you want to analyze; otherwise, you may not be able to onboard all of your organization's projects.
You cannot exceed your LOC threshold in SonarCloud. Once you are near your LOC limit, you will receive a notification informing you of this and advising you to upgrade your current subscription plan to a higher LOC limit or to reduce the number of LOC in your projects.
You can analyze the same code as often as you like. However, if you try to analyze more LOC than is allowed under your current subscription, SonarCloud will not perform the analysis, and you will also receive an error message clearly explaining the reason for this.
Example
Your organization has a 20,000 LOC license.
When you analyze a project that contains 10,000 lines of code (LOC) once, you have used 10,000 LOC from your organization's license. If you analyze the same project 20 more times, you will still have only used 10,000 LOC from the license.
However, if you then try to analyze a different project that has 15,000 LOC, you will exceed the 20,000 LOC limit of your organization's license and receive an error message.
Related pages
Was this page helpful?