Rocklin is a city in Placer County, California. It is a primarily residential community located north of Sacramento. It shares borders with Roseville, Loomis, and Lincoln. As of 2009, the city's population was estimated to be 54,754 people. Rocklin is part of the Sacramento–Arden-Arcade–Roseville Metropolitan Statistical Area.