Regular Polygon Volume Calculator — Calculate volume for boxes, tanks, and 3D spaces

The Regular Polygon Volume Calculator finds the volume of a right prism with congruent regular polygon ends. Define the base using its side length, apothem, perimeter, or circumradius, then enter the perpendicular prism height. The tool reports base perimeter, base area, cubic volume, liters, US gallons, and Imperial gallons with a transparent calculation method.

How to use

Start with the polygonal end of the object, not its side view. Enter the Number of polygon sides as a whole number of at least 3. A hexagon uses 6, an octagon uses 8, and a regular dodecagon uses 12.

Choose Base measurement type to match the dimension you actually know. Select Side length for one edge of the polygon, Apothem for the center-to-side perpendicular distance, Perimeter for the full distance around the base, or Circumradius for the center-to-vertex distance. Enter that value in Base measurement.

Select one Length unit for the entire calculation. The Base measurement and Prism height or length must both use that unit. Convert either dimension beforehand if one was measured in a different unit. Enter the Prism height or length as the perpendicular distance between the two congruent polygon ends. For a horizontal tank or duct, this may be called its length, but do not use a sloping seam or diagonal.

Results update immediately. Volume is the prominent result in the selected cubic unit. Base perimeter and Base area provide an audit trail. Equivalent liquid capacity reports liters, US gallons, and Imperial gallons by converting the same geometric volume through cubic meters.

Review the green method summary to confirm which formula path was used. If a field is blank, non-numeric, nonpositive, or outside its allowed range, the calculator identifies it and withholds results rather than displaying an invalid number. Use Reset values to restore the six-sided, 2 m side, and 5 m prism example.

For a container, supply internal dimensions if you need internal capacity. Reduce the estimate separately for wall thickness, inaccessible space, fittings, freeboard, or an operating fill limit. Keep more digits during measurement and calculation than you intend to show in the final report.

Formula

$$V=A h$$ $$P=ns$$ $$A=\frac{ns^2}{4\tan\left(\frac{\pi}{n}\right)}$$ $$V=\frac{ns^2h}{4\tan\left(\frac{\pi}{n}\right)}$$ $$A=\frac{Pa}{2}$$ $$s=2a\tan\left(\frac{\pi}{n}\right)$$ $$A=\frac{nR^2}{2}\sin\left(\frac{2\pi}{n}\right)$$ $$1\,\mathrm{m}^3=1000\,\mathrm{L}$$

Step by step

Worked audit: take a regular hexagonal prism with n = 6, side length s = 2 m, and perpendicular height h = 5 m. First calculate the perimeter: P = ns = 6 × 2 = 12 m. Next calculate tan(π/6) = tan(30°) ≈ 0.577350269. The base area is A = ns²/[4 tan(π/n)] = 6 × 2²/[4 × 0.577350269] = 24/2.309401077 ≈ 10.39230485 m². Multiply by the perpendicular height: V = Ah = 10.39230485 × 5 ≈ 51.96152423 m³. Since 1 m³ = 1,000 L, capacity is about 51,961.524 L. Dividing liters by 3.785411784 gives about 13,725.673 US gal; dividing by 4.54609 gives about 11,430.986 Imp gal. The unrounded area was retained until the final outputs.

Detailed calculation guide

A regular polygon prism has two congruent, parallel polygon bases joined by straight sides. Its volume equals the area of one base multiplied by the perpendicular distance between the bases. This calculator derives the base area from a side length, apothem, perimeter, or circumradius, then reports volume in cubic units and converts that geometric volume to liters, US gallons, and Imperial gallons.

To calculate the volume of a regular polygonal prism, find the area of its regular polygon base and multiply by the perpendicular prism height: V = A × h. When each base side has length s, A = ns² ÷ [4 tan(π/n)], where n is the number of sides.

Understanding the calculation

The shape modeled here is a right prism, sometimes called a polygonal prism. Its two ends must be congruent regular polygons: every side has the same length, every interior angle has the same measure, and corresponding vertices are aligned through a constant perpendicular distance. The cross-sectional area therefore remains unchanged from one end to the other.

The central calculation is uncomplicated once the base area is known. Volume is base area multiplied by prism height. The important work lies in deriving the same base area correctly from different available measurements. A fabricator might know a hexagon's side length, a designer might receive an apothem, and a property owner might measure the perimeter of an enclosure. Each route is valid when the polygon is genuinely regular.

The number of sides, n, must be an integer of at least three. A triangle is the smallest polygon. As n grows while the circumradius remains fixed, the regular polygon increasingly approximates a circle, although this calculator continues to use the exact polygon formula rather than substituting a circular area.

