Original: Building codes will typically specify certain measurements so that the stairs are not too steep or narrow.
Simplified: Building code will specify the distance.