Many laparoscopic techniques have been evolved along years for pediatric inguinal hernia (PIH) with no standardization of technique. No single technique suits all varieties of hernia. To propose an algorithm for allocation of PIH to laparoscopic technique based on internal ring (IR) diameter to improve outcomes. Along 10 years, 459 cases with unilateral PIH were treated in Tanta University Hospital. In the first 5 years (phase I), 214 cases included then an algorithm for stratification was designed and applied in the second 5-year period (phase II), where 245 cases managed. This algorithm included evaluation of the hernia based on IR diameter as measured by the laparoscope from inside by a piece of suture. When the IR diameter is from 4 to 15 mm, complete sac disconnection is used. When IR diameter lies from 15 to 25 mm a purse string is added. When IR diameter is >2.5 cm or recurrent cases, the interrupted muscular arch repair after sac disconnection is used. In phase I, 170 boys and 44 girls from 6 to 180 months of age were treated. All cases managed by laparoscopy were 84 herniotomy, 82 by purse string, and 44 by interrupted muscular arch. In phase II, 180 boys and 65 girls from 3 to 180 months of age were included. Eighty were managed by herniotomy, 137 by purse string, and 25 by interrupted muscular arch. Recurrence rate decreased significantly in phase II. Application of Tanta algorithm reduces the recurrence rate significantly. The laparoscopic technique should be tailored according to criteria of each group of PIH to get the best outcome and reduced recurrence rate.