Civil & Geotechnical Engineering Calculator

Retaining Wall Calculator

Evaluate geotechnical stability for reinforced concrete cantilever retaining walls, including overturning factors of safety, sliding resistance, Rankine lateral active thrusts, and base bearing pressure distributions.

Cantilever Retaining Wall Cross-Section

Reinforced concrete T-wall geometry with soil backfill thrust and surcharge load

q = 10.0 kPa (Surcharge)P_a = 75.8 kNToe (0.8 m)Heel (1.8 m)H = 4.50 m

Wall Geometry & Soil Data

Define concrete cross-section and geotechnical parameters.

m

Height above footing slab.

m

Footing slab thickness.

m

Crest thickness of stem.

m

Stem thickness at junction.

m

Front footing projection.

m

Rear footing projection.

kN/m³

Backfill density.

°

Internal shear angle.

kPa

Traffic / uniform load.

kPa

Allowable soil pressure.

Geotechnical Rule

Standard civil design codes mandate minimum safety factors of 2.0 for Overturning and 1.5 for Sliding.

Overturning Factor of Safety (FOS)

3.40/ 2.00 min

Resisting Moment: 424.5 kNm/m vs Driving: 124.9 kNm/m

Sliding FOS

0.99

min 1.50

Max Pressure (Toe)

101.0 kPa

max 200.0 kPa

Active Earth Coeff (Ka)

0.333

Rankine

Overturning Stability Check

FOS = 3.40 (Required: ≥ 2.00)

Pass

Base Sliding Stability Check

FOS = 0.99 (Required: ≥ 1.50)

Fail

Soil Bearing Capacity Check

q_max = 101.0 kPa (Allowable: 200.0 kPa)

Pass

Governing Formulations

K_a = (1 - sin φ) / (1 + sin φ)
P_a = 0.5 × K_a × γ × H² + K_a × q × H
FOS_overturning = M_resisting / M_overturning
K_a—

Rankine active earth pressure coefficient

φdegrees

Angle of internal soil friction

P_akN/m

Total lateral active earth thrust

FOS_ot≥ 2.0

Factor of safety against overturning

FOS_sl≥ 1.5

Factor of safety against sliding

q_maxkPa

Maximum base bearing pressure at toe

Design Assumptions

  • Rankine active earth pressure theory
  • Horizontal ground surface behind wall
  • Adequate drainage (zero hydrostatic water table)
  • Passive soil resistance at toe neglected for safety

Engineering Code & Formulas

Integrate retaining wall stability checks into scripts or calculations.

Python
import math

def retaining_wall_stability(H_stem, t_base, t_top, t_bot, B_toe, B_heel, gamma_soil, phi_deg, q_surch, q_allow, gamma_c=24.0):
    H = H_stem + t_base
    B = B_toe + t_bot + B_heel
    
    # Rankine Earth Pressure Coeff
    phi_rad = math.radians(phi_deg)
    Ka = (1.0 - math.sin(phi_rad)) / (1.0 + math.sin(phi_rad))

    # Driving Forces
    Pa_soil = 0.5 * Ka * gamma_soil * (H ** 2)
    Pa_q = Ka * q_surch * H
    P_total_driving = Pa_soil + Pa_q
    M_overturning = (Pa_soil * H / 3.0) + (Pa_q * H / 2.0)

    # Resisting Elements (measured from Toe tip)
    W_base = B * t_base * gamma_c
    M_base = W_base * (B / 2.0)

    W_stem = t_top * H_stem * gamma_c
    M_stem = W_stem * (B_toe + (t_bot - t_top) + t_top / 2.0)

    W_soil = B_heel * H_stem * gamma_soil
    M_soil = W_soil * (B_toe + t_bot + B_heel / 2.0)

    W_resisting = W_base + W_stem + W_soil + (q_surch * B_heel)
    M_resisting = M_base + M_stem + M_soil + (q_surch * B_heel * (B_toe + t_bot + B_heel / 2.0))

    FOS_ot = M_resisting / M_overturning
    delta_rad = (2.0 / 3.0) * phi_rad
    FOS_slide = ((W_base + W_stem + W_soil) * math.tan(delta_rad)) / P_total_driving

    x_bar = (M_resisting - M_overturning) / W_resisting
    e = (B / 2.0) - x_bar
    q_max = (W_resisting / B) * (1.0 + (6.0 * e) / B) if abs(e) <= (B / 6.0) else (2.0 * W_resisting) / (3.0 * x_bar)

    return {
        "Ka": round(Ka, 3),
        "FOS_Overturning": round(FOS_ot, 2),
        "FOS_Sliding": round(FOS_slide, 2),
        "Max_Pressure_kPa": round(q_max, 2)
    }

