An inguinal hernia repair can be carried out as either open surgery or laparoscopic (keyhole) surgery.
The hospital will send you instructions about when you need to stop eating and drinking before the operation.
The operation usually takes about 30 to 45 minutes to complete and you'll usually be able to go home on the same day.
Some people stay in hospital overnight if they have other medical problems or live on their own.
Open inguinal hernia repair is often carried out under local anaesthetic or a regional anaesthetic injected into the spine.
This means you'll be awake during the procedure, but the area being operated on will be numbed so you will not experience any pain.
Sometimes a general anaesthetic is used. This means you'll be asleep during the procedure and will not feel any pain.
Once the anaesthetic has taken effect, the surgeon makes a single cut (incision) over the hernia. This incision is usually about 6 to 8cm long.
The surgeon then places the lump of fatty tissue or loop of bowel back into your abdomen (tummy).
A mesh is placed in the abdominal wall, at the weak spot where the hernia came through, to strengthen it.
When the repair is complete, your skin will be sealed with stitches. These usually dissolve on their own within a few days of the operation.
If the hernia has become strangulated and part of the bowel is damaged, the affected segment may need to be removed and the 2 ends of healthy bowel rejoined.
This is a bigger operation and you may need to stay in hospital longer.
General anaesthetic is used for keyhole inguinal hernia repair, so you'll be asleep during the operation.
During keyhole surgery, the surgeon usually makes 3 small incisions in your abdomen instead of a single larger incision.
A thin tube containing a light source and a camera (laparoscope) is inserted through one of these incisions so the surgeon can see inside your abdomen.
Surgical instruments are inserted through the other incisions so the surgeon can pull the hernia back into place.
There are 2 types of keyhole surgery.
During transabdominal preperitoneal surgery, instruments are inserted through the muscle wall of your abdomen and the lining covering your organs (the peritoneum).
A flap of the peritoneum is peeled back over the hernia and a piece of mesh is stapled or glued to the weakened area in your abdomen wall to strengthen it.
Totally extraperitoneal surgery is the newest keyhole technique and involves repairing the hernia without entering the peritoneal cavity.
Once the repair is complete, the incisions in your skin are sealed with stitches or surgical glue.
The National Institute for Health and Care Excellence (NICE), which assesses medical treatments for the NHS, says both keyhole and open surgery for hernias are safe and work well.
With keyhole surgery, there's usually less pain after the operation because the cuts are smaller. There's also less muscle damage and the small cuts can be closed with glue.
Keyhole surgery tends to have a quicker recovery time in people who:
But the risk of serious complications, such as the surgeon accidentally damaging the bowel, are higher with keyhole surgery than with open surgery.
The risk of your hernia returning is similar after both operations.
Discuss the advantages and disadvantages of keyhole and open surgery with your surgeon before deciding on the most appropriate treatment.
The choice of technique for inguinal hernia repair largely depends on:
The British Hernia Society recommends using the open technique to repair most primary single-sided hernias (those appearing for the first time on just one side).
Keyhole techniques are usually recommended for recurrent or bilateral hernias.
Read more about surgery techniques on the British Hernia Society website