We study the total effect of the mobility of R&D workers on the firm that they join and the firm that they leave.•We document not only positive effects of R&D workers joining from other firms (in particular from those firms that are patent-active) but also of workers who have left the firm to join a patent-active new employer.•We hence find evidence for positive effects of mobility on innovation and, in particular, for labor mobility increasing the total innovative activity of the firms involved in the mobility event.•The interpretation of our findings as resulting from knowledge transfer is backed up by analysis of citations patterns between firms showing that the probability that firm A cites firm B (and vice versa) increases if there hav...