One of the crimes that occurs in society is adultery, for which Sharia has established a punishment for the perpetrators. However, there is a difference of opinion regarding the implementation of punishment for people with bisexual or transgender disorders, and a comprehensive study in this regard has not been conducted among Islamic denominations. The purpose of this research is to explain the jurisprudence of the crime of adultery of bisexual and transgender people in Imami and Shafi'i jurisprudence by referring to the books of these two denominations to answer the following questions: If a crime is committed by bisexual people, will they be punished? If the crime of adultery is not proven for such people, how much will be the punishment for them? Regarding transgender people who have a desire to be of the opposite sex, in the event of the crime of adultery, will they be subject to the Sharia limit or not? In the case of transsexual individuals who lean towards being of the opposite sex, if the crime of adultery occurs, will they be subject to religious punishment or not? Therefore, this research, utilizing library and electronic resources, has examined descriptively, analytically, and critically the jurisprudential foundations of the Imami and Shafi'i denominations. The Imami and Shafi'i jurists believe that in the case of indeterminate gender (those individuals with a gender that cannot be determined), due to the doubt about the existence of primary or accessory organs, according to the principle of "doubtfulness", the punishment is dropped, but they are subject to punishment for committing a forbidden act. However, in the case of determinate gender (i.e., individuals with gender that is predominantly male or female), they are assigned to one of the groups of women or men (based on the majority). Therefore, adultery and consequently, sexual crimes such as homosexual intercourse and incest are realized, and the religious punishment, and not leniency, must be applied to them. The jurists also believe that transsexuals are not relieved of criminal responsibility due to their condition. Therefore, if they commit the crime of adultery, they deserve the religious punishment.