The Reds skipper has been troubled by the injury for several weeks and has been playing through the pain barrier in an attempt to see out the season, having started every Premier League game to date.
But Liverpool have decided now is the best time for the midfielder to go under the knife, as they give Gerrard as much time as possible to get back to full fitness ahead of this summer’s pre-season training.
Gerrard will now join Luis Suarez and Joe Allen on the sidelines for the final two matches – away at Fulham and at home to Queens Park Rangers.
The operation also means the 32-year-old is expected to miss England’s two summer friendlies, against Republic of Ireland at Wembley on May 29 and away to Brazil on June 2.
A goal apiece from James Tomkins and Luka Milivojevic handed Crystal Palace a crucial 2-0 win over Huddersfield at the John Smith's Stadium on Saturday evening.
Manchester United bounced back from their Champions League exit as they beat Brighton 2-0 at Old Trafford on Saturday night to reach the FA Cup semi-finals.
Tottenham reached the FA Cup semi-finals after they cruised to a 3-0 victory over Swansea in their quarter-final clash at the Liberty Stadium on Saturday.
Premier League basement club West Brom squandered the lead as they suffered a 2-1 defeat to Bournemouth at the Vitality Stadium on Saturday.