Visas deter US-based startups from hiring foreign talent, but on the flip side, US taxation laws deter US-based talent from leaving the country. I would love the idea of working for a startup in Berlin, but to make financially comparable, I'd have to be paid about 30% more[0] just to offset the cost of paying double taxes (both to the US, and to Germany). I'm ignoring factors like COLA, other expenses, etc., but for…
If you are a U.S. citizen working in Berlin and paying German income tax, you will not be double-taxed on the income. The USA will give you credit for the tax paid in Germany. See Form 1116. Others have mentioned the Foreign Earned Income Exclusion. See Form 2555. You will, however, pay two metric shit-tonnes in professional fees getting your U.S. tax returns prepared because the international tax rules are so ridicu…
Oh wait, you won't find any, because you are not allowed to. The way to do it is to create a company, even if it just you. Then you'll be able to receive international transfers from foreign companies, provided you have signed a contract.
And, after that, we can start talking about taxes. Considering that brazilian companies spend, on average, 2600 hours per year dealing with (domestic!) taxes, as opposed to 325h on average in the US, well...