What is a rectangular-base wedge?
A wedge in this calculator is a solid with a flat rectangular base of length a and width b. At a height h above the base sits a horizontal top edge (the ridge) of length c, running parallel to the base side of length a and centered over the rectangle. Sloping faces connect the base to the ridge. When c equals a the shape becomes a triangular prism; when c shrinks to 0 it becomes a pyramid whose apex is a line.
How to use it
Enter four lengths in the same unit: the lower base a, the base width b, the upper edge c, and the height h. All values must be non-negative. The calculator returns the volume in cubic units and both the lateral and total surface area in square units. Because every input shares one unit, no conversion is performed; if you measure in cm the volume is in cm³ and areas in cm².
The formulas explained
The volume is $$V = \frac{b \cdot h}{6}\left(2a + c\right).$$ The lateral area $$A_{L} = \frac{a + c}{2}\sqrt{4h^{2} + b^{2}} + b\,\sqrt{h^{2} + (a - c)^{2}}:$$ the first term covers the two sloping faces parallel to the a-direction, the second covers the two end faces. Total surface area $$S = A_{L} + a \cdot b$$ adds the rectangular base. Note \((a - c)\) is squared, so it does not matter whether the ridge is longer or shorter than the base.
Worked example
For \(a = 4\), \(b = 3\), \(c = 3\), \(h = 5\): $$V = \frac{3 \cdot 5}{6}(2 \cdot 4+3) = 2.5 \cdot 11 = \mathbf{27.5}.$$ $$A_{L} = 3.5 \cdot \sqrt{109} + 3 \cdot \sqrt{26} \approx 36.541 + 15.297 = \mathbf{51.838}.$$ $$S = 51.838 + 12 = \mathbf{63.838}.$$
How Shape Changes with the Top Edge Length c
Take a wedge with a rectangular base of lower base a = 4, width b = 3 and height h = 5 (any consistent length unit). The upper edge c runs parallel to a, is centered over the base width, and is the only value that changes below. The volume is \(V = \frac{b\,h\,(2a + c)}{6}\). The sloped trapezoid faces have slant height \(s = \sqrt{h^2 + (b/2)^2} = \sqrt{27.25} \approx 5.2202\). The two end triangles have height \(t = \sqrt{h^2 + ((a-c)/2)^2}\). The lateral area is \(L = (a+c)\,s + b\,t\), and the total surface area is \(L + a\,b\).
| c | Volume V | Lateral area | Total surface area | Shape |
|---|---|---|---|---|
| 0 | 20 | ≈ 37.036 | ≈ 49.036 | Sharp-edged wedge that comes to a point at the top (a pyramid, since the ridge shrinks to 0). Volume is the pyramid-like minimum \(\frac{3\cdot5\cdot8}{6}=20\). |
| 2 | 25 | ≈ 46.618 | ≈ 58.618 | Truncated wedge with a short ridge, shorter than the base length. |
| 4 | 30 | ≈ 56.761 | ≈ 68.761 | c = a: a triangular prism (a roof shape). Volume is \(\frac{b\,h\,a}{2} = \frac{3\cdot5\cdot4}{2}=30\), the triangle area times the length. |
| 6 | 35 | ≈ 67.499 | ≈ 79.499 | c > a: the ridge is longer than the base, so the end faces lean outward (overhang). |
Worked check for c = 0: \(V = \frac{3\cdot5\,(2\cdot4+0)}{6} = \frac{15\cdot8}{6} = 20\). Lateral area: \((4+0)(5.2202) + 3\sqrt{25+4} \approx 20.881 + 16.155 = 37.036\); adding the base \(4\cdot3 = 12\) gives about 49.036.
For each 2-unit increase in c, the volume rises by \(\frac{b\,h}{6}\cdot 2 = 5\), so volume is linear in c. The surface area is not linear, because the end triangles depend on \(|a-c|\).
Glossary of Wedge Terms
- Lower base a
- The length of the rectangular base, measured parallel to the upper edge.
- Width b
- The other side of the rectangular base, perpendicular to a. It is also the base width of each end triangle.
- Upper edge (ridge) c
- The top edge of the wedge, parallel to a and centered over the base. If c = 0 the ridge shrinks to a point; if c = a the solid is a triangular prism.
- Height h
- The perpendicular distance from the base plane to the plane containing the ridge.
- Base
- The flat rectangular face of area \(a\cdot b\) on which the wedge rests.
- Lateral area
- The combined area of all faces except the base: two trapezoids and two triangles, \((a+c)\sqrt{h^2+(b/2)^2} + b\sqrt{h^2+((a-c)/2)^2}\).
- Total surface area
- The lateral area plus the base area \(a\cdot b\).
- Units convention
- Lengths (a, b, c, h) are in one unit such as cm or m. Areas (lateral and total surface) are in that unit squared (cm², m²). Volume is in that unit cubed (cm³, m³). Use the same unit for every input.
FAQ
What if the top edge is longer than the base? That is allowed. The end-face term uses \((a - c)^{2}\), so a longer ridge gives a valid positive area.
What happens when h = 0? The solid collapses: \(V = 0\), the surface area reduces to \(a \cdot b\), and the lateral term simplifies to \(b \cdot |a - c|\).
Do I need to pick a unit? No. All inputs use one shared linear unit, so outputs are simply that unit cubed (volume) and squared (areas).