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 utilize the weight of the soil mass resting on top of the rear footing (heel) to counterbalance the lateral earth thrust exerted by the backfill. Geotechnical verification demands rigorous checks against three primary modes of failure: overturning about the toe, horizontal sliding along the base slab, and foundation bearing capacity failure.

Rankine Lateral Earth Pressure Theory

Assuming a cohesionless, non-sloping backfill and negligible wall friction, the lateral pressure distribution increases linearly with depth:

K_a = (1 - sin φ) / (1 + sin φ)
σ_h(z) = K_a × (γ_soil × z + q_surcharge)
Resultant Thrust P_a = 0.5 × K_a × γ_soil × H² + K_a × q_surcharge × H

Base Sliding and Shear Keys

Sliding resistance relies entirely on base friction: R_slide = ΣV × tan(2/3 φ). If the sliding safety factor falls below 1.50, a downward shear key must be cast beneath the stem-base junction to mobilize passive soil resistance in front of the footing.

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.