AI Tools Free

Regular Prism Volume Calculator

The Regular Prism Volume Calculator is a three-dimensional solid geometry solver that operates as a hexagonal prism volume calculator, volume of a regular prism calculator, and regular pentagonal prism volume calculator using V = n·s²·h / (4·tan(π/n)). Enter #sides (3 to 10,000), #side, and #height to compute 12-significant-digit cubic volume locally in your browser without server uploads.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Calculate.

Allowed range: 3 to 10,000. Whole numbers only.

Allowed range: 1e-09 to 1,000,000,000.

Allowed range: 1e-09 to 1,000,000,000.

Your result
Enter your details

Result will appear here

How to Calculate the Volume of a Hexagonal Prism and Regular n-Gon Prism

Knowing how to calculate the volume of a hexagonal prism or any right regular n-gon prism starts with the universal prism equation V = B × h, where B is the area of the regular n-sided polygon base and h is the perpendicular altitude between the two parallel polygon caps. Dividing a regular n-gon into n congruent isosceles triangles from its center gives each triangle a base s and an apothem height a = s / (2 × tan(π / n)) (which you can inspect separately in our Polygon Apothem Calculator and Regular Polygon Area Calculator). Summing all n triangles and multiplying by prism height h produces the exact formula used to calculate volume of hexagonal prism and general regular prism solids: V = (n × s² × h) / (4 × tan(π / n)).

V = (n × s² × h) / (4 × tan(π / n))

For a regular hexagon (n = 6), tan(π / 6) = 1 / √3, so the general equation simplifies to the exact hexagonal closed form V = (3√3 / 2)s²h ≈ 2.59807621135 × s²h. When you click Calculate result, batch12-tools.js reads #sides (n), #side (s), and #height (h) and executes show(n("sides") * n("side") ** 2 * n("height") / (4 * Math.tan(Math.PI / n("sides")))).

Diagram of a regular hexagonal prism with n = 6, s = 2, and h = 3 showing base triangles and apothem
Diagram of a regular hexagonal prism (n = 6, s = 2, h = 3) showing the 6 equilateral base triangles, apothem a = √3, base area B = 6√3, and total volume V = 18√3 ≈ 31.1769145362.

Hexagonal Prism Volume Calculator & Regular n-Gon Reference Table

