Immediately after knee replacement surgery, you should expect to stay in the hospital for a few days. It is common to feel pain after surgery, but your doctor will prescribe pain medication to ease your discomfort. It is recommended to move your foot and ankle in order to prevent blood clots from forming. Physical therapy can begin as soon as the day after surgery. Over the next few weeks, your physical therapist will help you strengthen your knee and leg with walking exercises.