
The law uses the 183-day rule to decide if you must pay tax in Spain on your worldwide income.
-
You ARE a Spanish resident if:
-
You spend more than 183 days in Spain during a calendar year.
-
Note: “Sporadic absences” (short trips away) still count as time spent in Spain unless you can prove you are a tax resident in another country.
-
The “Economic Interest” Rule: Even if you are away for more than 183 days, you are still a resident if your main business or economic interests (or your spouse and dependent underage children) are in Spain.
-
-
If you are a Resident: You pay tax in Spain on everything you earn globally.
-
If you are NOT a Resident: You only pay tax in Spain on money earned specifically within Spanish territory.
Step 2: The “7p” Tax Exemption (The Good News)
If you are a Spanish tax resident but you work abroad, you might qualify for an exemption known as Article 7p. This means a portion of your foreign salary is tax-free.
Requirements for the Exemption:
-
Work for a Non-Resident Entity: The work must be done for a company not based in Spain (or a foreign branch of a Spanish company). In your text, the ship is outside Spain and the services are for a non-resident entity, so this fits.
-
Taxed Territory: The country where you work must have a tax system similar to Spain’s and cannot be a tax haven. (It counts if they have a “double taxation treaty” with Spain).
-
Physical Displacement: You must actually leave Spain to do the work.
The Benefit:
-
Limit: Up to €60,100 per year of your foreign-earned income is exempt from Spanish tax.
-
No Retentions: Your employer should not take income tax (retenciones) out of the portion of your salary that is exempt (up to that €60,100 limit).
Summary for your situation
If you are working on a boat outside of Spain:
-
If you stay away >183 days and have no family/major interests in Spain, you might stop being a Spanish tax resident entirely (paying only on Spanish-source income).
-
If you remain a Spanish resident (e.g., your family lives in Spain or you spend >183 days there), you can still use the 7p exemption to avoid paying tax on the first €60,100 you earn while working out at sea for the foreign entity.
Note: Taxes for seafarers are notoriously complex because “territory” can be tricky. This document assumes the ship is definitively outside Spanish waters.
Soure official: Nº Consulta Vinculante
V0686-10
This section—Article 7p of the LIRPF—is essentially the “Golden Rule” for Spanish tax residents working abroad. It is designed to encourage the internationalization of Spanish workers by providing a significant tax break.
Here is a breakdown of the specific details and how they are applied in practice, especially for someone working on a ship or in a specialized field.
1. The “Beneficiary” Requirement (The Non-Resident Entity)
The law states the work must be for a “non-resident entity.”
-
The “Intragroup” Service: If you work for a Spanish company but they send you to work for a foreign subsidiary or client, the exemption still applies. However, you must prove the foreign entity received a real benefit or “utility” from your work.
-
The “Independent Operator” Test: Would that foreign company have hired someone else to do that job if you weren’t there? If yes, the requirement is met.
-
In your case: Working on a ship for a non-resident entity to maintain pipelines is a clear example of providing a direct service to a foreign beneficiary.
2. The “Taxed Territory” Requirement
You don’t necessarily have to pay taxes in the foreign country, but that country must have a tax system.
-
Analogue Tax: The country where you are working must apply a tax similar to Spain’s IRPF.
-
The Safe Harbor: If the country has a Double Taxation Treaty with Spain that includes an “exchange of information” clause, this requirement is automatically considered fulfilled.
-
The “Tax Haven” Exclusion: If the country/territory is officially listed as a tax haven by Spain, you cannot claim this exemption.
3. How the €60,100 is Calculated
Exempt Amount
=
(
Days Spent Working Abroad
Total Days in the Year
)
×
Total Annual Salary
+
Specific Bonuses
-
What counts as a “Day Abroad”?
-
According to recent Supreme Court rulings, travel days (the day you fly out and the day you fly back) count as days worked abroad.
-
Weekends and holidays that happen while you are displaced abroad also count toward the total.
-
-
Specific Bonuses: if your company pays you a specific “displacement bonus” or “plus de expatriación,” that entire bonus is usually exempt (up to the €60,100 total limit).
4. Incompatibility with the “Excess” Regime
The text mentions an “incompatibility” with Article 9.A.3.b.
-
The “Excess” Regime: This is another tax benefit for workers posted abroad for long periods where they don’t pay tax on the “extra” money they receive to cover the higher cost of living abroad.
-
The Choice: You cannot use both. You must choose whichever is more beneficial for your specific salary and situation. For most people, 7p is the better deal because it is a fixed limit of €60,100, whereas the “excess” depends on your actual costs.
Key Evidence for the Tax Agency (AEAT)
The Spanish Tax Agency is very strict about 7p. If you apply it, you should keep:
-
Boarding passes/Flight tickets: To prove you physically left Spain.
-
The Ship’s Log or Certificate: To prove the vessel was in international or foreign waters.
-
A Company Certificate: A document from your employer stating the dates you were abroad and confirming the work was for a non-resident entity.
-
Work Logs: Briefly describing the “utility” or tasks performed for the foreign entity.
Summary of the Math:
If you earn €100,000 a year and spend exactly 6 months (182 days) working on that ship outside Spain, roughly €50,000 of your salary would be tax-free. Since €50,000 is under the €60,100 limit, you’d only be taxed on the remaining €50,000.