Compare 10 verified regular polygon prism geometries to see how this volume of hexagonal prism calculator and n-gon solver evaluates base area B = n·s² / (4·tan(π/n)) and 12-digit cubic volume (#result-main):

Base Sides (#sides)Base Side (#side)Prism Height (#height)Base Area (B)Exact Volume (#result-main)Polygon Type & Practical Engineering Benchmark
6 (preloaded)2 (preloaded)3 (preloaded)10.3923048454 (6√3)31.1769145362 (18√3)Regular hexagonal prism preloaded workspace sample
34 cm10 cm6.92820323028 cm²69.2820323028Equilateral triangular optical prism (69.28 mL)
45 in8 in25 in²200Square prism column (B = s² = 25 in²)
53 in6 in15.4842966053 in²92.9057796318Regular pentagonal prism (1.720477 × s² × h)
60.5773502692 in12 in0.86602540378 in²10.39230484541.0 in across-flats (F = 1 in) hex steel bar (12 in long)
62.65 mm11.5 mm18.245015403 mm²209.817677135Apis mellifera honeycomb cell (0.210 mL raw honey)
86 in96 in173.823376491 in²16687.04414318 ft octagonal timber gazebo post (9.657 ft³ wood)
81.5 ft4 ft10.8639610307 ft²43.4558441227Octagonal concrete light-pole base (1.609 yd³ concrete)
102 cm5 cm30.7768353718 cm²153.884176859Regular decagonal prism container (153.88 mL)
121 m2.5 m11.1961524227 m²27.9903810568Regular dodecagonal architectural kiosk (27.99 m³)

How to Calculate Volume of Hexagonal Prism and Regular Prisms Step by Step

Follow these three steps to run the solver in the workspace above.

Enter Regular Base Side Count (#sides)

Type the whole number of polygon sides n (3 for triangular, 4 for square, 5 for pentagonal, 6 for hexagonal, 8 for octagonal, up to 10,000) into Regular base side count (#sides, preloaded with 6).

Input and settings
Input fields for Regular base side count, Base side length, and Perpendicular prism height in the Regular Prism Volume Calculator
Regular base side count (#sides = 6), Base side length (#side = 2), and Perpendicular prism height (#height = 3) inputs in the Regular Prism Volume Calculator.

Enter Base Side Length (#side)

Measure one outer edge s of the regular polygon base and enter it into Base side length (#side, preloaded with 2, accepting 1e-9 to 1,000,000,000).

Tool result
Hexagonal prism cross-section comparing outer side length s and across-flats width F
Measuring outer edge length s versus across-flats wrench width F = s√3 on a regular hexagonal prism cross-section.

Enter Perpendicular Prism Height (#height) and Calculate

Input the vertical length or altitude h measured at 90° to the polygon base into Perpendicular prism height (#height, preloaded with 3), then click Calculate result.

Review the details
Result panel showing 31.1769145362 cubic units for n = 6, s = 2, and h = 3
Result panel displaying 31.1769145362 cubic units for n = 6, s = 2, and h = 3 with Copy result and Load sample buttons.

Worked Examples: Volume of a Regular Prism Calculator

These three worked examples show how the volume of a regular prism calculator solves the preloaded hexagonal prism, machined hex bar stock, and an octagonal concrete pier.

Preloaded Hexagonal Prism (n = 6, s = 2, h = 3)

With Regular base side count = 6, Base side length = 2, and Perpendicular prism height = 3, the hexagonal base area is (3√3 / 2)(2²) = 6√3 ≈ 10.3923048454. Multiplying by height 3 yields 18√3 = 31.1769145362 cubic units.

Regular hexagonal prism with n = 6, s = 2, and h = 3
Regular hexagonal prism with n = 6, s = 2, and h = 3 producing exact volume 18√3 = 31.1769145362.

1-Inch Across-Flats Hexagonal Steel Bar Stock (n = 6, F = 1 in, h = 12 in)

Cold-finished hexagonal steel bar is specified by its across-flats wrench width F rather than edge length s. Because F = s√3 in a regular hexagon, a 1.0 in hex bar has side length s = 1 / √3 ≈ 0.5773502692 in. Entering 6, 0.5773502692, and 12 outputs 10.3923048454 in³ (2.941 lb of carbon steel at 0.283 lb/in³).

Hexagonal steel bar stock dimensions and cubic volume
Hexagonal steel bar stock with 1.0 in across-flats width (s = 0.57735 in) and 12 in length yielding 10.3923 in³ of metal volume.

Octagonal Concrete Light-Pole Pier (n = 8, s = 1.5 ft, h = 4 ft)

A parking-lot light-pole foundation is poured inside an octagonal form (n = 8) where each of the eight flat sides measures 1.5 ft wide and 4 ft tall. Entering 8, 1.5, and 4 returns 43.4558441227 ft³. Dividing by 27 ft³/yd³ (or converting in our Volume Converter) gives 1.6095 cubic yards of concrete.

Octagonal concrete foundation pier dimensions and cubic volume
Octagonal concrete foundation pier with n = 8, side s = 1.5 ft, and height h = 4 ft requiring 43.46 ft³ (1.61 yd³) of concrete.

Regular Prism Volume Multipliers (n = 3 to 8), Apothem Conversion & Cylinder Limit

Use these three mathematical relationships to cross-check any regular prism result:

Closed-Form Radical Area Multipliers (B / s²): For common polygons, n / (4 × tan(π / n)) simplifies to exact algebraic radicals: equilateral triangle (n = 3): √3 / 4 ≈ 0.4330127; square (n = 4): 1 (matching our Cube Volume Calculator and Rectangular Prism Volume Calculator); regular pentagon (n = 5): 1.7204774; regular hexagon (n = 6): (3√3) / 2 ≈ 2.5980762; and regular octagon (n = 8): 2(1 + √2) ≈ 4.8284271.

Apothem (a) Conversion and Circular Cylinder Convergence: If your drawing gives the inradius/apothem a (center to midpoint of a flat side) instead of side length s, compute s = 2 × a × tan(π / n) before entering #side. As #sides increases toward 10,000 while perimeter P = n × s is held constant at 2πr, the regular prism converges to πr²h, matching our Cylinder Volume Calculator.

Diagram comparing unit-side regular prisms for n = 3, 4, 5, 6, and 8
Comparison of unit-side regular prisms for n = 3 (B = 0.433s²), n = 4 (B = 1.000s²), n = 5 (B = 1.720s²), n = 6 (B = 2.598s²), and n = 8 (B = 4.828s²).

Common Regular Prism Volume Mistakes & Related 3D Tools

Avoid these three frequent calculation mistakes:

Radian vs. Degree Mode & Across-Flats Width Confusion: JavaScript's Math.tan(Math.PI / n) evaluates the angle in radians (π / n); on a pocket calculator in Degree mode, use tan(180° / n). Also remember that on a regular hexagon, the flat-to-flat wrench width is F = s√3; entering F directly into #side without dividing by √3 inflates volume by 3×. Finally, keep #sides an integer between 3 and 10,000.

To chain related 2D and 3D geometry workflows, use our Regular Polygon Area Calculator, Polygon Apothem Calculator, Rectangular Prism Volume Calculator, Cube Volume Calculator, Cylinder Volume Calculator, Pyramid Frustum Volume Calculator, or Volume Converter.

Hexagonal cross-section showing side length s, apothem a, across-flats width F, and diagonal D
Comparison of hexagonal outer edge s, apothem a = (√3/2)s, across-flats width F = √3s, and corner-to-corner diagonal D = 2s.

Frequently Asked Questions About the Regular Prism Volume Calculator

Answers about using Regular Prism Volume Calculator and understanding its results.

How do you calculate the volume of a hexagonal prism?

For a regular hexagonal prism (n = 6) with base edge length s and perpendicular height h, multiply (3√3) / 2 ≈ 2.59807621135 by s² and h: V = (3√3 / 2)s²h. In this calculator, keep Regular base side count = 6 and enter s and h.

What is the general formula for the volume of a regular n-sided prism?

A right regular prism with n base sides of length s and perpendicular height h has volume V = (n × s² × h) / (4 × tan(π / n)) (using radians, or 4 × tan(180° / n) in degrees).

How do I use this tool as a regular pentagonal prism volume calculator?

Set Regular base side count (#sides) to 5, enter one pentagon base edge in #side, and enter the prism length or altitude in #height. For n = 5, the base area multiplier is 5 / (4 × tan(36°)) ≈ 1.72047740059 × s².

How do I find the volume of a regular prism if I am given the apothem a?

If you have the apothem a, side length s, side count n, and height h, the volume is V = (1/2) × n × s × a × h. If you only have the apothem a and not the side length s, first convert s = 2 × a × tan(π / n) and enter s into #side.

How do I calculate hexagonal prism volume from across-flats width (wrench size)?

Divide the flat-to-flat distance F by √3 ≈ 1.73205080757 to get the outer side length s = F / √3, then enter 6, s, and height h into the calculator. Equivalently, V = (√3 / 2) × F² × h ≈ 0.86602540378 × F² × h.

Why must the regular base side count be a whole number of at least 3?

At least 3 straight edges are required to enclose a two-dimensional polygon in Euclidean space (n = 3 is an equilateral triangle), and fractional side counts do not form a simple closed regular polygon with equal interior angles.

Calculate with your input

Choose another tool for your next calculation, conversion, or text task.

Calculate