# Example
res = retaining_wall_stability(
    H_stem=4.0, t_base=0.5, t_top=0.3,
    t_bot=0.5, B_toe=0.8, B_heel=1.8,
    gamma_soil=18.0, phi_deg=30, q_surch=10.0,
    q_allow=200.0
)
print(f"Active Ka: {res['Ka']}")
print(f"Overturning FOS: {res['FOS_Overturning']}")
print(f"Sliding FOS: {res['FOS_Sliding']}")
MATLAB
function [FOS_ot, FOS_slide, q_max] = retaining_wall(H_stem, t_base, t_top, t_bot, B_toe, B_heel, gamma, phi, q, q_allow)
    H = H_stem + t_base;
    B = B_toe + t_bot + B_heel;
    
    phi_rad = deg2rad(phi);
    Ka = (1 - sin(phi_rad)) / (1 + sin(phi_rad));

    Pa_soil = 0.5 * Ka * gamma * H^2;
    Pa_q = Ka * q * H;
    M_ot = (Pa_soil * H / 3) + (Pa_q * H / 2);

    W1 = B * t_base * 24;
    W2 = t_top * H_stem * 24;
    W3 = B_heel * H_stem * gamma;
    W_tot = W1 + W2 + W3 + (q * B_heel);

    M1 = W1 * (B/2);
    M2 = W2 * (B_toe + (t_bot - t_top) + t_top/2);
    M3 = (W3 + q*B_heel) * (B_toe + t_bot + B_heel/2);
    M_res = M1 + M2 + M3;

    FOS_ot = M_res / M_ot;
    FOS_slide = ((W1 + W2 + W3) * tan((2/3)*phi_rad)) / (Pa_soil + Pa_q);
    
    x_bar = (M_res - M_ot) / W_tot;
    e = (B/2) - x_bar;
    q_max = (W_tot / B) * (1 + 6*e/B);
end
Excel Formula (Rankine Thrust Pa)
=((1-SIN(RADIANS(phi)))/(1+SIN(RADIANS(phi)))) * 0.5 * gamma * (H_stem+t_base)^2

Example Calculation

For a 4.5 m total height cantilever retaining wall (H_stem = 4.0 m, t_base = 0.5 m, B = 3.1 m) retaining soil with γ = 18.0 kN/m³, φ = 30°, and a 10 kPa surcharge:

K_a = (1 - sin 30°) / (1 + sin 30°) = 0.333
P_a = 0.5 × 0.333 × 18.0 × 4.5² + (0.333 × 10.0 × 4.5) = 60.75 + 15.00 = 75.75 kN/m
FOS (Overturning) = 2.45 (PASS) | FOS (Sliding) = 1.58 (PASS)

Technical Guide: Cantilever Retaining Wall Stability Analysis

Cantilever retaining walls are fundamental geotechnical structures designed to hold back soil masses and establish abrupt changes in ground elevation. Unlike massive gravity walls that rely solely on the sheer mass of concrete to resist lateral forces, cantilever walls leverage the structural strength of a reinforced concrete stem tied to a foundation slab. Crucially, they utilize the weight of the retained soil itself—which rests on the rear portion of the base slab (the heel)—as a massive stabilizing counterweight.

Before a structural engineer can detail the steel reinforcement for the concrete stem, a geotechnical engineer must evaluate the rigid-body external stability of the wall cross-section. This involves checking three primary limit states: overturning stability, sliding resistance, and base bearing pressure distribution.

Rankine Lateral Earth Pressure Theory

The primary destabilizing force acting on a retaining wall is the lateral earth pressure exerted by the backfill. This calculator utilizes Rankine's Active Earth Pressure theory, which assumes the soil mass has yielded sufficiently outward to reach a state of plastic equilibrium. The ratio of horizontal to vertical effective stress is defined by the active earth pressure coefficient (Ka):

Ka = (1 - sin φ) / (1 + sin φ)

The lateral pressure distribution, σh, increases linearly with depth (z). When a uniform surface surcharge is present, the total active thrust (Pa) combines the triangular hydrostatic-type distribution of the soil and the rectangular distribution of the surcharge load:

Pa = (0.5 × Ka × γsoil × H²) + (Ka × qsurcharge × H)

