The recovery time for leg surgery can vary depending on the type of surgery performed and the individual's overall health. However, on average, it can take anywhere from a few weeks to several months for a person to fully recover and regain full function of their leg. It is important to follow the post-operative care instructions provided by the surgeon and attend any follow-up appointments to ensure a successful recovery.