🧱 Retaining Wall Stability
Interactive retaining wall stability simulator. Adjust height, geometry, soil friction angle and surcharge; check factors of safety against overturning, sliding and bearing using Rankine earth pressure.
About the Retaining Wall Stability Simulator
This simulation models a gravity (cantilever) retaining wall holding back a body of granular soil. It uses Rankine active earth-pressure theory: the lateral pressure coefficient is Ka = tan²(45° − φ/2), giving a triangular soil thrust Pa = ½·Ka·γ·H² that acts at H/3 above the base. The tool then checks three classic geotechnical limit states against this thrust.
The sliders set wall height, stem and base-slab thickness, base width, toe length, soil friction angle φ, unit weight γ, surcharge q and base friction μ, with a water-table toggle. As you drag them the factors of safety against overturning, sliding and bearing update live. These checks underpin every road embankment, basement wall and bridge abutment in civil and geotechnical engineering.
Frequently Asked Questions
What does this simulator actually calculate?
It computes the lateral earth thrust on a retaining wall and the wall's own resisting weight, then reports three factors of safety: against overturning about the toe, against horizontal sliding on the base, and the eccentricity of the resultant compared with the middle-third limit. A pass or fail badge appears for each.
What is the active pressure coefficient Ka?
Ka is the ratio of horizontal to vertical effective stress when soil is allowed to expand slightly behind the wall. The simulator uses the Rankine formula Ka = tan squared of (45 degrees minus phi over 2). For a friction angle of 30 degrees, Ka is about 0.33, so the soil pushes sideways with roughly a third of its vertical weight pressure.
How is the overturning safety factor found?
Moments are taken about the front edge of the base, the toe. The resisting moment comes from the weights of the stem, base slab and soil sitting on the heel, each multiplied by its horizontal distance from the toe. The overturning moment comes from the earth thrust. Their ratio is the factor of safety, and the tool flags it as passing when it reaches 2.0 or more.
What does the sliding check mean?
The wall can slide forward if the horizontal thrust exceeds the friction available under the base. Friction equals the base friction coefficient mu multiplied by the total vertical weight W. Sliding safety is mu times W divided by the horizontal thrust, and the simulator requires this to be at least 1.5 to pass.
Why does eccentricity and the middle third matter?
The resultant vertical force should land within the middle third of the base, meaning the eccentricity e stays at or below B/6. If it strays outside, the heel of the base tries to lift in tension, which soil cannot provide, so contact reduces to a shorter strip and bearing pressure spikes. The tool labels this condition as lift and flags the eccentricity check as failed.
How is the maximum base pressure computed?
When the resultant stays in the middle third, pressure varies linearly and the peak is (W/B) times (1 + 6e/B). If the eccentricity exceeds B/6, the model switches to a reduced bearing width a = 3(B/2 minus e) and a triangular distribution with peak 2W/a. This is the value compared against the allowable bearing capacity of the foundation soil.
What does the water-table toggle do?
Enabling it adds a hydrostatic water pressure behind the wall using the unit weight of water, about 9.81 kN per cubic metre, building up as a separate triangle to half times gamma-water times H squared. Because water has no shear strength, it pushes with full pressure rather than the reduced Ka value, which sharply raises the thrust and is a common cause of real wall failures.
What role does the surcharge q play?
The surcharge represents a uniform load on the soil surface behind the wall, such as traffic, stockpiles or a building. It adds a rectangular pressure of Ka times q acting over the full retained height, giving an extra thrust of Ka times q times H whose resultant sits at mid-height rather than at the third point.
Is the model physically accurate?
It captures the standard textbook approach used in introductory geotechnical design and gives realistic trends and factors of safety. It simplifies by assuming a vertical smooth wall back, horizontal backfill, dry conditions unless water is enabled and no passive resistance at the toe, so it is an excellent teaching tool rather than a substitute for a full design to Eurocode 7 or BS 8002.
Why do tall walls with thin bases fail so easily?
The earth thrust grows with the square of the wall height, while the resisting weight grows roughly in proportion to base width and slab size. Doubling the height nearly quadruples the overturning moment, so a tall wall needs a much wider, heavier base. The Failing and Tall-wall presets let you see how quickly the safety margins collapse.
How can I make a failing wall stable again?
Widen the base, lengthen the heel so more soil weight bears down, thicken the base slab, or increase the toe length to push the resultant back toward the centre. Improving drainage to keep the water table down, reducing surcharge, or using better-draining backfill with a higher friction angle also lowers the thrust and lifts all three factors of safety.
Design a retaining wall against Rankine active earth pressure. Check overturning (FS≥2), sliding (FS≥1.5) and base eccentricity — watch the wall tip or slide when a factor of safety fails.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install