The rights of lesbian, gay, bisexual, transgender, and queer (LGBTQ) people in the U.S. state of Utah have significantly evolved in the 21st century. Protective laws have become increasingly enacted since 2014, despite the state's reputation as socially conservative and highly religious. Utah's anti-sodomy law was invalidated in 2003 by Lawrence v. Texas, and fully repealed by the state legislature in 2019. Same-sex marriage has been legal since the state's ban was ruled unconstitutional by federal courts in 2014. In addition, statewide anti-discrimination laws now cover sexual orientation and gender identity in employment and housing, and the use of conversion therapy on minors is prohibited. In spite of this, there are still a few differences between the treatment of LGBTQ people and the rest of the population, and the rights of transgender youth are restricted.

Opinion polling has shown an increase in support for LGBT rights in the state. A 2017 Public Religion Research Institute poll showed that 44% of Utah residents supported same-sex marriage, a significant increase from the early 2000s. A 2019 survey by the same pollster showed that 74% of Utahns supported anti-discrimination legislation protecting LGBTQ people. Salt Lake City, the largest city in the state, has one of the largest LGBTQ populations per capita in the country.

Law regarding same-sex sexual activity Criminalization of same-sex sexual activity began since people of European descent first established a federally recognized government in the region. In 1851, the theocratic Utah Territorial Legislature of the newly formed Utah Territory passed the first law addressing same-sex sexual activity. Brigham Young acted as both the Territorial Governor and the president of the Church of Jesus Christ of Latter-day Saints (LDS Church) and oversaw the selection of legislators. The law banned any "man or boy" from "sexual intercourse with any of the male creation" with penalties left to the courts' discretion. Only one year later, a new criminal code was passed. It made no mention to sodomy or common-law crimes, thus legalizing sodomy in Utah. The lack of such a law was noted in 1864, when a soldier, Frederick Jones, was arrested on the grounds of sodomy but later released as there was no law punishing it. Shortly after his release, Jones was murdered by the father of his sexual partner. In 1876, the Utah Territorial Legislature enacted a new criminal code, which this time contained provisions outlawing sodomy. Punishment was set at five years' imprisonment, and 10 years for attempted sodomy. The law applied to both heterosexual and homosexual conduct, as well as to private and consensual activity. In 1913, in the case of State v. Johnson, the Utah Supreme Court held that fellatio (oral sex) was not a criminal offense. Despite expressing its disgust toward the practice and the fact that Johnson was "a negro", the court ruled that fellatio could not be criminal without defined legislation. In response, the state passed a law in 1923 prohibiting "sodomy or any other detestable and abominable crime against nature" that was committed "with either the sexual organs or the mouth", with a penalty varying between three and twenty years' imprisonment.

In 1969, the Utah State Legislature reduced the penalty for sodomy from a felony to a misdemeanor. It also removed the reference to "detestable and abominable crime against nature" and reduced the penalty for consensual acts to a maximum of six months in county jail, and/or a fine of up to $299. In 1973, a comprehensive revision of the law resulted in married couples being exempt from prosecution. The revision also established that an act of sodomy could be completed by "any touching". The sodomy statute would remain in force until 2003 when the U.S. Supreme Court invalidated all state sodomy laws with its landmark 6 to 3 opinion in Lawrence v. Texas. The opinion stated that private consensual sexual conduct is protected by the due process and equal protection rights that are guaranteed by the United States Constitution.

In 1925, the Utah State Legislature passed a sterilization law, providing for the possible sterilization of state inmates afflicted with "habitual sexual criminal tendencies". The statute was upheld by the state Supreme Court in 1929 in the case of Davis v. Walton. By the end of 1948, 555 persons had been sterilized in Utah, all of them "insane or mentally retarded". The law was amended in 1975 to apply only to the "mentally redarded".

Openly gay Utah Senator Scott McCoy (D-Salt Lake) unsuccessfully sponsored the bill S.B. 169 ("Sodomy Amendments") in 2007. The bill would have amended the state sodomy law by repealing its unconstitutional parts. The bill failed without consideration.

After lobbying in 2011 by gay activist David Nelson, the Utah Department of Public Safety amended its administrative rule which restricted the issuance of the state concealed-firearm permit to individuals who were ever convicted of violating the state sodomy law.

On January 29, 2019, the state House approved a bill to repeal unconstitutional provisions in regard to sodomy and adultery in a 74–0 vote with 1 abstention. It was approved by the Senate on February 22 in a 25–2 vote with 2 abstentions, and signed by Governor Gary Herbert on March 25, 2019.

Recognition of same-sex relationships

Same-sex marriage in Utah has been legal since October 6, 2014, following the resolution of a lawsuit challenging the state's ban on same-sex marriage. Same-sex marriage was also legal in Utah from December 20, 2013, to January 6, 2014.

In response to the 1993 Baehr v. Miike court case on same-sex marriage in Hawaii, Representative Norm L. Nielsen (R-Utah County) sponsored the bill H.B. 366 ("Recognition of Marriages") in 1995. The bill passed the State Legislature. It prohibited state recognition of same-sex marriages which were performed in other states and nations. It was the first such law in the United States.

