Even for the USA you'd generally not be taxed twice, because foreign taxes paid are deductible from U.S. taxes. For example if I, as an American living in Denmark, sold a startup, I would pay Danish taxes on the sale. Then I would file American taxes by computing my tax liability under the American rates and subtracting the Danish taxes paid. The result in that case would just about always be $0, because Danish taxes are higher than American taxes, so the foreign tax credit wipes out any American tax liability. If the foreign taxes were lower, you'd have to pay the difference in U.S. taxes, but not the sum of the two.