The duration of leg pain varies depending on the cause but can range from a few days to several weeks.