PurposeThis study explored moderating effects of employee generations on factors related to employee retention and motivation in the workplace.Design/methodology/approachThe authors developed a survey instrument and collected the survey data via Amazon Mechanical Turk. After filtering out bad responses, the authors ended up with 489 sample cases for this study. The authors used structural equation modeling for data analysis.FindingsEvidence showed that only transformational leadership was significantly related to retention of Generation X employees and only work–life balance had a significant relationship with intrinsic motivation. For Generation Y employees, transformational leadership was the only factor affecting their retention while both transformational leadership and autonomy showed significant impacts on their intrinsic motivation. Generation Z employees reported that only transformation leadership affected their retention while transformational leadership, corporate social responsibility and autonomy were significantly related to their intrinsic motivation in the workplace. All three generations showed statistical significance between intrinsic motivation and employee retention.Practical implicationsThis study could help business practitioners increase employees' work motivation and retention.Originality/valueFirst, our results revealed interesting similarities and differences between generations in terms of the factors that affected employees' retention and motivation. Second, this study proved that employees' generation affects the impacts of transformational leadership, CSR, autonomy, WLB and technology on their motivation and retention in the workplace. Third, the results of our study also showed that employees of different generations are intrinsically motivated by different factors, proving the importance of considering generational differences in motivation literature.