StatGardenREF. DESK
Calculators/Geometry/Triangular prism
Geometry

Triangular prism calculator

Volume and surface area of a triangular prism from its base sides and length.

What this calculator does

A triangular prism is a solid with a triangular cross-section that stays the same all the way along its length, like a tent, a wedge doorstop or a length of angled roofing. The volume of a triangular prism is the area of that triangular base multiplied by the length, the same principle as any prism: base area times how far it extends.

The base area itself is worked out from the three side lengths using Heron's formula, rather than needing a separate base-and-height measurement, so this calculator only needs the three sides of the triangle and the length of the prism to return both the volume and the total surface area.

The formula

FormulaBase area = √(s(s−a)(s−b)(s−c)), s=(a+b+c)/2; Volume = base area × length; Surface area = 2 × base area + perimeter × length

First find the semiperimeter s of the triangular base: (a+b+c)/2. Heron's formula then gives the base area as √(s(s−a)(s−b)(s−c)). Volume is that area multiplied by the prism length. Total surface area adds the two triangular ends (2 × base area) to the three rectangular side faces, whose combined area is the base's perimeter multiplied by the length.

TermMeaning
Base areaThe area of the triangular cross-section, constant along the whole length of the prism.
Prism lengthThe distance the triangular cross-section is extended to form the solid.
SemiperimeterHalf the perimeter of the triangular base, used inside Heron's formula.

The inputs explained

FieldWhat to enter
Base side aOne side of the triangular base.
Base side bA second side of the triangular base.
Base side cThe third side of the triangular base.
Prism lengthThe length the triangular cross-section is extended along to form the prism.

When to use it

Estimating triangular prism volume for a wedge or ramp

A doorstop, roof wedge or drainage channel with a constant triangular cross-section is exactly this shape, and its capacity or material volume follows directly from the base sides and the length.

Working a textbook triangular prism volume problem

Given the three sides of the base and the prism length, this replaces the two-step process of finding the base area by hand before multiplying by length.

Checking how much material a triangular beam or strut needs

The total surface area figure covers how much material would be needed to wrap or coat every face of the solid, not just its interior volume.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How does volume change as a triangular prism gets longer?

A fixed triangular base, extended to a range of lengths.

Base sides fixed at 3, 4 and 6
Prism lengthVolumeTotal surface area
526.66375.665
1053.327140.665
1579.990205.665
20106.654270.665
30159.980400.665
50266.634660.665
Volume grows in direct proportion to length, since the same base area is simply being carried further; surface area grows more slowly because the two triangular end caps stay a fixed size.

How does the base shape affect volume at a fixed length?

The third side of the triangular base varying between the two limits a valid triangle allows.

Sides a=3, b=4 fixed, side c and length 10 held constant
Side cTriangular cross-section areaVolume
22.90529.047
34.47244.721
45.56255.621
56.00060.000
65.33353.327
6.92.01220.123
Base area peaks when the triangle is closest to a right angle between sides a and b, and shrinks toward zero as side c approaches the point where the three lengths can no longer close into a triangle.

Questions

What is the formula for the volume of a triangular prism?

Volume equals the area of the triangular base multiplied by the length of the prism. The base area itself comes from Heron's formula once the three side lengths are known, so no separate height measurement is required.

How is a triangular prism's volume different from a rectangular prism's?

A rectangular prism's cross-section is a rectangle, so its volume is length × width × height. A triangular prism swaps that rectangular cross-section for a triangular one, so the base area comes from the triangle's three sides instead of two rectangle dimensions.

Do I need the height of the triangle as well as its sides?

No. Heron's formula finds the triangular base's area directly from its three side lengths, without needing a separate height measurement, so entering the three sides is enough.

Why does the calculator reject some combinations of sides?

The three base sides have to satisfy the triangle inequality, each pair longer than the third, or they cannot form a real triangle at all, which means there is no base area or volume to compute.

For the area of the triangular cross-section on its own, see the triangle from three sides calculator. For a rectangular-based solid instead of a triangular one, see the rectangular prism and cube calculator.