How long will it last?
It is not uncommon to experience pain afterhernia surgeryas you might with any other surgery.
This article explains the causes and risk factors of pain after hernia surgery.

monkeybusiness / Getty Images
It also describes the ways that postoperative pain can be treated, ranging from over-the-counter painkillers to nerve blocks.
There are occasions when the pain is longer lasting.
When it persists for more than three months, it is generally regarded as chronic postoperative pain.

Mesh-Related Pain
“Inguinodynia"is the term used to describe chronic groin pain.
It is a common occurrence associated with the placement of synthetic mesh during hernia repair surgery.
Hernia surgery with mesh generally takes longer to heal than hernia surgery without.

When neuropathy is involved, the pain may even be longer lasting.
In some rare cases, the recovery from nerve tissue damage may never be fully complete.
Risk Factors
Chronic pain after inguinal hernia repair is not uncommon.
Studies suggest that anywhere from 11% to 54% of people are affected to varying degrees.
Exercise is usually the best way to overcome this jot down of pain, along with waiting it out.
This uses focused radio waves to destroy a nerve pathway, thereby decreasing pain signals from that specific area.
Summary
Pain after hernia repair surgery is not uncommon.
It is generally short-lived, resolving within a week as your surgical wound heals.
Chronic postoperative pain can be difficult to treat following hernia repair surgery, although most eventually resolve.
Hard-to-treat cases may need prescription medications, nerve blocks, or procedures like radiofrequency ablation to provide sustained relief.
Surgery of any kind disrupts the surrounding tissue, causing an inflammatory response that promotes pain.
Acute pain post-hernia repair is common, as it is with most procedures.
It’s important to classify the pain into acute vs. chronic to identify causes and treatment modalities.
Andresen K, Rosenberg J.Management of chronic pain after hernia repair.J Pain Res.
2018;11:675-681. doi:10.2147/JPR.S127820
National Institute of Diabetes and Digestive and Kidney Diseases.Inguinal hernia.
2016;82(11):1063-1067.
Small C, Laycock H.Acute postoperative pain management.Br J Surg.
2020 Jan;107(2):e70-e80.
doi:10.1002/bjs.11477
HerniaSurge Group.International guidelines for groin hernia management.Hernia.
2019;22(8):960-969. doi:10.1111/ner.12871
Gopal SV, Warrier A.Recurrence after groin hernia repair-revisited.Int J Surg.
2013;11(5):374-7. doi:10.1016/j.ijsu.2013.03.012