linguistic:translation
Education, households, and income

Of all major cities in the United States, San Francisco has the second-highest percentage of residents with a college degree, second only to Seattle. Over 44% of adults have a bachelor's or higher degree. San Francisco had the highest rate at 7,031 per square mile, or over 344,000 total graduates in the city's 46.7 square miles (121 km).

San Francisco has the highest estimated percentage of gay and lesbian individuals of any of the 50 largest U.S. cities, at 15%. San Francisco also has the highest percentage of same-sex households of any American county, with the Bay Area having a higher concentration than any other metropolitan area.

San Francisco ranks third of American cities in median household income with a 2007 value of $65,519. Median family income is $81,136. An emigration of middle-class families has left the city with a lower proportion of children than any other large American city, with the dog population cited as exceeding the child population of 115,000, in 2018. The city's poverty rate is 12%, lower than the national average. Homelessness has been a chronic problem for San Francisco since the early 1970s. The city is believed to have the highest number of homeless inhabitants per capita of any major U.S. city.

There are 345,811 households in the city, out of which: 133,366 households (39%) were individuals, 109,437 (32%) were opposite-sex married couples, 63,577 (18%) had children under the age of 18 living in them, 21,677 (6%) were unmarried opposite-sex partnerships, and 10,384 (3%) were same-sex married couples or partnerships. The average household size was 2.26; the average family size was 3.11. 452,986 people (56%) lived in rental housing units, and 327,985 people (41%) lived in owner-occupied housing units.The median age of the city population is 38 years.

San Francisco declared itself a sanctuary city in 1989, and city officials strengthened the stance in 2013 with its 'Due Process for All' ordinance. The law declared local authorities could not hold immigrants for immigration offenses if they had no violent felonies on their records and did not currently face charges." The city issues a Resident ID Card regardless of the applicant's immigration status.