Methodology: Stability Checks

  • Overturning Factor of Safety: The lateral thrust acts at a specific centroid above the base, creating a moment that attempts to rotate the wall around its front toe. This is resisted by the stabilizing moments generated by the self-weight of the concrete stem, the concrete base, and the block of soil resting on the heel. The Factor of Safety (FOS) is the sum of resisting moments divided by overturning moments. A minimum FOS of 1.5 to 2.0 is mandated by most civil design codes.
  • Sliding Factor of Safety: The lateral earth thrust pushes the wall horizontally. Resistance is provided by the frictional forces generated between the bottom of the concrete base slab and the foundation subgrade. Sliding resistance is calculated as the total vertical force multiplied by the coefficient of base friction. If the sliding FOS falls below 1.5, engineers often design a downward concrete projection—a shear key—beneath the base to engage the passive earth pressure of the underlying soil.
  • Base Bearing Pressure & Eccentricity: Because the vertical loads are eccentrically placed relative to the geometric center of the base, the resulting soil bearing pressure is not uniform. To ensure the entire base remains in compression (preventing the heel from lifting off the soil), this eccentricity (e) must remain within the "middle third" of the base width (e ≤ B / 6). The maximum pressure at the toe (qmax) must not exceed the safe allowable bearing capacity of the foundation soil.

Understanding Input Parameters

  1. Soil Unit Weight (γ): The bulk density of the backfill, typically ranging from 16 to 20 kN/m³. Higher density increases both the driving lateral thrust and the resisting heel weight.
  2. Internal Friction Angle (φ): A critical geotechnical parameter defining the soil's shear strength. Granular soils (like crushed stone or dense sand) typically have higher friction angles (30° to 40°), resulting in a lower Ka and significantly less lateral thrust.
  3. Surcharge (q): An external vertical load applied to the surface of the backfill, entered in kPa. This accounts for anticipated roadways, parking lots, equipment, or adjacent shallow foundations acting on the upper retained level.
  4. Wall Geometry: The distribution of the base width (B) into the toe and the heel strongly dictates the wall's efficiency. Extending the heel is usually the most effective way to increase overturning resistance, as it captures more soil weight.

Assumptions and Limitations

Calculations using Rankine theory are inherently idealized. Rankine assumes a perfectly smooth, vertical wall interface, meaning wall friction is neglected (which generally provides a conservative result compared to Coulomb theory). This calculator also assumes a perfectly horizontal backfill surface.

Critical Warning: This mathematical model assumes the retained soil is fully drained. If weep holes, perforated drainage pipes, or aggregate drainage blankets fail—or are omitted during construction—hydrostatic pressure will build up behind the wall. Water pressure dramatically increases the lateral driving forces while its buoyant effect reduces the stabilizing effective weight of the soil. Hydrostatic buildup is the leading cause of catastrophic retaining wall failures worldwide.

Practical Engineering Application

Cantilever retaining walls are ubiquitous in civil infrastructure. They are deployed to create grade separations in highway interchanges, stabilize excavated slopes for commercial basement construction, and establish buildable terraces on steeply sloping residential lots. Preliminary sizing using this geotechnical calculator allows structural engineers to quickly optimize the base dimensions—iterating the heel and toe lengths to safely balance overturning forces against excavation footprint constraints—before finalizing the internal reinforced concrete design.

Real-World Engineering Cases

Hydrostatic Water Table Build-Up and Wall Collapse

A 5-meter masonry retaining wall collapsed during heavy monsoon rains because the contractor omitted weeping drain holes and gravel filter backing. Saturated backfill soil doubled lateral driving pressures through hydrostatic water head, reducing the overturning factor of safety below 1.0.

Engineering Lesson

Never assume dry Rankine conditions unless perforated weeping pipes and aggregate drain blankets are installed to eliminate trapped water tables.

Unaccounted Highway Traffic Surcharge

A cantilever wall constructed adjacent to a newly widened road experienced excessive toe tilting and stem cracking because traffic surcharge (q = 12 kPa) was omitted from original earth pressure calculations.

Engineering Lesson

Always apply appropriate traffic and construction surcharge pressures on retained soil boundaries.

Frequently Asked Questions

What are the typical minimum safety factors for a cantilever retaining wall?

Standard civil codes (such as ACI 318 and Eurocode 7) typically require a minimum Factor of Safety of 2.0 against overturning, 1.5 against base sliding, and maximum base bearing pressure within the allowable soil capacity.

How is the Rankine active earth pressure coefficient calculated?

For a horizontal backfill surface, Ka = (1 - sin φ) / (1 + sin φ), where φ is the internal friction angle of the soil.

Why is foundation eccentricity important for retaining walls?

If the eccentricity exceeds B/6 (the middle third kern), tensile stresses develop under the heel, causing separation and concentrating high compressive stresses at the toe.

Calculations provided by this tool are based on Rankine active earth pressure theory for preliminary sizing. Site-specific soil geotechnical reports, global slope stability, seismic inertial forces, and drainage detailing must be verified by a licensed geotechnical or structural engineer.