Hernia surgery usually takes between several hours to complete. The exact time can vary depending on factors like the extent of the hernia, your overall condition, and the nature of surgery performed. Your surgeon will give a more precise estimate during your consultation. Here are some factors that can affect the duration of hernia surgery: Loc