Tax Reform
Brazil's Receita Federal publishes its first open-source project on GitHub, the Tax Calculator
Developed with Serpro and released under the MIT license, the project brings together the calculation rules for the CBS and the other taxes created by the Tax Reform so developers can use in their systems the same logic as the tax administration
· 2 min read

Receita Federal, Brazil's federal tax authority, has published the source code of its Tax Calculator (Calculadora de Tributos) in public repositories on GitHub. It is the first time the agency has officially made a software project available in a public collaborative development environment. The release was authorized by Cotec Ordinance No. 342 of November 12, 2026, published in the Diário Oficial da União, and announced by Receita Federal on November 16.
The information comes from the Receita Federal website.
What the Tax Calculator is
Developed jointly by Receita Federal and Serpro, the calculator brings together the calculation rules for the Contribution on Goods and Services (CBS) and the other taxes created by the Consumption Tax Reform. With the code open, companies, developers and software vendors can incorporate into their billing, management and compliance systems the same logic used by the tax administration, with integrated calculation records and legal basis.
The project was released under the MIT license, one of the most widely used in the open-source world, which allows the software to be used, modified and distributed.
The published repositories
The ordinance also records the hashes of the repositories' initial versions, making it possible to verify the authenticity and integrity of the code.
What changes in practice
The calculator's code could already be downloaded from the CBS Platform since 2025. What's new is moving it to GitHub, where technology teams can track changes, look up previous versions and incorporate updates into their development and continuous integration processes.
According to Receita Federal, the goal is not to replace the systems companies already use, but to offer an official, auditable and interoperable component that can be integrated into them. Among the benefits cited are greater confidence in applying the rules, lower development and maintenance costs, transparency about how taxes are calculated and consistency in interpreting the rules.
What this means for those who build software
The transition to the new tax model will require changes to thousands of billing and management systems. Having the official calculation logic available as open source reduces the risk of each company interpreting the rules differently and cuts down on rework with every change in legislation. For those who maintain systems that issue invoices or calculate taxes, it is worth following the repositories, evaluating integration of the official component and including new versions in the product's update cycle.
Source: Receita Federal