How each measurement type works

  • Side length: The calculator uses A = ns²/[4 tan(π/n)]. It also obtains the perimeter directly from P = ns.
  • Apothem: The apothem runs from the center perpendicular to the midpoint of a side. The side length is s = 2a tan(π/n), the perimeter is P = ns, and the area is A = Pa/2.
  • Perimeter: Each side is s = P/n. The implied apothem is a = s/[2 tan(π/n)], after which the area follows from A = Pa/2.
  • Circumradius: The circumradius reaches from the center to a vertex. The base area is A = nR² sin(2π/n)/2, while each side is 2R sin(π/n).

These routes are algebraically consistent. Small differences in displayed results can arise when an input was rounded before entry. For example, a measured apothem rounded to one decimal place may not reproduce an area previously calculated from a more precise side length.

Common Mistakes

The most consequential mistake is entering a slanted edge or diagonal where the calculator requests prism height. Height means the perpendicular distance between the two polygon bases. For a horizontal hexagonal tank, the dimension commonly called tank length may serve as prism height only when the end faces are parallel and that length is perpendicular to them.

  • Do not confuse the apothem with the circumradius. The apothem stops at the midpoint of a side; the circumradius continues to a vertex and is always larger for the same nondegenerate regular polygon.
  • Do not enter a corner-to-corner diameter as a circumradius. Divide a center-crossing vertex diameter by two first.
  • Do not mix centimeters and meters. Every entered linear dimension must use the single selected unit.
  • Do not label the result in square units. Area is measured in square units, but volume is measured in cubic units.
  • Do not treat exterior tank dimensions as usable liquid capacity. Wall thickness, liners, internal equipment, freeboard, and outlet position can materially reduce operating capacity.
  • Do not apply a regular-polygon formula merely because a shape has a recognizable number of sides. Equal side lengths and equal central angles are both part of the model.

Assumptions

The calculation assumes exact mathematical dimensions, straight polygon edges, congruent parallel ends, and a constant cross-section. It assumes the prism height is perpendicular to both ends. It also treats the entered base as regular and the object as a right prism rather than an oblique, tapered, twisted, bowed, or rounded solid.

Capacity conversions assume the geometric interior is completely available. They do not incorporate a fill limit, thermal expansion allowance, sediment, inaccessible space, plumbing, structural members, or manufacturing tolerances. If the inputs are external dimensions, the result is external envelope volume rather than internal capacity.

All trigonometric calculations use radians internally. The expressions π/n and 2π/n are therefore passed directly to tangent and sine functions. This matters when recreating the calculation in a spreadsheet or programming language, because some manual calculators may instead be set to degrees.

Limitations

Real manufactured objects rarely match an ideal prism perfectly. Weld beads, chamfers, rounded corners, domed ends, ribs, lids, and wall deformation can change volume. A seemingly regular timber or metal section may also vary along its length. For high-value fabrication, custody transfer, regulated measurement, structural analysis, or safety-critical containment, use certified drawings, calibrated measurement methods, or an appropriate engineering model.

Numerical precision is also bounded by input precision. If a side is recorded as 2.0 m, the displayed six-decimal result does not imply micrometer-level knowledge. The calculator retains more digits during computation to limit intermediate rounding, but the trustworthy significant figures cannot exceed those supported by the measurements.

Very large side counts are accepted for educational comparison, but a circle calculation is generally clearer when the physical boundary is actually circular. Likewise, very small or extremely large input values can exceed useful floating-point range even though the mathematical expression remains valid.

Practical Applications

Regular polygonal prisms occur in geometry coursework, architectural concepts, fabrication stock, storage vessels, display plinths, columns, ducts, packaging, planters, and structural components. A hexagonal container, octagonal tank, triangular prism, or twelve-sided enclosure can all be represented when its end profile is regular and its length is constant.

Builders can use the base area and volume to estimate excavation, fill, or enclosed space, provided the site geometry fits the model. Fabricators can compare internal and external volumes after adjusting dimensions for material thickness. Teachers can show how dividing a regular polygon into congruent isosceles triangles leads to multiple equivalent area formulas.

Capacity results are particularly useful as an initial tank estimate. Because the tool converts through cubic meters, it can consistently report liters and both common gallon systems regardless of the selected input unit. The US gallon and Imperial gallon are different units; neither label should be shortened to an ambiguous bare “gallons” in procurement or technical documents.

Tips

Measure the polygon at more than one location when dealing with a physical object. Repeated side, diagonal, or apothem readings can reveal whether the end is actually regular. Measure prism height along a line normal to the base rather than along a sloped exterior surface.

