Ralph Macchio was 22 years old when he filmed The Karate Kid, which was released in 1984. Though his character, Daniel LaRusso, was a teenager of about 17-18 years old, Macchio was actually in his early twenties during the production. He was born on November 4, 1961, and filming began in late 1983, so he turned 22 during the filming period.