Utah voters approved a ballot referendum, Utah Constitutional Amendment 3, in 2004 that constitutionally defined marriage as the legal union between a man and a woman and restricted unmarried domestic unions. The referendum was approved by a margin of 65.8 percent to 33.2 percent.

On March 25, 2013, three same-sex couples, including one already married in Iowa, filed a lawsuit in the United States District Court for the District of Utah seeking to declare Utah's prohibition on the recognition of same-sex marriages unconstitutional under the Due Process and Equal Protection clauses of the United States Constitution. The court heard arguments on December 4. The state argued that there was "nothing unusual" in enforcing policies that encourage "responsible procreation" and the "optimal mode of child-rearing". Plaintiffs' attorney contended that the policy is "based on prejudice and bias that is religiously grounded in this state". On December 20, 2013, District Judge Robert J. Shelby found the same-sex marriage ban unconstitutional and ordered the state to cease enforcing the ban. The U.S. Supreme Court stayed the order of the District Court on January 6, 2014, pending the appeal of its decision to the Tenth Circuit. On June 25, 2014, the Tenth Circuit upheld the lower court ruling, a decision that sets a precedent for every state within the circuit. However, the Tenth Circuit stayed this ruling. The U.S. Supreme Court refused the appeal from the state on October 6, 2014, requiring Utah to license and recognize same-sex marriages.

Adoption and parenting Individuals and couples need to be married or single to be foster parents within Utah. Cohabiting or common-law couples are legally banned from being foster parents.

Representative Nora B. Stephens (R-Davis County) sponsored a bill, H.B. 103 ("Amendments to Child Welfare"), in 1998. It passed the State Legislature. The law requires state agencies to give adoption priority to married couples and to prohibit adoptions by cohabitating unmarried couples. Openly lesbian Representative Jackie Biskupski (D-Salt Lake) spoke against the bill.

A single person can adopt in Utah, except that by Utah law "a person who is cohabiting in a relationship that is not a legally valid and binding marriage" cannot adopt. Utah law states that "a child may be adopted by adults who are legally married to each other in accordance with the laws of this state, including adoption by a stepparent."

On December 20, 2013, same-sex marriage became legal in Utah; thus legalizing same-sex adoption for same-sex couples. However, the U.S. Supreme court stayed the order. On October 6, 2014, the Supreme Court refused to hear the case, and the hold was lifted. In 2013, Utah's capital, Salt Lake City, and its suburbs had the highest rate — 26 percent — of same-sex couples sharing parenthood, according to an analysis of census data by the Williams Institute at the UCLA School of Law.

Lesbian couples have access to in vitro fertilization. State law recognizes the non-genetic, non-gestational mother as a legal parent to a child born via donor insemination, but only if the parents are married. Gestational surrogacy arrangements are valid and legal in Utah but only for married couples. In August 2019, the Utah Supreme Court, basing its decision on the Equal Protection Clause of the U.S. Constitution, ruled unconstitutional a piece of state law barring same-sex couples from reaching a surrogacy agreement with a woman they wish to carry their child. The decision says in part that "same-sex couples must be afforded all of the benefits the state has linked to marriage."

Discrimination protections

On March 6, 2015, the Utah State Senate passed Utah SB 296 in a 23–5 vote. The law bans discrimination based on sexual orientation and gender identity in employment and housing (public accommodation not included) with exemptions for religious organizations and their affiliates such as schools and hospitals, as well as the Boy Scouts. The bill also would protect employees from being fired for talking about religious or moral beliefs, as long as the speech was reasonable and not harassing or disruptive. The measure was backed by the LDS Church. It was approved by the state House on March 11, in a 65–10 vote. On March 12, 2015, Governor Gary Herbert signed the bill into law.

Prior to that, Representative Christine Johnson (D-Salt Lake) sponsored an anti-discrimination bill, H.B. 89 ("Antidiscrimination Act Amendments"), in 2008. The bill, however, failed to pass the State Legislature. It would have prohibited employment discrimination based on sexual orientation or gender identity. She reintroduced the bill unsuccessfully in 2009 and 2010. She also sponsored H.B. 128 ("Antidiscrimination Study Related to Employment and Housing") in 2010. The bill would have required a study of employment and housing discrimination based on sexual orientation or gender identity.

Governor Gary Herbert appointed openly gay Brian Doughty in 2011 to replace Utah Representative Jackie Biskupski (D-Salt Lake) when she resigned from the Utah House of Representatives.

In March 2020, the Utah State Legislature passed a bill banning offensive number plates on vehicles on the basis of sexual orientation or gender identity, among other categories such as religion, sex or race.

Common Ground Initiative In response to the adoption in 2008 of California's Proposition 8, Equality Utah leaders launched the group's Common Ground Initiative. The initiative included the introduction of five bills to the Utah Legislature to protect the equal rights of LGBTQ people in the state. Human Rights Campaign leaders delivered 27,000 letters to church leaders in support of the legislation; the Church had previously published a statement saying that it did not object to the bills. The measures of the initiative failed, some in committee.