J-1 and F-1 students should not have the Social Security or Medicare taxes withheld if they have been in the U.S. for five calendar years or less.
J-1 scholars are exempt from the Social Security and Medicare tax withholdings if they have been in the U.S. for two years or less during the preceding five calendar years.