Hernia surgery typically takes between one to two hours to complete. The exact length can vary depending on factors like the magnitude of the hernia, your overall condition, and the type of surgery performed. Your surgeon will explain a more detailed estimate during your consultation. Here are some factors that can influence the length of hernia