UTILS.
100% in-browser
🛡️

Factor of Safety Calculator

Compute factor of safety and margin of safety from material yield/ultimate strength and applied stress, with von Mises combined-load support.

Enter material strength and applied stress. Add shear for a combined von Mises check and a target factor for pass/fail.

About this tool

The Factor of Safety Calculator tells you how much stronger a part is than the load it carries. Enter the material's yield and/or ultimate strength and the applied stress, and it returns the yield-based and ultimate-based factors of safety, the corresponding margins of safety, and a pass/fail check against a target factor. All arithmetic runs locally in your browser and nothing you type leaves your device.

Factor of safety is simply strength divided by applied stress: n_yield = σ_yield / σ_applied and n_ultimate = σ_ultimate / σ_applied. The margin of safety is the factor of safety minus one, expressed as a percentage — a margin of 0% means the part is exactly at its limit. When a part sees both direct (normal) stress and shear at once, the tool combines them into the von Mises equivalent stress, σ_vm = √(σ² + 3τ²), and divides the strength by that equivalent value, which is the standard ductile-material yield criterion. It also reports the allowable stress at your target factor of safety, strength ÷ target, so you can see how much headroom you have.

As a worked example, a steel with a 250 MPa yield strength under 100 MPa of applied normal stress has a factor of safety of 2.5 and a margin of safety of 150%; if it also carried 40 MPa of shear, the von Mises stress would rise to about 122 MPa and the yield factor of safety would fall to about 2.05. Typical design factors run from about 1.5 for well-known static loads up to 4 or more for uncertain loads, brittle materials or safety-critical parts.

Frequently asked questions

What is the difference between factor and margin of safety?
Factor of safety is strength divided by applied stress (for example 2.5). Margin of safety is that factor minus one, shown as a percentage (150%). A margin of 0% means the applied stress exactly equals the strength, leaving no reserve; positive margins indicate spare capacity.
Should I use yield or ultimate strength?
Use yield strength when any permanent deformation is a failure — the usual case for machine parts. Use ultimate strength when only fracture matters, and apply a larger factor. The tool reports both so you can design against whichever limit governs your application.
How does the von Mises option work?
When both normal stress σ and shear stress τ act together, the tool computes the von Mises equivalent stress √(σ² + 3τ²) and divides the strength by it. This is the standard distortion-energy yield criterion for ductile metals and gives a single combined factor of safety.
What factor of safety is appropriate?
It depends on load certainty, material and consequences of failure. Roughly 1.5–2 for well-defined static loads and ductile metals, 2–3 for variable or shock loads, and 3–4 or more for uncertain loads, brittle materials or where failure endangers people.

More tools