Boys' math confidence is heavily influenced by peer comparisons, while girls base their self-assessment on actual performance. Despite similar math abilities, girls often lack confidence compared to boys. This confidence gap impacts career choices, leading to fewer women in STEM fields. The study highlights the need for addressing peer dynamics to foster math confidence in both genders.