Johnny Depp was 36 years old when Charlie and the Chocolate Factory was released in 2005 (born June 9, 1963).