In the rapidly evolving landscape of 21st-century education, the need for innovative pedagogical frameworks that bridge the gap between linguistic proficiency and complex cognitive competencies has become increasingly paramount. This study investigates the integration of computational thinking (CT) into English as a foreign language (EFL) instruction through the flipped classroom (FC) model and peer feedback to enhance EFL students' writing performance. Using a quasi-experimental, mixed-methods design with 58 third-year EFL students enrolled in an academic writing course, the research examines CT’s impact on writing performance across five dimensions: creativity, problem-solving, critical thinking, algorithmic thinking, and cooperativity. This study also explores how CT instructions affect the perceived usefulness of peer feedback and students’ perceptions of these pedagogical strategies. The findings indicate that incorporating CT into the FC model, augmented by peer feedback, significantly improves writing performance by fostering critical thinking and problem-solving abilities. This study contributes to language education by demonstrating how integrating CT with peer feedback highlights the potential of combining CT with peer feedback and flipped learning offers an effective pedagogical strategy for addressing 21st-century EFL writing challenges.