Retain unrounded measurements through the full calculation and round only the final reported result. Record the chosen measurement type and unit beside the number so another person can reproduce the work. For tanks, distinguish gross geometric capacity, nominal capacity, safe working capacity, and usable withdrawal volume.

When wall thickness is uniform and the geometry permits it, derive internal dimensions before calculating capacity. Simply subtracting wall thickness once is usually wrong: a full outside width typically loses material on two opposite sides. Polygonal fabrication can require additional care because dimensions across flats, across corners, side length, apothem, and circumradius shrink differently.

Interpretation

Base perimeter is the total distance around one polygonal end. It is a linear measurement and can help estimate edge trim or seam length. Base area is the enclosed area of one end and is reported in the selected unit squared. Volume is that area extended through the prism height and is reported in the selected unit cubed.

The capacity outputs express the same volume in liquid units; they are not separate estimates. One cubic centimeter equals one milliliter, and one cubic meter equals 1,000 liters. The calculator uses 3.785411784 liters per US gallon and 4.54609 liters per Imperial gallon. Consequently, the numerical US-gallon result is larger than the Imperial-gallon result for the same physical volume.

A result should be interpreted with its measurement uncertainty. If a tank's dimensions are approximate, a practical report might state “about 2.85 m³” rather than presenting every displayed decimal. Conversely, retaining more digits can be helpful when the result feeds another calculation, provided final rounding reflects the original data quality.

Related Formulas

The perimeter of a regular polygon is P = ns. Its apothem is a = s/[2 tan(π/n)], and its circumradius is R = s/[2 sin(π/n)]. The relationship a = R cos(π/n) connects the two center-based dimensions. These identities make it possible to translate among the calculator's four measurement modes.

Surface area is related but is not the same as volume. For a closed right prism, total surface area is 2A + Ph because there are two polygon bases and a lateral rectangle of combined width P and height h. For an open container, omit whichever faces are absent. Material quantities may additionally require seam allowances, waste factors, overlaps, and thickness-dependent geometry.

An oblique prism still has volume A times perpendicular height, but the sloping lateral edge is not that height. A tapered polygonal solid requires a frustum or integration model. If two similar polygon ends have areas A1 and A2 and are joined as a true prismoidal frustum, a specialized formula may apply; it should not be replaced casually by multiplying an average width by length.

Best Practices

  • Confirm that the number of sides describes the base, not the total number of faces on the three-dimensional object.
  • Choose the measurement type corresponding to the dimension actually observed instead of converting it by eye.
  • Use internal dimensions for internal capacity and external dimensions for envelope volume.
  • Keep all lengths in the selected unit and check whether drawings specify radius, diameter, across-flats, or across-corners dimensions.
  • Preserve source measurements, units, tolerances, and calculation date in project records.
  • Test sensitivity when dimensions are uncertain. Recalculate at plausible minimum and maximum measurements to obtain a volume range.
  • Have safety-critical, contractual, or regulated results reviewed by a qualified professional using the applicable standard.

When NOT to use this calculator

Do not use this calculator for a cone, pyramid, sphere, cylinder, tapered hopper, irregular polygon, rounded vessel, or any object whose cross-section changes along its length. Do not use it for a polygon with unequal sides or angles unless a defensible regular-polygon approximation is explicitly intended and its uncertainty is acceptable.

It is also unsuitable as the sole basis for structural load, pressure-vessel, buoyancy, hazardous-material, billing, or legal metrology decisions. Those tasks may require material density, temperature correction, calibration tables, deformation analysis, code compliance, or certified instrumentation in addition to geometry.

Real-world examples

A classroom hexagonal prism with 2 m sides and a 5 m perpendicular height has a base area of about 10.3923 m² and a volume of about 51.9615 m³. The example demonstrates the direct side-length formula.

An octagonal duct defined by a 3 ft apothem and a 10 ft run has an implied side length of about 2.4853 ft, a base area near 29.8234 ft², and a volume near 298.234 ft³. The same result can be audited through perimeter times apothem divided by two.

A triangular vessel with a 1.5 m circumradius and 0.2 m depth has a volume near 0.584568 m³, equivalent geometrically to about 584.568 liters. Actual usable capacity would be lower if the vessel cannot be filled completely.

Comparison and educational intent

A rectangular volume calculator uses length × width × height because its base area is length × width. A cylinder calculator uses πr²h because its base is circular. This Regular Polygon Volume Calculator occupies the exact middle ground: its base has a finite number of equal straight sides, so its area depends on n and a trigonometric relationship.

The calculator exposes perimeter and base area rather than returning only a volume. That audit trail helps distinguish a geometry error from a unit-conversion error and makes the result suitable for learning, checking drawings, and communicating assumptions. It is an educational and planning tool, not a substitute for calibrated capacity testing or professional engineering judgment.

