What is a ramp?
A ramp here is the solid wedge you would build as a ramp: a right prism whose ends are right triangles with the run a (horizontal leg), the rise b (vertical leg) and the slope c (hypotenuse), and whose width w runs at right angles to all three. Its textbook name is a right triangular prism (a prism on a right triangle). Faces: two right triangles and three rectangles (the floor a × w, the back b × w and the slope c × w); 5 faces, 9 edges, 6 vertices. For a prism on any triangle see the triangular prism calculator.
This calculator finds the volume, the surface area, the surface-to-volume ratio, the three sides of the end triangle, the width, the angle α between rise and slope and the slope angle β between run and slope.
How to use it
Choose which two sides of the end triangle you know (run and rise, run and slope, or rise and slope), enter them and the width w. The values you enter are shown back unchanged and every other measure is solved from them. The length unit is a label only: lengths are shown in that unit, areas in its square and volumes in its cube. The page shows results rounded to at most 6 decimal places and writes very large and very small values out in full.
Derivation of the formulas
The end triangle is a right triangle, so by Pythagoras
$$c = \sqrt{a^2 + b^2}, \qquad b = \sqrt{(c - a)(c + a)}, \qquad a = \sqrt{(c - b)(c + b)}$$(the factored forms avoid losing digits when the slope is only a little longer than a leg). A prism has the volume of its cross-section times its length, and its surface is the two ends plus the perimeter times the length:
$$V = \frac{abw}{2}, \qquad A = ab + (a + b + c)w$$The angles of the end triangle are
$$\beta = \arctan\frac{b}{a}, \qquad \alpha = \arctan\frac{a}{b} = 90^\circ - \beta$$The slope c must be longer than either leg. Euler's formula holds: 6 vertices minus 9 edges plus 5 faces is 2.
Worked example
The default ramp has run a = 4, rise b = 3 and width w = 2, so the slope is c = 5. Its volume is 12 cubic units, its surface 36 square units, and the slope angle β is about 36.869898°.
FAQ
How do I get the slope as a percentage?
The grade in percent is 100 times b/a, the rise divided by the run. The calculator shows the slope angle β in degrees.
Why is the slope refused when it equals the run?
A right triangle's hypotenuse is always longer than each leg; equal lengths would leave no rise at all.
Does the unit change the numbers?
No. Geometry does not depend on the unit, so the unit only labels the results.
How accurate are the results?
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
Accuracy and input range
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
Enter each length from 0.000001 to 1,000,000,000. Anything outside is refused with a message naming the range.
References
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., CRC Press, 2018, ch. 4 (solids and polyhedra)