A gravity retaining wall holds soil back by its own weight, so a preliminary check asks whether the wall is heavy and wide enough not to tip, slide or crush the soil beneath it. This retaining wall design calculator runs a simplified check for a rectangular gravity wall, using Rankine earth pressure to test overturning, sliding, base eccentricity and bearing pressure. It is for preliminary sizing only, and a licensed engineer should design a real wall.
Retaining Wall Design Calculator
Preliminary stability check for a gravity retaining wall: Rankine earth pressure, overturning, sliding, base eccentricity and bearing pressure.
The starting wall is 4 ft high with a 2.5 ft base, a 130 pcf wall and 120 pcf soil at 30°. It has an overturning factor of 3.81 and a sliding factor of 2.03, and it passes all four checks.
How is a gravity retaining wall checked?
The calculator finds the sideways force from the soil, then compares the moments and forces that resist it with those that cause failure.
Ka = tan²(45° − φ ÷ 2)
P = ½ × Ka × γ × H² + Ka × q × H
Mo = Ka × γ × H³ ÷ 6 + Ka × q × H² ÷ 2
W = Wall weight × B × H
Mr = W × B ÷ 2
Overturning FS = Mr ÷ Mo
Sliding FS = μ × W ÷ P
e = B ÷ 2 − (Mr − Mo) ÷ W
Here H is the retained height, B the base width, φ the soil friction angle, γ the soil unit weight, q the surcharge and μ the base friction coefficient. Forces are per foot of wall length. The wall passes when both factors are at least 1.5, when e is no more than B ÷ 6 and when the toe pressure is no more than the allowable bearing pressure.
Worked example: the starting values
Ka = 1 ÷ 3 = 0.333
P = ½ × 0.333 × 120 × 16 = 320 lb
Mo = 0.333 × 120 × 64 ÷ 6 = 426.7 ft-lb
W = 130 × 2.5 × 4 = 1,300 lb
Mr = 1,300 × 1.25 = 1,625 ft-lb
Overturning FS = 1,625 ÷ 426.7 = 3.81
Sliding FS = 0.5 × 1,300 ÷ 320 = 2.03
e = 0.33 ft, and B ÷ 6 = 0.42 ft, so it is within the middle third
Toe pressure = 930 psf, which is under 1,500 psf
Worked examples for different walls
Worked examples
A narrower base
Reduce the base to 2 ft. The weight falls to 1,040 lb, the overturning factor is 2.44 and the sliding factor is 1.625. The eccentricity is 0.41 ft, which is outside B ÷ 6 = 0.33 ft, so the resultant leaves the middle third. The toe pressure rises to 1,176 psf, still under 1,500.
A taller wall
Raise the wall to 6 ft with a 3 ft base. Both factors are 2.44 and 1.625, but e = 0.62 ft against B ÷ 6 = 0.5 ft and the toe pressure is 1,763 psf. That is over 1,500, so bearing fails even though overturning and sliding pass.
A surcharge on top
Add 100 psf to the starting wall. The sideways force rises to 453 lb and the overturning factor falls to 2.34. The sliding factor drops to 1.43, which is under 1.5, so sliding fails. A 3 ft base restores it, giving a sliding factor of 1.72 and an overturning factor of about 3.4.
What the calculator leaves out
It uses a rectangular gravity wall with a vertical back and level backfill, and it ignores water pressure and passive resistance. It does not model soil on a heel, a stem and slab, seismic loads or slope stability. Its own note says walls over about 4 ft or carrying loads need design by a licensed engineer. Use it to see how base width, weight and soil change the factors, not to approve a wall.
Frequently asked questions
How do I check a retaining wall for overturning?
Divide the resisting moment by the overturning moment about the toe. The starting wall gives 1,625 ÷ 426.7 = 3.81.
What safety factor does a retaining wall need?
The calculator uses 1.5 for overturning and sliding. CED gives a desirable 1.5 for sliding and 2 to 3 for overturning.
What is the Rankine active pressure coefficient?
Ka = tan²(45° − φ ÷ 2), the same as (1 − sin φ) ÷ (1 + sin φ). At 30° it is 0.333 and at 32° it is 0.307.
What does the middle third check mean?
The load resultant should fall within B ÷ 6 of the base centre, so the whole base stays in contact with the soil.
Can I use this for a tall wall?
No. Its note says walls over about 4 ft, or walls supporting loads, need a licensed engineer.
Does the calculator include water or a heel?
No. It ignores water pressure and passive resistance and models a plain rectangular wall.




