 It is located between municipalities of Oštra Luka in the north, Banja Luka and Mrkonjić Grad in the east, Glamoč in the south, and Istočni Drvar, Bosanski Petrovac, and Ključ in the west.According to the 2013 census results, the municipality of Ribnik has 6,048 inhabitants.The majority of its population are ethnic Serbs.