Gerrard suffered a recurrence of a groin problem in last weekend’s Premier League win over Manchester United.
A club statement read: “LFC can today confirm that Steven Gerrard has undergone successful surgery on his groin and will be out for up to four weeks.
“The decision was made following consultation with a specialist.”