Catala.

Catala is an open-source programming language for turning legislation, such as tax or social benefit rules, into software. The code is written alongside the legal text, article by article, so lawyers and developers can check together that each rule is implemented exactly as the law intends. It compiles to mainstream languages such as Python or C.

taxes.catala_en

Article 3

If the individual is in charge of 2 or more children, then the fixed percentage mentioned at article 1 is equal to 15%.

scope IncomeTaxComputation:  label article_3 exception article_2  definition tax_rate  under condition individual.number_of_children >= 2  consequence equals    15%
An article of a simplified tax law and its code.

Try the tax law

In Catala, as in the law, an article can make an exception to another one. Change the case below and see which article sets the tax rate.

Exceptions between articles 2 to 6Article 220% before 2000Article 32+ children: 15%Article 4≤ $10,000: 0%Article 5> $100,000: 30%Article 6Overseas: 25% Exceptions between articles 2 to 6Article 220% before 2000Article 32+ children: 15%Article 4≤ $10,000: 0%Article 5> $100,000: 30%Article 6Overseas: 25%

Each arrow goes from an exception to the rule it overrides. In blue, the article that sets the rate. Dashed, an article that applies but is overridden. Faded, an article that does not apply.

Tax rate15%
Income tax (article 1)$12,000

Set by article 3

taxes.catala_en

Article 3

If the individual is in charge of 2 or more children, then the fixed percentage mentioned at article 1 is equal to 15%.

scope IncomeTaxComputation:  label article_3 exception article_2  definition tax_rate  under condition individual.number_of_children >= 2  consequence equals    15%

See the full Catala file

Our work

With Inria, we work on making Catala ready for production use. Since March 2026, we have worked on several tools in its ecosystem.

VS Code extension

Our main focus, and in particular a debugger for the people who test business rules. More

Clerk

We restructured clerk, the build system that compiles and tests Catala projects.

Repositorycatala

JavaScript backend

A new backend that compiles Catala programs to JavaScript.

Debugger

The people who test business code against real-world cases are often not the developers who wrote it. We designed this debugger to be usable by people from different professional backgrounds. It relies on the trace feature introduced in Catala 1.3.0.

Here is what it looks like on a simple example: a household of two people under the simplified tax law. The replay follows a value back to the article that set it.

The test

test_taxes.catala_en

Two people in one household, in 1999. One earns $15,000 and has no children. The other earns $80,000 and has two.

#[test]declaration scope TestHousehold:  output computation content Taxes.HouseholdTaxComputation scope TestHousehold:  definition computation equals    output of Taxes.HouseholdTaxComputation with {      -- individuals:        [          Taxes.Individual {            -- income: $15,000            -- number_of_children: 0          };          Taxes.Individual {            -- income: $80,000            -- number_of_children: 2          }        ]      -- overseas_territories: false      -- current_date: |1999-01-01|    }

The trace

TestHousehold

Article 3, for two or more children: the trace shows its code and its text.

  1. → Call to TestHousehold
  2. Results
  3. = computation
  4. → Call to HouseholdTaxComputation
  5. Results
  6. = household_tax equal to $15000.00
  7. → Function sum equal to $15000.00
  8. → Call to HouseholdTaxIndividualComputation
  9. → Call to HouseholdTaxIndividualComputation
  10. Inputs
  11. = individual
  12. {income: 80000.00, number_of_children: 2}
  13. Internals
  14. = income_tax_computation
  15. → Call to IncomeTaxComputation
  16. Internals
  17. = tax_rate equal to 0.15code
  18. label article_3 exception article_2definition tax_rateunder condition individual.number_of_children >= 2consequence equals  15%
  19. Article 3 If the individual is in charge of 2 or more children, then the fixed percentage mentioned at article 1 is equal to 15%.
  20. Results
  21. = income_tax equal to $12000.00
  22. = household_tax state base equal to $20000.00
  23. Results
  24. = household_tax state with_deduction equal to $8000.00

VS Code extension

The Catala extension for Visual Studio Code is open source and published on the Visual Studio Marketplace. It brings completion, error reporting, hover information, code navigation, formatting, a test editor and support for clerk projects.

We added the Catala activity bar and a view of all the tests in a project, and we designed the debugger described above. Catala on the Marketplace

Visual Studio Code (external site)

At the CNAF

The Caisse nationale des Allocations familiales (CNAF) pays family, housing and other social benefits in France. In June 2026, the CNAF and Inria signed an agreement that makes Catala the core of the CNAF's future calculation engines, starting with housing benefits. We work with Inria on this deployment.

Cnaf and Inria announcement

CnafInria
€110B
of benefits paid by the CNAF each year
13.6M
households receiving CNAF benefits

Questions about Catala?

Write to us. The engineers who work on it will answer.