Hernia surgery generally takes between several hours to complete. The exact length can vary depending on factors like the magnitude of the hernia, your overall health, and the nature of surgery performed. Your surgeon will explain a more precise estimate during your consultation. Here are some factors that can affect the time of hernia surgery: