My question is similar to the one here and concerns my 2022 US tax return: Federal income tax as nonresident alien working outside of USA remotely for US employer
For 2022, I filed as a non-resident (I did not pass SPT and I have moved permanently away from the US in late 2022). According to my I-94, I spent around 50% of the days while I was employed by a US employer in the US, and the other 50% abroad. That is, while working for a US employer, I worked 50% in the US and 50% abroad.
My employer withheld FICA taxes. My question is: I know that I am entitled to some refund, but I am not sure whether it is 100% of the FICA taxes that were withheld or only 50%?
According to here (https://www.irs.gov/individuals/international-taxpayers/aliens-employed-in-the-us-social-security-taxes), it says that nonresident aliens on H-visas are exempt from FICA taxes, so I could be in for a 100% refund.
According to here (https://www.irs.gov/individuals/taxation-of-alien-individuals-by-immigration-status-h-1b), it says that "An H1-B alien who is paid wages in exchange for personal services performed within the United States is liable for U.S. Social Security and Medicare taxes on such wages, regardless of whether he or she is a U.S. resident alien or nonresident alien, unless he or she is engaged in a type of employment that under U.S. law is not subject to U.S. Social Security and Medicare taxes. Please refer to Publication 15 for more information." (emphasis mine)
I interpret this to mean that I am liable for FICA taxes for the wages earned while in the US. So, under this interpretation, I would be in for a 50% refund of my FICA taxes.
So, which is it, 50% or 100% refund?
Edit: I may actually have misread this publication https://www.irs.gov/individuals/international-taxpayers/aliens-employed-in-the-us-social-security-taxes . I think it says that "Wages paid to nonresident aliens employed within the United States by an American or foreign employer, in general, are subject to Social Security/Medicare taxes for services performed by them within the United States, with certain exceptions based on their nonimmigrant status." and that there are no exceptions for H1-B visas from this rule.
So, I think it is a 50% refund, but it would be great if someone could confirm.