Retaining Wall Calculator

Engineering Calculators › Retaining Wall Calculator
Engineering · Civil

Retaining Wall Calculator

Will a gravity retaining wall stay put? Checks the three ways it fails — overturning, sliding and bearing — with safety factors and a clear pass or review verdict.

Wall stability

Three Ways a Retaining Wall Fails

A retaining wall holds back soil that is constantly trying to push it over, shove it forward, or sink it into the ground. Stability comes down to three checks, and a wall has to pass all three:

Failure modeWhat resists itTypical safety factor
OverturningWall weight about the toe2.0
SlidingFriction under the base1.5
BearingSoil capacity under the toepeak below allowable

The Push: Active Earth Pressure

The soil behind the wall pushes with a force that grows with the square of the height. Using Rankine theory for a level granular backfill, the active pressure coefficient is:

Ka = tan²(45° – φ/2)

A higher friction angle φ means a lower Ka and less push. The total thrust acts at one third of the height up from the base, which is what drives the overturning moment.

Water Is the Real Enemy

Most retaining walls that fail do so because water built up behind them, adding hydrostatic pressure the wall was never sized for. This calculator assumes a drained backfill — so the single most important thing you can build into a real wall is drainage: weep holes, a gravel zone and a drain pipe.

Frequently Asked Questions

What is the middle-third rule?

If the resultant force stays within the middle third of the base, the whole base stays in compression. Outside it, the heel lifts into tension and bearing concentrates at the toe. The calculator flags this even when the other checks pass.

Gravity or cantilever wall?

This tool models a gravity wall, which resists by sheer mass. Cantilever walls add a reinforced stem and use the weight of soil on the heel – a related but separate calculation.

What friction angle should I use?

Clean sand and gravel are around 30 to 36 degrees; silty or clayey soils are lower. Use the value from your soil report; guessing high is unconservative.

For education and preliminary design only. Real retaining walls require a geotechnical report, drainage design, and analysis to the governing building code; tall or surcharged walls need a licensed engineer. Assumes drained level backfill with no water pressure and no seismic load.
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.