Convenio de doble imposición (double taxation treaty, CDI)

A convenio de doble imposición (CDI) is a bilateral treaty between Spain and another country that allocates the right to tax each type of income, so you do not pay twice on the same money. Spain has an extensive treaty network, and where a treaty and domestic law conflict, the treaty prevails.

Relief comes in two forms: exemption (the income is taxed in only one of the two countries) or credit (it is taxed in both, but one lets you deduct the tax paid in the other). Applying a treaty usually requires a certificate of tax residency issued by the relevant country.

In practice, the treaty decides who taxes first. For an autónomo's business income, the usual rule is that it is taxed in the country of residence unless you have a permanent establishment in the other one. For dividends or interest, the source country may withhold tax, but only up to the limit set by the treaty, and your country of residence lets you deduct that withholding.

A common example: an autónomo resident in Spain is paid by a foreign client who withholds tax at source. If the treaty does not allow that withholding, the route is to claim a refund in that country with your residency certificate; if it does, you recover it as an international double taxation credit in your Spanish income tax return. The typical mistake is writing the withholding off or not reporting that income in Spain.

It is linked to tax residency, the tax residency certificate and the IRNR, and to the tie-breaker rules when two countries consider you resident. In your books, taxes withheld abroad should be recorded so you can support them later.

Guides that use this term

Related terms

Rather have this calculated for you?

kontora generates your tax forms box by box, tells you how much to set aside and reminds you before every deadline.

Get started with kontora

Pricing · Calculators

Residencia fiscal (tax residency in Spain)

Certificado de residencia fiscal (tax residency certificate)

Full glossary