AI Tools Free

Polygon Apothem Calculator

The 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.

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.

Your result
Enter your details

Result will appear here

How to Calculate Apothem of a Regular Polygon

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

Right-triangle geometry inside a regular hexagon (n = 6, s = 2) showing half-side s/2 = 1, bisected central angle π/6 = 30°, circumradius R = 2, and apothem a = 1 / tan(30°) = √3 ≈ 1.73205080757.
Right-triangle geometry inside a regular hexagon (n = 6, s = 2) showing half-side s/2 = 1, bisected central angle π/6 = 30°, circumradius R = 2, and apothem a = 1 / tan(30°) = √3 ≈ 1.73205080757.

Apothem Calculator & Regular Polygon Inradius Reference Table

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 FormulaCalculated Apothem (#result-main)Across-Flats Span (2a) & Benchmark
Equilateral Triangle (3)260°(s√3) / 60.57735026919Incircle radius r_i = 1/√3 (2r_i = 1.1547)
Square (4)245°s / 21Flat-to-flat width 2a = s = 2
Regular Pentagon (5)236°s / (2√(5 − 2√5))1.37638192047Pentagon incircle diameter 2a = 2.7528
Regular Hexagon (6, preloaded)2 (preloaded)30°(s√3) / 21.73205080757 (√3)Preloaded hexagon (2a = 3.4641 across flats)
Regular Heptagon (7)225.7143°s / (2 tan(π/7))2.076521396577-sided coin incircle radius
Regular Octagon (8)222.5°(s / 2)(1 + √2)2.41421356237Unit-half-side octagon (2a = 4.8284 span)
Regular Decagon (10)218°(s / 2)√(5 + 2√5)3.0776835371810-sided decagon inradius
Regular Dodecagon (12)215°(s / 2)(2 + √3)3.7320508075712-sided dodecagon (2a = 7.4641 across flats)
Hex Bar Stock (6)10 mm30°5√3 mm8.6602540378410 mm hex side → 17.32 mm wrench flat size
Octagon Gazebo (8)6 ft22.5°3(1 + √2) ft7.242640687126 ft octagon wall → 14.485 ft flat-to-flat width

How to Use the Apothem of a Polygon Calculator Step by Step

Follow these three steps to run the apothem of a polygon calculator in the workspace above.

Enter the Regular Polygon Side Count (#sides)

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

Input and settings
Regular polygon side count (#sides = 6) and Side length (#side = 2) input fields in the Polygon Apothem Calculator.
Regular polygon side count (#sides = 6) and Side length (#side = 2) input fields in the Polygon Apothem Calculator.

Enter the Side Length (#side)

Supply the measured length of a single side s (1e-9 to 1,000,000,000) in Side length (#side, preloaded with 2).

Tool result
Measuring perpendicular distance a from the polygon center to the midpoint of side s at a 90° angle.
Measuring perpendicular distance a from the polygon center to the midpoint of side s at a 90° angle.

Click Calculate and Export the Apothem

Select Calculate (#primary-action) to display the 12-significant-digit apothem in #result-main, then copy or download the result.

Review the details
Result panel showing 1.73205080757 linear units for preloaded hexagon inputs n = 6 and s = 2 alongside Copy result and Clear buttons.
Result panel showing 1.73205080757 linear units for preloaded hexagon inputs n = 6 and s = 2 alongside Copy result and Clear buttons.

Worked Examples: Hexagon & Octagon Apothem Calculator

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.

Preloaded Regular Hexagon (n = 6, s = 2)

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.

Regular hexagon with side length s = 2 and 30-60-90 right triangle yielding apothem a = √3 = 1.73205080757.
Regular hexagon with side length s = 2 and 30-60-90 right triangle yielding apothem a = √3 = 1.73205080757.

Octagon Apothem Calculator for a Gazebo Deck (n = 8, s = 6 ft)

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.

Octagonal deck floor plan (n = 8, s = 6 ft) showing apothem a = 7.2426 ft from center post to wall midpoint and 14.485 ft flat-to-flat span.
Octagonal deck floor plan (n = 8, s = 6 ft) showing apothem a = 7.2426 ft from center post to wall midpoint and 14.485 ft flat-to-flat span.

Regular Pentagon Apothem (n = 5, s = 10 cm)

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.

Regular pentagon with n = 5 and s = 10 cm showing 36° half-central angle and apothem a = 6.8819 cm.
Regular pentagon with n = 5 and s = 10 cm showing 36° half-central angle and apothem a = 6.8819 cm.

Calculate Apothem From Circumradius, Area & Across-Flats Span (2a)

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

Diagram comparing inscribed circle radius (apothem a = R cos(π/n)) and circumscribed circle radius (vertex radius R = a / cos(π/n)).
Diagram comparing inscribed circle radius (apothem a = R cos(π/n)) and circumscribed circle radius (vertex radius R = a / cos(π/n)).

Common Apothem Mistakes & Related Polygon Tools

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.

Side-by-side comparison on a regular hexagon showing why apothem a = 0.866s is shorter than circumradius R = 1.000s.
Side-by-side comparison on a regular hexagon showing why apothem a = 0.866s is shorter than circumradius R = 1.000s.

Frequently Asked Questions About the Polygon Apothem Calculator

Answers about using Polygon Apothem Calculator and understanding its results.

What is the formula to calculate the apothem of a regular polygon?

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.

What are the shortcut apothem formulas for a triangle, square, hexagon, and octagon?

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.

How do I find the apothem if I am given the area A and perimeter P?

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

How do I find the apothem from the circumradius R (radius of the circumscribed circle)?

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

How do I calculate the area of a regular polygon once I have the apothem?

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.

Why is the apothem also called the inradius?

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

Calculate with your input

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

Calculate