• English
  • Español

Taxation of the Digital Economy: A Major Legal Gap in Spain’s Tax System

Why many experts consider the taxation of the digital economy and virtual assets one of the biggest gaps in Spain’s tax system.

1. Introduction

The digital economy has radically changed how value is created, distributed and consumed. Yet this structural shift has not been matched by an equivalent update to Spain’s tax framework. Much of the current legislation was inherited from an economy based on physical transactions and traditional business structures, and it is not sufficient to capture the complexity of new digital business models. This mismatch has created a legal gap that, in many cases, enables aggressive tax planning and the relocation of profits to jurisdictions with more favourable tax regimes. This article examines the causes and consequences of the problem, along with possible solutions.


2. The digital economy: context and development

2.1 Digital transformation and globalisation

Over the past two decades, the growth of the internet, e-commerce and the sharing economy, followed more recently by blockchain technology and cryptocurrencies, has created a setting in which economic activity takes place virtually and across borders. Technology companies, streaming platforms, cloud service providers and digital marketplace operators have seen their activities become detached from physical locations and spread across multiple jurisdictions at once.

2.2 Challenges for traditional tax rules

Traditional tax rules rely on territoriality and physical presence to determine tax obligations. In the digital economy, however, a company may have only a virtual “presence”, making it difficult to establish objectively where value is actually created. This ambiguity creates opportunities for complex corporate structures that shift profits to tax havens or jurisdictions with low-tax regimes, significantly reducing the taxable base in Spain.


3. Key features of the legal gap

3.1 Profit relocation and the definition of a permanent establishment

One of the most pressing problems is how to define a “permanent establishment” in a digital environment. Many companies operating in Spain have no physical office or substantial infrastructure that would establish a territorial connection. Without clear criteria for determining digital presence, companies may avoid tax on income generated in Spain even when the market and many of their customers are located there.

3.2 Virtual assets and cryptocurrencies

The growth of digital assets, from cryptocurrencies to non-fungible tokens (NFTs), has exposed a significant gap in the rules. Current legislation does not set clear criteria for valuing these transactions, determining when tax becomes due or how they should be taxed. This creates uncertainty about how to report gains, which events have tax consequences and how to account for changes in asset values. The volatility and decentralised nature of cryptocurrencies also make it easier to implement tax-planning arrangements that may exploit existing gaps.

3.3 Digital services and the sharing economy

The tax treatment of digital services, from online advertising to sharing-economy platforms, raises further questions about where the activity takes place. Existing rules are based on territoriality, but when services are provided over the internet it can be difficult to identify the jurisdiction where value is created. This allows large multinational groups to use differences between countries’ rules to optimise their tax burden.


4. Effects and consequences of the legal gap

4.1 Erosion of the tax base

The main consequence is erosion of Spain’s tax base. Corporate structures and the relocation of profits can result in tax being paid at a much lower level than the actual economic activity would warrant. This reduces tax revenue and affects the State’s ability to fund essential public services.

4.2 Unfair competition and market distortion

The absence of clear rules for taxing the digital economy creates unfair competition. Companies that exploit these gaps can significantly reduce their tax burden compared with traditional businesses subject to a more comprehensive and rigorous tax regime. This distorts the market, undermining competitiveness and, ultimately, fairness among economic operators.

4.3 Legal uncertainty and litigation

Ambiguity in how the rules apply creates uncertainty for both the Tax Administration and taxpayers. The lack of objective criteria and the range of judicial interpretations create legal uncertainty that may lead to numerous disputes and inconsistent application of the law. This makes long-term planning more difficult for businesses and individuals alike.


5. International comparisons and references

International bodies such as the OECD have promoted initiatives including the BEPS project (Base Erosion and Profit Shifting) to tackle tax-base erosion and profit shifting. Countries such as France have moved ahead with a digital services tax (DST), seeking to tax digital activity more effectively. Spain, by contrast, is lagging in this area, affecting its revenue and putting it at a competitive disadvantage in Europe.


6. Proposals to close the legal gap

6.1 Update and reform legislation

A comprehensive review of tax legislation is needed to provide precise definitions of “digital presence” and “permanent establishment” in the digital environment. Updated rules should set objective criteria for determining where value is created, regardless of physical presence.

6.2 International cooperation and harmonised rules

Closing these gaps requires close coordination with other countries and international organisations. Harmonising criteria across Europe and globally is essential to prevent companies from shifting profits through complex international structures. Active participation in initiatives such as BEPS is central to this effort.

6.3 Stronger enforcement and advanced technology

Equipping the Tax Agency with modern technology, including artificial intelligence, big-data analysis and blockchain tools, could significantly improve its ability to trace and analyse digital transactions. A robust, technology-enabled inspection system could identify patterns of abusive tax planning and address them proactively.

6.4 Transparency and reporting obligations

Digital companies should face stricter information-reporting duties and be required to provide a high level of transparency about their operations. Detailed reports on international transactions and profit structures would reduce opacity and help tax authorities carry out effective oversight.


7. Conclusion

The legal gap in taxing the digital economy and virtual assets is one of the major challenges facing Spain’s tax system. Its effects range from erosion of the tax base and unfair competition to legal uncertainty and increased litigation. Addressing it requires a comprehensive response combining legislative updates, international cooperation, stronger enforcement and greater transparency. Only deep, coordinated reform can adapt the tax system to the complexity of the twenty-first-century digital economy and ensure a fairer, more efficient and competitive system.


This analysis highlights the urgent need to close the gap to protect tax revenue, tax fairness and the competitiveness of Spain’s economy in an increasingly digital global environment.

Josep Navarro's picture
Josep Navarro es Licenciado en Económicas por la UB, especializado en Inspecciones Tributarias, con más de 25 años de experiencia en asesoría fiscal para empresas y particulares en España.