Ageism is the existence of stereotypes, prejudices, and discrimination against the elderly. It is prevalent in the general population, but also among healthcare workers. The aim of this study was to develop and test a new scale for assessing the willingness of pharmacists to offer pharmaceutical care to elderly patients. The study was designed as cross-sectional, testing the reliability of the newly created questionnaire. The questionnaire was prepared through the work of a focus group, following the eight-step method, and administered via the internet. The WPhCareEld scale showed good internal consistency and reliability (Cronbach's alpha was 0.726) in a sample of community pharmacists, and its factor analysis showed that the scale measures four domains: willingness of community pharmacists to care for elderly patients through direct and indirect communication with prescribers, how the pharmacists value elderly patients, and whether the pharmacists have prejudices against elderly patients. The study confirmed the reliability and internal consistency of the newly designed questionnaire for measuring the willingness of community pharmacists to provide pharmaceutical care to elderly patients.