Calculate the factor of safety for materials and structures using ultimate, yield, or working stress. Step-by-step formulas included for tension, compression, or bending.