A residency in medicine in the United States has an average duration of three to eight years depending on the specialty.