Rupin is a village in the administrative district of Gmina Baranowo, within Ostrołęka County, Masovian Voivodeship, in east-central Poland. It lies approximately 6 kilometres west of Baranowo, 26 km north-west of Ostrołęka, and 107 km north of Warsaw.