Another way to design a shaft is to calculate the minimum diameter needed to prevent torsional deflection (twisting) during service, meaning for engineers that the allowable twisting moment, or torque, is a function of the allowable torsional shearing stress (in PSI or kPa) and the polar section modulus (a function of the cross-sectional area of the shaft).