Same-sex marriage law in the United States by state

List of U.S. state and territorial statutes and codes, along with the Code of the District of Columbia, recognizing or prohibiting same-sex marriage, civil unions and domestic partnerships
  Statute recognizes same-sex marriage and civil unions and/or domestic partnerships
  Statute recognizes same-sex marriage only
  Statute neither recognizes nor prohibits same-sex marriage civil unions and domestic partnerships
  Statute prohibits same-sex marriage (not enforceable)
  Statute prohibits same-sex marriage, civil unions and domestic partnerships (not enforceable)
State and territorial constitutional laws on same-sex unions
  Constitution explicitly protects same-sex marriage
  Constitution implicitly protects same-sex marriage through state court ruling or general sexual orientation nondiscrimination clause
  No part of the Constitution bans or protects legal recognition of same-sex unions
  Constitution bans same-sex marriage
  Constitution bans same-sex marriage and civil unions
  Constitution bans same-sex marriage, civil unions, and any marriage-like contract between unmarried persons

This article summarizes the same-sex marriage laws of states in the United States. Via the case Obergefell v. Hodges on June 26, 2015, the Supreme Court of the United States legalized same-sex marriage in a decision that applies nationwide, with the exception of American Samoa and sovereign tribal nations.

There are 26 states which have constitutions including bans on same-sex marriage or other types of unions, and 30 states have statutes that ban same-sex marriage or other types of unions although these are all defunct under the Obergefell ruling. In November 2020, Nevada became the first state to repeal its constitutional ban on same-sex marriage following Obergefell.

As of 2015, same-sex marriage is now legal in all fifty states due to a ruling from the Supreme Court. However, in the aftermath of the Dobbs v. Jackson Women's Health Organization ruling, statutory or constitutional bans on same-sex marriages have received renewed attention over its applicability should Obergefell be overturned.

In December 2022, President Biden signed the Respect for Marriage Act. In the case that Obergefell is overturned and individual states outlaw same-sex marriages, the legislation regulates that all states and US territories must recognize legal unions performed in states where they are allowed. The Respect for Marriage Act was passed with bipartisan support in both chambers of Congress.