This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

California’s population grew by 215,000 people but is still shy of 40 million, the state announced Friday.

The population of the most populous state hit 39.8 million as of July 1, 2018, according to numbers from the Department of Finance that began in July 2017. California’s population far exceeds that of any other state; Texas ranks second with nearly 29 million people, followed by Florida and New York.

California’s growth was driven by about 200,000 more births than deaths and a net migration of 21,000, meaning more people came to the state than left. Inland counties such as Amador and Placer, at the foothills of the Sierra Nevada mountain range, and Merced in the Central Valley, saw the highest growth rates.

Sonoma and Napa counties in wine country saw their populations decline by the highest rate in the state, and rural areas in inland and Northern California also lost people.

Los Angeles County remains the state’s most populous county at nearly 10.3 million people, triple that of the next closest California county, San Diego, and larger than most states. Riverside County grew by 27,000 people, the largest numeric change.

The population estimates come as the state and nation prepare for a new census count in 2020. California has added 2.6 million people since the 2010 census. The decennial count determines how many seats each state gets in Congress and how much federal money it gets for various services.

Since 2010, California has gained a net 1.3 million foreign immigrants.