Do I have to file at home while living in Spain?
It depends on residence, not on address — except for US citizens and green-card holders, for whom the answer is yes regardless of where they live. We settle the residence question first, because every other answer follows from it.
Is there a treaty between my country and Spain?
That is verified rather than assumed: we confirm which treaty text governs Spain and your home country for the year in question, because a protocol can move a rate or an article between years. If there is no treaty, unilateral credit rules are what prevent double taxation.
I own property in Spain. Where is the rent taxed?
In Spain, because that is where the property sits. The complication is the base: gross-rent withholding takes no account of mortgage interest, tax or repairs, so a leveraged property can face tax on turnover. An election onto net profit, where it exists, is what fixes that — and it has its own timing.
When do I become resident again after moving back from Spain?
On the facts, not on the date you booked the flight. Your home country will look at when your home, your family and your daily life returned, and Spain will look at when they left. The two dates ought to meet. Often the paperwork suggests they overlap instead, because a Spanish registration was left open or a lease ran on after the family had gone. Settling the date early lets each return cover the right slice of the year. Left unsettled, the same income turns up on two full-year returns and the credit claim that should fix it does not line up.
Do I have to tell the Spanish authorities that I have left?
Yes, and treating the move as a private matter is the common mistake. Spain works from its registers, and while your name sits on them the assumption is that you are still there. Deregistering, closing the position with your employer or pension payer, and filing a final return for the part of the year you were resident are what actually end the file. Where property stays behind, the annual obligation attached to owning Spanish property as a non-resident begins as the residence obligation ends, so the file changes shape rather than closing.
What happens to my Spanish pension or savings when I move home?
The income does not stop being Spanish, and your home country will generally tax it once you are resident there again, with credit for what Spain is entitled to take. Which country has the first claim depends on what the payment is: a state pension, an occupational one and a drawing from a private arrangement are not treated alike under most treaties. The practical problem is timing. Spain may withhold in one year what your home country taxes in the next, so the tax and the credit fall in different years unless the filings are deliberately matched.
Will I be taxed twice in the year I move back?
Not if the returns are prepared together. The risk is real but mechanical: each country taxes the part of the year it has you, and income arising near the changeover can be picked up by both. Relief comes either by leaving the income out of one return or by claiming a credit on the other, and which applies depends on the income and the treaty article covering it. Preparing both returns from one set of facts, in one exercise, is what keeps them consistent. Prepared separately, by different people, months apart, they usually are not.
I kept a flat in Spain after moving home. What changes?
Your obligations change category rather than ending. As a resident you reported the property through the Spanish resident system. As a non-resident owner you take on the annual filing that attaches to owning Spanish property, whether or not it is let. At home, the flat and the account that services it become foreign assets to disclose, separately from any income they produce. Owners who miss this tend to find out at the sale, when the buyer's lawyer asks for the history and several years have to be brought up to date at once.
Should I keep my Spanish tax records after leaving?
Keep them. The final Spanish return, the withholding certificates and the purchase papers for anything you still own are the evidence for the credits you will claim at home and for the gain computation on any later sale. Records held by a Spanish adviser or a former employer are easy to reach while you are still there and hard to reach once you have gone, so collect them before the move rather than after it. A complete file also turns a later question from either authority into a short conversation instead of a reconstruction.
What happens if two countries both say I am resident?
The treaty tie-breaker resolves it to one residence, applied in order: where your permanent home is, then your centre of vital interests, then your habitual abode, then nationality, with a competent-authority referral if all of those fail. It is an evidence exercise rather than an election — you document the home and the life around it. Getting a single residence settled is what makes every other position in both returns consistent. See the residency tie-breaker.
How would a foreign tax authority know I am resident there?
Mostly from information you or your bank already provided. Account-opening forms ask you to self-certify tax residence, and that certification is reported between authorities under the Common Reporting Standard or, for US accounts, under the FATCA framework. Beyond that: employer and payroll filings, property registries, immigration records and the tax filings of anyone who paid you. The realistic planning assumption is that the data arrives. See FATCA and information reporting.