Hernia surgery generally takes between one to two hours to complete. The exact duration can vary depending on factors like the size of the hernia, your overall well-being, and the kind of surgery performed. Your surgeon will give a more detailed estimate during your consultation. Here are some factors that can influence the duration of hernia sur