BMI is calculated by dividing a person's weight in kilograms by the square of their height in meters. The formula is BMI = weight(kg) / (height(m))^2.