Animated videos have become popular in teaching medical students, although there is a certain lack of evidence concerning its efficacy. Surgery seems to be an ideal field for its application, since animations are very helpful to understand anatomic structures and complex procedures. The aim of this study was to investigate the effects of animated videos compared to textbooks on learning gain. A prospective 2-arm cohort study with 5th-year medical students was conducted during their 2-week surgical training module. The initial cohort of students received textbook sections on 3 major topics in visceral surgery as learning medium (text cohort). During the following semester, the second cohort of students received 3 animated whiteboard videos (animated videos) containing equivalent content (video cohort). All participants completed a multiple-choice test consisting of 15 questions on the learning content at baseline (pre-test) and after the learning period (post-test) and answered an additional evaluation questionnaire. Both cohorts were similar in their descriptive data and demonstrated significant learning gain during the 2-week learning period. The video cohort achieved better results (80% vs 73% correct answers; P = .028) and a higher learning gain (17% vs 11%; P = .034) in the post-test compared to the text cohort. The estimated learning time was longer in the video cohort (62 min vs 37 min; P < .001) and watching the videos resulted in higher learning gain (21% vs 6%; P < .001). Subgroups with higher learning gain by video learning were female gender (20% vs 11%; P = .040), native German speakers (18% vs 11%; P = .009), students without prior surgical experience (19% vs 12%; P = .033) and those undecided concerning a surgical career (22% vs 9%; P = .020). Interestingly, "low digital orientation" students benefited from videos (22% vs 13%; P = .021), whereas "high digital orientation" students did not. Animated videos increase medical students' learning gain and interest in surgery.