The only consolidated city-county in California, San Francisco encompasses a land area of about 46 sqmi on the northern end of the San Francisco Peninsula, giving it a density of about 17,867 people per square mile (6,898 people per km 2 ).