The osmolality gap is an indication of unmeasured solute in the blood. It is determined by the measured osmolality (MO) minus the calculated osmolality (CO).
Where: CO = 2 X [Na]+[glucose (mg/dl)] / 20 + [urea (mg/dl) ] / 3 - 2 Osmolality Gap = MO - CO
Here's an easy way to calculate it.