Introduction: Currently there is a primary care physician shortage in the United States, and this shortage is expected to worsen into the foreseeable future. In 2023, only 7.5 % of US allopathic graduates entered family medicine (FM) residencies. Opportunities to create increased interest in family medicine as a career choice and address hidden curriculum messages in career choice must be explored to address shortages in family medicine. Methods: A 5-day inpatient experience with family medicine residents on a family medicine inpatient service was implemented during a required third-year core medical student clerkship in family medicine. Students who participated in this clerkship change were invited to complete a survey on how this experience altered their perceptions on the roles of family medicine physicians in inpatient medical care, intrapartum care, and care of the newborn, and how it affected their view of FM as a career choice. Results: Of the eligible students, 34% completed the survey. Participating in the FM inpatient experience significantly enhanced students’ perceptions about the depth of knowledge and skill needed for the specialty, increased students’ respect for the specialty, and contradicted students’ perceptions about the complexity of cases treated in the specialty. Conclusion: Adding an inpatient component to a third-year FM clerkship experience can significantly change the perceptions of medical students about the specialty of FM. Brief inpatient exposure to medical students has an impact on hidden curriculum messaging about family medicine.