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 health, and the kind of surgery performed. Your surgeon will give a more specific estimate during your consultation. Here are some factors that can affect the length of hernia surgery: Lo