The ionic strength (I) of a solution is calculated using the formula: I = 0.5 Σci zi² where ci is the concentration of the i-th ion and zi is the charge of the i-th ion. This formula takes into account both the concentration and the charge of all ions present in the solution, providing a comprehensive measure of ionic strength.