Spain: Nonresident income tax – The National Court recognizes the right of non-EU/EEA nonresidents to deduct expenses related to the rental of properties

In brief

In July 2025, the Spanish National Court ("National Court") issued a landmark resolution with significant implications for the real estate sector and international taxation in Spain. For the first time, it recognizes the right of non-EU/EEA nonresidents to deduct necessary expenses associated with the rental of properties located in Spain, thereby aligning their tax treatment with that of residents and EU/EEA nonresidents. This decision eliminates the previous discrimination suffered by non-EU/EEA nonresidents, who were taxed on the gross rental income without the possibility to deduct expenses such as interest, repairs, insurance, property tax (Impuesto sobre Bienes Inmuebles (IBI)) or community fees. The resolution opens the door to the rectification of past tax returns and the recovery of unduly paid amounts, representing a strategic opportunity for international property owners.


Contents

In more detail

Background

The Non-Resident Income Tax (NRIT), regulated by Royal Legislative Decree 5/2004, has long been a source of controversy regarding the tax treatment of nonresidents. Article 24.1 establishes that nonresidents without a permanent establishment in Spain must pay tax on the full amount of income obtained, without the possibility of deducting expenses or applying reductions. In contrast, Article 24.6 allows EU/EEA residents to deduct expenses directly related to the income obtained, resulting in discriminatory treatment of third-country residents.

The case law of the Court of Justice of the European Union has been instrumental in interpreting this regulation within the framework of the principle of free movement of capital (Article 63 of the Treaty on the Functioning of the European Union). For example, the ruling of 3 September 2014, which addressed fiscal discrimination in inheritance and gift tax, concluded that there must be no difference in treatment between residents and nonresidents, and that the free movement of capital must also apply to third-country residents.

Accordingly, the National Court's resolution of 28 July 2025 (SAN 636/2025) applies this doctrine and concludes that excluding non-EU/EEA nonresidents from the right to deduct expenses violates the principle of nondiscrimination and the free movement of capital.

In depth

The recent resolution marks a substantial shift in the tax regime applicable to non-EU/EEA nonresidents obtaining rental income from real estate in Spain. Previously, these taxpayers were required to pay tax on the full rental income obtained, without the possibility to deduct necessary expenses incurred in generating that income. The new doctrine expressly recognizes the right to deduct all essential expenses directly linked to the rented property.

Among the expenses now eligible for deduction are interest payments on mortgage loans, if the loan was used to acquire the property. Similarly, repair and maintenance costs are considered deductible, covering all actions required to keep the property in optimal condition for use and rental. The IBI and community fees are also included, as they are inherent obligations of property ownership and management. Additionally, insurance premiums, management and administration fees, and utility costs — such as water, electricity or cleaning services — may be deducted, if they are properly justified, directly related to the rental activity and supported by the landlord.

To ensure these expenses are accepted by the Tax Authorities, taxpayers must demonstrate their nature and direct connection to the rented property. Proper documentation — such as invoices, receipts and contracts — is essential to avoid disputes in the event of a tax audit. These deductions must be applied in the NRIT tax return corresponding to the fiscal year in which the rental income was generated, or within a maximum of four subsequent fiscal years if there was insufficient gross income to apply them.

It is important to note that this new interpretation affects not only future tax returns but also allows taxpayers to request the rectification of previously filed self-assessments and claim refunds for undue payments (including delayed interests). Therefore, affected taxpayers are advised to review their previously filed tax returns and, if they paid tax on gross rental income without deductions, initiate the rectification process with the Spanish tax authorities.

This doctrine has significant implications for international property owners, enabling tax optimization of real estate investments in Spain by reducing the tax burden and improving asset profitability.

Conclusions

In conclusion, the recent doctrine established by the National Court marks a milestone in the tax equalization of non-EU/EEA nonresidents in Spain. It allows them to deduct expenses associated with the rental of their properties, correcting long-standing discrimination. This measure enhances legal certainty and strengthens the competitiveness of the Spanish real estate market, opening new opportunities for international investment and optimizing the tax planning of foreign property owners.


Copyright © 2025 Baker & McKenzie. All rights reserved. Ownership: This documentation and content (Content) is a proprietary resource owned exclusively by Baker McKenzie (meaning Baker & McKenzie International and its member firms). The Content is protected under international copyright conventions. Use of this Content does not of itself create a contractual relationship, nor any attorney/client relationship, between Baker McKenzie and any person. Non-reliance and exclusion: All Content is for informational purposes only and may not reflect the most current legal and regulatory developments. All summaries of the laws, regulations and practice are subject to change. The Content is not offered as legal or professional advice for any specific matter. It is not intended to be a substitute for reference to (and compliance with) the detailed provisions of applicable laws, rules, regulations or forms. Legal advice should always be sought before taking any action or refraining from taking any action based on any Content. Baker McKenzie and the editors and the contributing authors do not guarantee the accuracy of the Content and expressly disclaim any and all liability to any person in respect of the consequences of anything done or permitted to be done or omitted to be done wholly or partly in reliance upon the whole or any part of the Content. The Content may contain links to external websites and external websites may link to the Content. Baker McKenzie is not responsible for the content or operation of any such external sites and disclaims all liability, howsoever occurring, in respect of the content or operation of any such external websites. Attorney Advertising: This Content may qualify as “Attorney Advertising” requiring notice in some jurisdictions. To the extent that this Content may qualify as Attorney Advertising, PRIOR RESULTS DO NOT GUARANTEE A SIMILAR OUTCOME. Reproduction: Reproduction of reasonable portions of the Content is permitted provided that (i) such reproductions are made available free of charge and for non-commercial purposes, (ii) such reproductions are properly attributed to Baker McKenzie, (iii) the portion of the Content being reproduced is not altered or made available in a manner that modifies the Content or presents the Content being reproduced in a false light and (iv) notice is made to the disclaimers included on the Content. The permission to re-copy does not allow for incorporation of any substantial portion of the Content in any work or publication, whether in hard copy, electronic or any other form or for commercial purposes.