Answer:

Income tax

One general principle of international taxation is that you are normally taxed on your worldwide income in the country where you live. 

Another general principle is that employment income is sourced where the work is being physically done, unless you only work from a country that you don't live in for a relatively short period of time. The principle is coded into most double taxation treaties that Portugal is a party of.

For people whose employer is based in a country that has a double taxation treaty with Portugal, it is therefore possible to continue to work as an employee, but only if they travel back to the other country for work. Otherwise, if they are working remotely from Portugal, they must pay income tax in Portugal. For that to happen, their employers must register a branch in Portugal.

In many cases, both employer and employee "pretend" that the employment continues from the other country, but both employer and employees doing that are taking a risk of the Portuguese tax authorities looking to tax them. Portugal will in such a case not acknowledge taxes paid in the other country.

Social security 

The general rule of social security is that it is paid in the same place where employment is exercised and the coverage is also in the same place. 

However, some countries have social security agreements with each other, allowing for a concept of "temporary placement". Employees moving to another country for a limit time and can present evidence that this is the case could continue to pay, if an agreement is in place, social security in the other country.


Frequently Asked Questions

Automatically Created

Where do I pay tax if I work remotely for a US employer while living in Portugal?
You must pay income tax in Portugal if you work remotely from there, as you are taxed on your worldwide income in the country where you live.
What happens if my employer doesn't register a branch in Portugal?
If your employer doesn't register a branch in Portugal, both you and your employer risk the Portuguese tax authorities seeking to tax your income locally.
Can I continue paying social security in the US while working in Portugal?
You may continue paying social security in the US if there is a social security agreement between the US and Portugal and you can prove your stay in Portugal is temporary.
Does Portugal acknowledge taxes paid in the US for remote work?
No, Portugal will not acknowledge taxes paid in the US if you are working remotely from Portugal and do not comply with local tax obligations.