The hoop stress in a thin cylinder is calculated using the formula $\sigma_h = \frac{Pr}{t}$, where P is the internal pressure, r is the inner radius, and t is the thickness.