The Swiss right-back will sign for the Reds on a free transfer from Borussia Dortmund once his contract expires at the end of June.
"When I received the offer from Liverpool, there was no doubt I would accept it. They are one of the biggest clubs in the world and I am looking forward to the challenge of establishing myself there and playing in the best league there is," said Degen.