Gmina Olszanica is a rural gmina (administrative district) in Lesko County, Subcarpathian Voivodeship, in south-eastern Poland. Its seat is the village of Olszanica, which lies approximately east of Lesko and south-east of the regional capital Rzeszów.
The gmina covers an area of , and as of 2006 its total population is 5,059.
The gmina contains part of the protected area called Słonne Mountains Landscape Park.
Villages.
Gmina Olszanica contains the villages and settlements of Olszanica, Orelec, Paszowa, Rudenka, Stefkowa, Uherce Mineralne, Wańkowa and Zwierzyń.
Neighbouring gminas.
Gmina Olszanica is bordered by the gminas of Bircza, Lesko, Solina, Tyrawa Wołoska and Ustrzyki Dolne.