Gmina Szaflary is a rural gmina (administrative district) in Nowy Targ County, Lesser Poland Voivodeship, in southern Poland. Its seat is the village of Szaflary, which lies approximately south of Nowy Targ and south of the regional capital Kraków.
The gmina covers an area of , and as of 2006 its total population is 10,227.
The gmina contains the villages of Baà Âska Nià ¼na, Baà Âska Wyà ¼na, Bór, Maruszyna, Skrzypne, Szaflary and Zaskale.
Gmina Szaflary is bordered by the town of Nowy Targ and by the gminas of Biaà Ây Dunajec, Bukowina Tatrzaà Âska, Czarny Dunajec and Nowy Targ.