The impact of baffles on a convective heat transfer of a non-Newtonian fluid is experimentally studied within a square cavity. The non-Newtonian fluid is pumped into the cavity through the inlet and subsequently departs from the cavity via the outlet. Given the inherent non-linearity of the model, a numerical technique has been selected as the method for obtaining the outcomes. Primarily, the governing equations within the two-dimensional domain have been discretized using the finite element method. For approximating velocity and pressure, we have employed the reliable $${\mathbb{P}}_{2}$$
P
2
–$${\mathbb{P}}_{1}$$
P
1
finite element pair, while for temperature, we have opted for the quadratic basis. To enhance convergence speed and accuracy, we employ the powerful multigrid approach. This study investigates how key parameters like Richardson number (Ri), Reynolds number (Re), and baffle gap $${{\text{b}}}_{{\text{g}}}$$
b
g
influence heat transfer within a cavity comprising a non-Newtonian fluid. The baffle gap ($${b}_{g}$$
b
g
) has been systematically altered within the range of 0.2–0.6, and for this research, three distinct power law indices have been selected namely: 0.5, 1.0, and 1.5. The primary outcomes of the investigation are illustrated through velocity profiles, streamlines, and isotherm visualizations. Furthermore, the study includes the computation of the $${Nu}_{avg}$$
Nu
avg
(average Nusselt number) across a range of parameter values. As the Richardson number (Ri) increases, $${Nu}_{avg}$$
Nu
avg
also rises, indicating that an increase in Ri results in augmented average heat transfer. Making the space between the baffles wider makes heat flow more intense. This, in turn, heats up more fluid within the cavity.