Postoperative pain is a common problem after inguinal herniotomy. We aimed to compare the intravenous anesthesia effects of propofol and isoflurane inhalation anesthesia on postoperative pain after inguinal herniotomy. In a randomized clinical trial, 102 eligible patients were selected based on inclusion and exclusion criteria and were randomly divided in two groups. In the first group, propofol was used for the maintenance of anesthesia, while isoflurane was used in the second group. The patient’s heart rate, systolic and diastolic blood pressure and oxygen saturation before, during and after surgery, recovery time and postoperative pain were measured immediately, 2, 4 and 6 hours after surgery and compared between two groups. T-test, and repeated measurement test were used for statistical analysis. No statistically significant differences were observed in heart rate, blood pressure and oxygen saturation levels between the two groups (P > 0.05). Propofol has higher effect in easing postoperative pain of patients than isoflurane, but no difference in postoperative complications, including chills, nausea and vomiting, occurs in both two groups. Propofol is effective in declining the postoperative pain of patients after anesthesia in comparison with isoflurane. Moreover, due to the antioxidant, anti-inflammatory and analgesic properties of propofol, it is preferred to isoflurane and the authors recommended it to be used.