This paper investigates the entropy generation and natural convection inside a C-shaped cavity filled with CuO-water nanofluid and subjected to a uniform magnetic field. The Brownian motion effect is considered in predicting the nanofluid properties. The governing equations are solved using the finite volume method with the SIMPLE (Semi-Implicit Method for Pressure Linked Equations) algorithm. The studied parameters are the Rayleigh number (1000 ď Ra ď 15,000), Hartman number (0 ď Ha ď 45), nanofluid volume fraction (0 ď φ ď 0.06), and the cavity aspect ratio (0.1 ď AR ď 0.7). The results have shown that the nanoparticles volume fraction enhances the natural convection but undesirably increases the entropy generation rate. It is also found that the applied magnetic field can suppress both the natural convection and the entropy generation rate, where for Ra = 1000 and φ = 0.04, the percentage reductions in total entropy generation decreases from 96.27% to 48.17% for Ha = 45 compared to zero magnetic field when the aspect ratio is increased from 0.1 to 0.7. The results of performance criterion have shown that the nanoparticles addition can be useful if a compromised magnetic field value represented by a Hartman number of 30 is applied.