Retaining Wall Calculator

Enter your wall's length and height along with your block dimensions to estimate the rows and total blocks needed.

Main block courses
—
Pieces per row
—
Quantity before allowance
—
Quantity to buy
—
Cap pieces with allowance
—
Base volume with allowance ()
—
Block cost
—
Cap cost
—
Total courses including cap
—
Base volume before allowance ()
—
Total block and cap cost
—

Material quantity estimate. When included, cap height is subtracted before rounding block courses; blank cap height uses the block module. Base allowance is entered separately.

Hₘ = H ∨ max(0,H−hcap); nᵣ = ⌈Hₘ/h⌉; nₗ = ⌈L/l⌉; n = ⌈nᵣ·nₗ(1+w/100)⌉; V = L·b·d·(1+w_b/100). Whole packages round up after allowance. Optional prices use the displayed basis. Blank optional fields leave the associated result undetermined. Decimal input uses a dot, up to 12 digits before and after it, and an optional exponent from −24 to 24. Input magnitudes are limited to 10¹²; each formula has additional domain limits. Displayed approximate results use up to 12 significant digits.

Method, assumptions and limits

Enter your wall's length and height along with your block dimensions to estimate the rows and total blocks needed.

Hₘ = H ∨ max(0,H−hcap); nᵣ = ⌈Hₘ/h⌉; nₗ = ⌈L/l⌉; n = ⌈nᵣ·nₗ(1+w/100)⌉; V = L·b·d·(1+w_b/100). Whole packages round up after allowance. Optional prices use the displayed basis. Blank optional fields leave the associated result undetermined.

Decimal input uses a dot, up to 12 digits before and after it, and an optional exponent from −24 to 24. Input magnitudes are limited to 10¹²; each formula has additional domain limits. Displayed approximate results use up to 12 significant digits.

Frequently asked questions

How should I interpret this estimate?

Hₘ = H ∨ max(0,H−hcap); nᵣ = ⌈Hₘ/h⌉; nₗ = ⌈L/l⌉; n = ⌈nᵣ·nₗ(1+w/100)⌉; V = L·b·d·(1+w_b/100). Whole packages round up after allowance. Optional prices use the displayed basis. Blank optional fields leave the associated result undetermined. Decimal input uses a dot, up to 12 digits before and after it, and an optional exponent from −24 to 24. Input magnitudes are limited to 10¹²; each formula has additional domain limits. Displayed approximate results use up to 12 significant digits.

How we verified this calculator

The calculator is checked against 6 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Top cap row = Yes
Extra allowance (%) = 10
Price per piece (optional) = 2
Price per cap (optional) = 3
Quantity to buy: 99
Cap pieces with allowance: 17
Block cost: 198
Cap cost: 51
2
Length = 0
Main block courses: 0
Quantity to buy: 0
3
Cap length = -1
Quantity to buy: 90
4
Units = US customary
Top cap row = Yes
Height basis = Total height including cap
Length = 33
Entered height = 3.3
Block module width = 18
Block module height = 8
Cap length = 18
Cap height (blank = block height) =
Extra allowance (%) = 5
Base width (optional) = 2
Base thickness = 6
Base allowance (%) = 20
Price per piece (optional) = 4
Price per cap (optional) = 4
Main block courses: 4
Pieces per row: 22
Quantity before allowance: 88
Quantity to buy: 93
5
Units = Metric (SI)
Top cap row = Yes
Height basis = Total height including cap
Length = 1
Entered height = 1
Block module width = 500
Block module height = 200
Cap height (blank = block height) = 50
Cap length = 500
Extra allowance (%) = 0
Price per piece (optional) = 2
Price per cap (optional) = 3
Main block courses: 5
Quantity to buy: 10
Cap pieces with allowance: 2
Total courses including cap: 6
6
Units = Metric (SI)
Top cap row = Yes
Height basis = Total height including cap
Length = 1
Entered height = 0.1
Block module width = 500
Block module height = 200
Cap height (blank = block height) = 150
Cap length = 500
Extra allowance (%) = 0
Price per piece (optional) = 2
Price per cap (optional) = 3
Main block courses: 0
Quantity to buy: 0
Cap pieces with allowance: 2
Total courses including cap: 1

How we test our calculators →

Also try:

Back to category →