Beginner: hexagonal prism from side length

Base perimeter 12 m; base area 10.392305 m²; volume 51.961524 m³.

The calculator applies A = 6 × 2²/[4 tan(π/6)] and multiplies the resulting base area by the 5 m perpendicular height.

Intermediate: octagonal duct from apothem

Base perimeter 19.882251 ft; base area 29.823376 ft²; volume 298.233765 ft³.

An apothem of 3 ft implies a side length of about 2.485281 ft. Area follows from one-half perimeter times apothem.

Advanced: pentagonal prism from perimeter

Base perimeter 20 cm; base area about 27.527638 cm²; volume about 192.693467 cm³.

The 20 cm perimeter gives five 4 cm sides. The calculator derives the apothem before applying A = Pa/2 and V = Ah.

Edge case: shallow triangular prism from circumradius

Base area about 2.922836 m²; volume about 0.584567 m³; capacity about 584.567 L.

This uses the minimum valid side count and a short positive height. The base area comes from 3R² sin(2π/3)/2.

Real-world: twelve-sided enclosure in inches

Base perimeter 216 in; base area about 3,627.738 in²; volume about 174,131.424 in³, or about 2,853.55 L.

This models a constant twelve-sided enclosure. Capacity is geometric and should use internal dimensions if the enclosure is a vessel.

Frequently asked questions

What does a Regular Polygon Volume Calculator calculate?

It calculates the base perimeter, base area, and volume of a right prism whose two parallel ends are congruent regular polygons. Examples include idealized triangular, hexagonal, octagonal, and twelve-sided boxes, tanks, ducts, or columns with constant cross-sections.

What is the volume formula when I know the side length?

For n sides of equal length s and perpendicular prism height h, use V = ns²h/[4 tan(π/n)]. The tangent argument is π/n radians. This formula first obtains the regular polygon's base area and then extends that area through height h.

Can I calculate regular polygon prism volume from the apothem?

Yes. For apothem a, derive the side length as s = 2a tan(π/n), find perimeter P = ns, and calculate base area A = Pa/2. The prism volume is then V = Ah, where h is the perpendicular distance between the bases.

What is the difference between an apothem and a circumradius?

An apothem runs from the polygon's center perpendicular to the midpoint of one side. A circumradius runs from the center to a vertex. The circumradius is longer for the same regular polygon, so interchanging these values produces an incorrect area and volume.

Should I use a tank's internal or external dimensions?

Use internal dimensions when estimating liquid or storage capacity. External dimensions calculate the object's envelope volume and do not subtract wall, base, lining, insulation, or structural thickness. Usable operating capacity may be lower still because of freeboard and fittings.

Which dimension counts as prism height or length?

Use the perpendicular distance between the two congruent polygon bases. On a horizontal polygonal tank or duct this dimension is often called length. Do not use a diagonal, a sloping side edge, or a dimension that is not normal to the end faces.

Can this calculator convert cubic volume to gallons?

Yes. It converts the calculated volume to liters, US liquid gallons, and Imperial gallons. These are equivalent-unit conversions of geometric volume, not guarantees of usable tank capacity. US and Imperial gallons differ, so the intended gallon system must be stated.

Why must all input dimensions use the same unit?

Multiplying lengths expressed in different units does not produce a coherent cubic unit. Convert the base measurement and prism height to the selected unit before calculating. The tool then labels perimeter, area, and volume as that unit, unit squared, and unit cubed.

Can I use this calculator for an irregular polygon?

No. The formulas assume equal sides and equal central angles. For an irregular polygon, determine its area from coordinates, triangulation, surveying data, or another appropriate method, then multiply that verified area by perpendicular height if the solid is still a constant right prism.

Does the formula work for an oblique polygonal prism?

An oblique prism also has volume equal to base area times perpendicular height, but its slanted lateral edge is not the required height. This interface is framed around right prisms, so independently determine the true perpendicular separation before using it for an oblique shape.

How accurate is the calculated tank capacity?

The arithmetic retains more precision than the display, but real accuracy depends on measurement quality and whether the tank matches the ideal model. Rounded corners, wall deformation, domed ends, internal components, fill limits, and fabrication tolerances can all change usable capacity.

Can I treat a many-sided regular polygon as a circle?

A regular polygon approaches a circle as its side count increases for a fixed circumradius, but the two areas are not identical at finite n. Use the polygon formula for a genuinely polygonal boundary and a cylinder formula when the physical cross-section is circular.

Related calculators

Browse all calculators in this category

Editorial review

Author: JD

Sources

Enable JavaScript to use interactive calculators.