Balearic Times — News from Mallorca, Menorca, Ibiza & FormenteraENESFRDE·news@balearictimes.com·Send a tip·Palma·--:--
← Back to Economy
Economy2 min read

AI and taxes: the secrecy of the tax authority's algorithms under scrutiny

Spain's draft AI law would keep the details of automated tools used to fight tax fraud confidential. Critics say that could undermine taxpayers' rights.

Spain’s draft law on artificial intelligence includes a provision that has caught the attention of tax experts: the details of the algorithms and AI systems used by the tax authority to fight fraud would remain secret.

The draft law

The government has put forward a draft organic law to regulate the use of artificial intelligence, adapting Spanish law to the European AI Act. Its stated aim is to protect citizens when AI systems could affect their health, safety or fundamental rights, with a system of supervision and penalties for misuse.

The tax provision

One part of the draft amends the General Tax Law to establish that the details of automated, algorithmic or AI systems used by the Tax Agency to detect fraud will be confidential. In practice:

  • the way these systems work would not be made public;
  • taxpayers would not necessarily know why they had been selected for an inspection.

The justification

The tax authority’s argument is that revealing how it detects fraud would allow those trying to evade taxes to adapt their behaviour and avoid detection. Tax inspection plans have long been kept confidential for the same reason.

The criticism

Critics argue that extending this confidentiality to automated systems goes too far. Their concerns include:

  • The right to defence. The Spanish Constitution guarantees effective legal protection. If a taxpayer cannot know why an algorithm flagged them or what data was used, it is harder to challenge the decision.
  • Errors and bias. Automated systems can make mistakes or reproduce biases in the data they use. Without transparency, those errors are hard to detect.
  • A paradox. A law designed to protect fundamental rights in the use of AI could, in this area, reduce transparency.

The European context

The EU AI Act classifies certain uses of AI by public authorities as high-risk, requiring human oversight, documentation and transparency. How those obligations apply to tax authorities, and how they will be balanced against the need to protect anti-fraud methods, is one of the questions the Spanish law will have to answer.

What comes next

The draft is still going through the legislative process and could change. Professional associations and legal experts are expected to push for safeguards, such as independent audits of the systems or the right to a human review of decisions.

Keep reading

More Economy

Economy14 Jul 2026

CaixaBank rolls out its new shop payment platform with Calzedonia

The Italian retailer, part of the group that owns Tezenis and Intimissimi, has installed the system in more than 280 shops in Spain.

Read More
Economy13 Jul 2026

Supreme Court lets temp agencies recruit workers abroad for jobs in Spain again

The court struck down the 2024 rule excluding ETTs from hiring at source, a system that has brought more than 25,000 workers to Spain.

Read More
Economy11 Jul 2026

House prices stall in central Madrid, Barcelona and Valencia as the boom moves outwards

Asking prices in outer districts rose faster than in city centres between January 2025 and April 2026, narrowing the gap.

Read More