This study analyzes the relationships between cognitive appraisals, classroom and test emotions and math achievement in a sample of 1219 Portuguese students from the 6 th and 8 Results showed significant associations between students competence and value appraisals, their emotional experiences in test and classroom situations, and their math achievement. However, when emotions were considered simultaneously in Structural EquationModelling, only anger in test situations and hopelessness were significant negative predictors of students math achievement. Hopelessness appears to play a particular role in the interplay between cognitive appraisals, emotions and academic achievement as it is the only emotion that relates to math achievement both in test and classroom situations. Furthermore, findings also support the existence of differences in the relationships between cognitive appraisals and the achievement emotions students experience in these two settings.