LOS ANGELES (CBSLA.com/AP) — The city of Los Angeles grew by more than 40,000 people and now is home to more than 4 million, according to a report released Monday.

Data from the Department of Finance shows California’s overall population rose to 39.5 million in 2016 as the state added more than 300,000 residents last year, with the largest increases in big cities.

READ MORE: Christina Aguilera To Receive Music Icon Honor At People's Choice Awards

But as the city grows, so does its homeless population: last year’s Greater Los Angeles Homeless Count found that the homeless population increased 5.7 percent from 2015 to reach 46,874.

In addition to L.A., San Diego, San Jose and San Francisco also saw significant population gains. Sacramento grew by the largest percentage of the ten biggest California cities.

READ MORE: Wilson High In Long Beach Plans Gender-Neutral Locker Rooms In New Aquatic Center

Cities with the largest declines in population percentage all saw decreases due to the loss of group living quarters such as prisons, college dormitories and military barracks.

Housing growth in the state picked up last year. California added nearly 90,000 new housing units. The total number of units in California now exceeds 14 million.

MORE NEWS: Southland Coastal Areas Draped In Fog; Forecasters Urge Caution On The Roads

(© Copyright 2017 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)