La Barben is located some 18 km north-west of Aix-en-Provence and 5 km east of Salon-de-Provence. Access to the commune is by the D572 road from Salon-de-Provence which passes through the centre of the commune and continues east to Saint-Cannat. The D17 from Pélissanne to Éguilles forms the south-western border of the commune. The D67E from Lambesc to Coudoux forms the south-eastern border of the commune. The D22A comes from Pelissane and passes through the village continuing as the D22 to join the D572 in the centre of the commune next to the zoo.