Molarity = (Mass / Molar mass) × (1 / Volume)The concentration of sugar (C12H22O11) is (20g / 342 g/mol) × (1 / 2L) = 0.029 mol/L.molar mass of C12H22O11 = 342 g/mol