Background: The population of older people is increasing worldwide. The social and healthcare systems need many nurses to care for the elderly. Positive attitudes increase the preference to work with older people and improve the quality of care. This study describes attitudes towards the elderly in a sample of nursing students, and analyzes the potential factors influencing these attitudes. Methods: A cross-sectional study was carried out in nursing students during the academic course 2017–2018. Kogan’s Attitude Toward Old People Scale was used to assess student attitudes towards older people. Results: The study included 377 undergraduate nursing students, of which 75.9% were women. The mean age was 22.23 (5.69) years. Attitude proved positive, with a mean Kogan’s score of 131.04 (12.66). Women had higher scores than men, with a mean difference of 7.76 (95% CI: 4.87–10.66; p < 0.001). The male sex, age ≥ 25 years, and previous experience with institutionalized older adults worsened attitudes, while studying the subject of geriatrics, each higher course within the degree, work placements in hospitals and nursing homes, and previous experience with community older adults or with older relatives favored a more positive attitude. Participants with no interest in working with older adults yielded lower scores. Conclusions: Attitudes towards the elderly among nursing students are positive. Women have a more positive attitude. Analyzing the factors that improve attitudes in nursing students is suggested, as it may contribute to improve nursing care.