
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 Polygon Apothem Calculator is a two-dimensional trigonometric solver that works as an apothem of a polygon calculator, hexagon apothem calculator, and octagon apothem calculator using a = s / (2 tan(π / n)). Enter #sides (n from 3 to 10,000) and #side (s from 1e-9 to 1,000,000,000) to compute 12-significant-digit inradius locally in your browser without server uploads.
Enter the inputs, then select Calculate.
Result will appear here
Understanding how to calculate apothem starts by drawing lines from the center of a regular n-sided polygon to two adjacent vertices. Those two circumradii (R) and the outer side (s) form an isosceles triangle with central apex angle 360° / n = 2π / n rad (see our Polygon Interior Angle Calculator). Dropping a perpendicular altitude from the center to the midpoint of side s bisects the isosceles triangle into two congruent right triangles. That altitude is the apothem (a, also equal to the radius r_i of the polygon's inscribed circle):
a = s / (2 × tan(π / n)) = s / (2 × tan(180° / n))
Because the opposite leg is half the side length (s / 2) and the bisected apex angle is 180° / n = π / n rad, right-triangle tangent trigonometry (tan(π / n) = (s / 2) / a) gives the exact formula used in batch12-tools.js. Once you have the apothem a and the perimeter P = n · s (from our Regular Polygon Perimeter Calculator), multiplying half the perimeter by the apothem gives the exact surface area of the regular polygon, A = (1/2)P · a (see our Regular Polygon Area Calculator).
Compare 10 standard regular polygons to see how this apothem calculator evaluates the half-central angle (180° / n), exact radical multiplier, 12-digit apothem (#result-main), and across-flats diameter (2a):
| Polygon (#sides = n) | Side Length (#side = s) | Half-Central Angle (180° / n) | Exact Radical Formula | Calculated Apothem (#result-main) | Across-Flats Span (2a) & Benchmark |
|---|---|---|---|---|---|
| Equilateral Triangle (3) | 2 | 60° | (s√3) / 6 | 0.57735026919 | Incircle radius r_i = 1/√3 (2r_i = 1.1547) |
| Square (4) | 2 | 45° | s / 2 | 1 | Flat-to-flat width 2a = s = 2 |
| Regular Pentagon (5) | 2 | 36° | s / (2√(5 − 2√5)) | 1.37638192047 | Pentagon incircle diameter 2a = 2.7528 |
| Regular Hexagon (6, preloaded) | 2 (preloaded) | 30° | (s√3) / 2 | 1.73205080757 (√3) | Preloaded hexagon (2a = 3.4641 across flats) |
| Regular Heptagon (7) | 2 | 25.7143° | s / (2 tan(π/7)) | 2.07652139657 | 7-sided coin incircle radius |
| Regular Octagon (8) | 2 | 22.5° | (s / 2)(1 + √2) | 2.41421356237 | Unit-half-side octagon (2a = 4.8284 span) |
| Regular Decagon (10) | 2 | 18° | (s / 2)√(5 + 2√5) | 3.07768353718 | 10-sided decagon inradius |
| Regular Dodecagon (12) | 2 | 15° | (s / 2)(2 + √3) | 3.73205080757 | 12-sided dodecagon (2a = 7.4641 across flats) |
| Hex Bar Stock (6) | 10 mm | 30° | 5√3 mm | 8.66025403784 | 10 mm hex side → 17.32 mm wrench flat size |
| Octagon Gazebo (8) | 6 ft | 22.5° | 3(1 + √2) ft | 7.24264068712 | 6 ft octagon wall → 14.485 ft flat-to-flat width |
Follow these three steps to run the apothem of a polygon calculator in the workspace above.
Count the equal exterior edges of your convex polygon and enter that integer n (3 for a triangle up to 10000, step="1") in Regular polygon side count (#sides, preloaded with 6).
Supply the measured length of a single side s (1e-9 to 1,000,000,000) in Side length (#side, preloaded with 2).
Select Calculate (#primary-action) to display the 12-significant-digit apothem in #result-main, then copy or download the result.
These three worked examples show how to use the solver as a hexagon apothem calculator, an octagon apothem calculator for carpentry, and a pentagon inradius solver.
For a regular hexagon (#sides = 6) with Side length = 2, the half-central angle is 180° / 6 = 30°. Dividing s / 2 = 1 by tan(30°) = 1 / √3 returns a = √3 ≈ 1.73205080757 linear units.

A builder frames an 8-sided octagonal deck with 6 ft outer walls and needs the perpendicular distance from the center post to the middle of each wall (a) plus the total flat-to-flat width (2a). Entering 8 in #sides and 6 in #side outputs 7.24264068712 ft (3(1 + √2) ft), meaning the deck spans 2 × 7.24264 = 14.4853 ft across opposite parallel walls.

A geometry problem asks for the apothem of a regular pentagon with side length s = 10 cm. Entering 5 and 10 evaluates 10 / (2 tan(36°)) = 5 / 0.726542528 and outputs 6.88190960236 cm.

Use these exact relationships when your problem provides the circumradius R, polygon area A, or wrench flat size instead of side length s:
Finding Apothem From Circumradius (R), Area (A), and Perimeter (P): The apothem a, half-side s / 2, and center-to-vertex circumradius R form a right triangle with hypotenuse R (see our Pythagorean Theorem Calculator). Therefore a = √(R² − (s / 2)²), or in terms of R and n alone, a = R × cos(180° / n) = R × cos(π / n). Because the area of a regular polygon is A = (1/2)P · a, dividing twice the area by the perimeter gives a = 2A / P = 2A / (n · s).
Across-Flats Wrench & Machining Width (F = 2a): For any regular polygon with an even number of sides (n = 4, 6, 8, 10, 12, ...), opposite sides are parallel and separated by exactly twice the apothem (F = 2a). When milling a hexagonal nut or octagonal shaft from round bar stock of diameter D = 2R, the flat-to-flat caliper reading is 2a = D × cos(π / n).

Avoid these three common geometry mistakes when computing or applying an apothem:
Confusing Apothem (a) With Circumradius (R) or Using Radian Mode on Degree Angles: The apothem goes from the center perpendicular to the midpoint of a flat side, whereas the circumradius goes from the center to a sharp corner vertex (a = R × cos(π / n) < R). Even in a regular hexagon where R = s, the apothem is a = (√3 / 2)s ≈ 0.8660s, not s. This browser tool converts π / n automatically in IEEE 754 radians so handheld degree/radian mode errors cannot occur. For irregular coordinate polygons, use our Polygon Area Calculator.
For related polygon, triangle, and 3D prism tools, explore our Regular Polygon Area Calculator, Regular Polygon Perimeter Calculator, Polygon Interior Angle Calculator, Regular Prism Volume Calculator, Polygon Area Calculator, Pythagorean Theorem Calculator, or Heron's Formula 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 tool
Calculate total boundary length P = n × s with this regular polygon perimeter calculator and perimeter of a polygon calculator for 3 to 10,000 equal sides.
Open tool
Find one interior angle of a regular polygon in degrees.
Open toolChoose another tool for your next calculation, conversion, or text task.

Use this regular prism volume calculator and hexagonal prism volume calculator to solve V = n·s²·h / (4·tan(π/n)) for 3- to 10,000-sided right prisms.
Open tool
Calculate regular polygon area (pentagon, hexagon, octagon, n-gon) from side length, or irregular polygon area and centroid from (x, y) vertices using the Shoelace formula.
Open tool
Calculate the hypotenuse of any right triangle from its two perpendicular legs with our free Pythagorean theorem calculator. Includes triples table and steps.
Open tool
Use our free Herons formula calculator (Heron's formula calculator) to find triangle semiperimeter s and area from all 3 side lengths a, b, and c.
Open toolAnswers about using Polygon Apothem Calculator and understanding its results.
Divide the side length s by twice the tangent of 180° / n (or π / n in radians): a = s / (2 × tan(180° / n)) = (s / 2) × cot(180° / n). Evaluating the preloaded sample (n = 6, s = 2) gives a = 2 / (2 × tan(30°)) = √3 ≈ 1.73205080757.
Multiply the side length s by these exact radical constants: equilateral triangle (n = 3) uses (√3 / 6)s ≈ 0.288675s, square (n = 4) uses (1 / 2)s = 0.5s, hexagon (n = 6) uses (√3 / 2)s ≈ 0.866025s, and octagon (n = 8) uses ((1 + √2) / 2)s ≈ 1.207107s.
Use the regular polygon area identity A = (1/2)Pa and solve for a: multiply the area A by 2 and divide by the perimeter P (a = 2A / P).
Multiply the circumradius R by the cosine of 180° / n: a = R × cos(180° / n). If you know both the circumradius R and the side length s, you can also use the Pythagorean theorem: a = √(R² − (s / 2)²).
Multiply the apothem a by the perimeter P = n · s and divide by 2: A = (1/2) × n × s × a. For n = 6, s = 2 and apothem a ≈ 1.73205080757, the area is (1/2) × 12 × 1.73205080757 = 10.3923048454.
Because the apothem is the perpendicular distance from the center to every side of a regular polygon, a circle drawn with center at the polygon's center and radius r_i = a touches the midpoint of every side tangentially, forming the largest circle that fits inside the polygon (the inscribed circle).
Choose another tool for your next calculation, conversion, or text task.