
Regular Polygon Area Calculator
Use this regular polygon area calculator to compute the exact 2D area of any regular n-gon (3 to 1,000 sides) from side count n and side length s.
Open toolThe 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.
Enter the inputs, then select Calculate.
Result will appear here
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")))).
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 |
| 3 | 4 cm | 10 cm | 6.92820323028 cm² | 69.2820323028 | Equilateral triangular optical prism (69.28 mL) |
| 4 | 5 in | 8 in | 25 in² | 200 | Square prism column (B = s² = 25 in²) |
| 5 | 3 in | 6 in | 15.4842966053 in² | 92.9057796318 | Regular pentagonal prism (1.720477 × s² × h) |
| 6 | 0.5773502692 in | 12 in | 0.86602540378 in² | 10.3923048454 | 1.0 in across-flats (F = 1 in) hex steel bar (12 in long) |
| 6 | 2.65 mm | 11.5 mm | 18.245015403 mm² | 209.817677135 | Apis mellifera honeycomb cell (0.210 mL raw honey) |
| 8 | 6 in | 96 in | 173.823376491 in² | 16687.0441431 | 8 ft octagonal timber gazebo post (9.657 ft³ wood) |
| 8 | 1.5 ft | 4 ft | 10.8639610307 ft² | 43.4558441227 | Octagonal concrete light-pole base (1.609 yd³ concrete) |
| 10 | 2 cm | 5 cm | 30.7768353718 cm² | 153.884176859 | Regular decagonal prism container (153.88 mL) |
| 12 | 1 m | 2.5 m | 11.1961524227 m² | 27.9903810568 | Regular dodecagonal architectural kiosk (27.99 m³) |
Follow these three steps to run the solver in the workspace above.
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).
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).
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.
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.
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.

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³).

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.

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.

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.


Use this regular polygon area calculator to compute the exact 2D area of any regular n-gon (3 to 1,000 sides) from side count n and side length s.
Open tool
Calculate inradius a = s / (2 tan(π/n)) with this polygon apothem calculator and apothem calculator for hexagons, octagons, pentagons, and regular n-gons.
Open tool
Use this rectangular prism volume calculator to compute box and tank volume V = l × w × h. Includes a 10-row table, fraction conversions, and worked examples.
Open toolChoose another tool for your next calculation, conversion, or text task.

Use this cube volume calculator to find cubic volume V = s³ from any edge length s. Includes a 10-row reference table, liter and gallon conversions, & FAQs.
Open tool
Use this cylinder volume calculator to find cubic volume V = πr²h from radius and height up to 12 digits, with gallon and liter conversions.
Open tool
Use this pyramid frustum volume calculator and truncated pyramid volume calculator to solve V = (1/3)h(a² + ab + b²) for footings, hoppers, and pedestals.
Open tool
Multiply the input by the source unit factor and divide by the destination factor.
Open toolAnswers about using Regular Prism Volume Calculator and understanding its results.
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.
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).
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².
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.
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.
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.
Choose another tool for your next calculation, conversion, or text task.