Staying covered when you work remotely for a U.S. employer
Working remotely for a U.S. company from Spain does not erase your American Social Security record. The U.S.–Spain totalization agreement decides which system covers you. It covers your pay, your health care, and your future retirement benefit while you build a life in Madrid, Barcelona, Valencia, or Málaga.
Which system covers your paycheck
Staying on your U.S. employer's payroll does not by itself guarantee you keep U.S. coverage. The agreement's own assignment rules decide, not the location of your paycheck alone. Ask your employer which system covers you, and confirm it with the Social Security Administration before you assume either outcome.
Some employers instead open a Spanish branch and move you onto Spanish coverage. That branch can then request a Spanish coverage certificate from the provincial social security office, which establishes your exemption from U.S. coverage 65. The Social Security Administration's application for that certificate asks for further worker and employer details beyond this basic request 65.
If you stay on your U.S. employer's payroll without opening a Spanish branch, there's another path. Your employer can get you a Certificate of Coverage from U.S. Social Security instead 47. That certificate proves you're already covered under the agreement, so you don't register for Spanish coverage 47.
<!-- limit: the sources consulted here, the Social Security Administration's agreement page and the telework-visa consular instructions, don't state how long this Certificate of Coverage path can last 4765 -->
Dual-coverage rules work differently for the self-employed. A self-employed worker who lives in Spain is assigned to Spanish coverage whenever the agreement would otherwise create double coverage 65. If you move a self-employed business between the two countries, the length of the move matters 65. A move of five years or less keeps that business's coverage in the country you left 65. → 3.2 covers the freelance path in full.
Whichever system covers you first, you can later combine U.S. and Spanish work credits toward a Spanish benefit 65. That combination only works once you have banked at least one year of Spanish coverage 65.
Reporting changes while you're still working
Moving between Spanish cities, or back to the United States, should not break your paper trail with Social Security. The Social Security Administration's international page lists an address-change option built for U.S. citizens living overseas 71. The page only names that option; it does not walk you through every step, so confirm the current procedure before you rely on it 71.
Each country later pays its own benefit under the agreement, and payments arrive monthly for the prior month 65. Whether you qualify, and how much you get, still depends on each country's own rules and the coverage you banked there 65. If the agreement ends up exempting you from Spanish coverage altogether, you generally will not pay into, or collect from, several Spanish programs, including health and unemployment benefits 65.
Once you are ready to file, you can submit a U.S. benefits claim through the Federal Benefits Unit at the U.S. Embassy in Madrid 65. The agency lists an email contact there, so check current embassy instructions before you apply 65. → 3.4 walks through the full retirement picture.
Do not count on Medicare while you're here
Medicare generally will not pay for health care or supplies you get in Spain; its plans are built around U.S. providers 73. Only three narrow exceptions apply nationwide, and none of them covers routine Spanish care 73. One exception covers certain emergencies near a foreign hospital, and another covers direct travel through Canada between Alaska and another U.S. state 73.
Looking ahead to retirement
If you later start drawing a U.S. retirement, disability, or survivor benefit while still living in Spain, use the Social Security Administration's Payments Abroad tool first 72. It checks whether your payments can continue abroad, whether they stop after six consecutive calendar months, or whether country-specific rules apply 72. The agency also points people abroad toward its guidance on reporting events that affect benefits and on reaching the right office 72. → 3.4 goes through that process step by step.
