In late March 2018, it was confirmed how Gomez would miss the next few games as a result of suffering an injury during an international friendly game. In May 2018, Gomez underwent surgery to his ankle injury, with Liverpool confirming via their official website that Gomez wouldn't play in Liverpool's last fixtures of the season, including the 2018 UEFA Champions League final. Overall, Gomez made 31 appearances across the season for Liverpool.