Number of countries that permit same-sex marriage 2022, by legal procedure
32 countries in the world have legalized same-sex marriage. Most of the countries have legalized it through legislation. Austria, Brazil, Colombia, Costa Rica, Ecuador, Mexico, and Slovenia legalized same-sex marriage through court decisions, while two countries, South Africa and Taiwan, enacted legislation legalizing same-sex marriage after courts' mandates.