He has made 32 appearances for Liverpool this season after being sidelined for a month after a knee operation in January and struggling with a groin injury before Christmas.
Torres visited Barcelona-based specialist Dr Ramon Cugat over the weekend to get his latest injury assessed, but says he was already knew he was facing another operation.
"The scan I had on Friday afternoon in Liverpool cleared up the doubts and made us see that I would almost definitely have to have an operation,"
he told his website.
"It is true this season has been complicated by injuries. It has been difficult and a shame I have not been able to play more games and score more goals.
"The only thing now is to think about the prize of being in South Africa. You wait four years for it and if things go well I don't intend to miss it."
With their hopes of securing Champions League qualification all but extinguished, Liverpool must do without Torres in a battle to qualify for next season's Europa League.
Only fifth and sixth-place Premier League finishes guarantee European football next season although, if FA Cup finalists Portsmouth fail in their appeal to gain a Uefa licence, the team finishing seventh could also qualify for the Europa League.
Liverpool, who lie seventh, two points behind Aston Villa, face West Ham on Monday evening before Thursday's Europa League semi-final meeting with Torres' old club Atletico Madrid.
This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.