Polygon Calculator

All free toolsGeometry Calculators
Geometry CalculatorsFree online tool

Polygon Calculator

Calculate the area, perimeter, apothem and interior angle of a regular polygon.

Assumes a regular, convex polygon. Area = n s² / [4 tan(π/n)]. Interior angle is for each vertex.

Free online tool by SOCE. Check inputs and results before using them for important decisions.

Polygon Calculator – Free Online Area, Perimeter and Angles Guide

The SOCE Polygon Calculator page provides a useful mathematical reference for understanding polygon geometry, including area, perimeter, interior angles, exterior angles, side lengths, and apothem.

A polygon is a closed two-dimensional figure formed by straight line segments. Common examples include triangles, quadrilaterals, pentagons, hexagons, heptagons, and octagons.

Polygon calculations are important in mathematics, engineering, architecture, surveying, computer graphics, and geometric design.

This Polygon Calculator guide explains the essential formulas for regular polygons, introduces methods for irregular polygons, and demonstrates practical calculations through step-by-step examples.

What Is a Polygon Calculator?

A Polygon Calculator is a mathematical tool used to determine geometric properties of polygons from known measurements.

Common polygon properties include:

  • Number of sides.
  • Side length.
  • Perimeter.
  • Area.
  • Interior angles.
  • Exterior angles.
  • Central angle.
  • Apothem.
  • Circumradius.

The available calculations depend on the polygon type and the supplied dimensions.

For example, a regular hexagon with side length 6 cm has:

Number of sides = 6

Perimeter = 6 × 6 = 36 cm

Each interior angle = 120°

Each exterior angle = 60°

Area = 54√3 cm² ≈ 93.53 cm²

These results follow standard regular polygon geometry.

Understanding Polygon Geometry

A polygon consists of straight sides connected at vertices.

Sides

The line segments forming the polygon’s boundary.

Vertices

The points where adjacent sides meet.

Interior Angles

The angles formed inside the polygon at its vertices.

Exterior Angles

Angles formed by extending a side and measuring the angle with the adjacent side.

Diagonals

Line segments connecting non-adjacent vertices.

Apothem

For a regular polygon, the apothem is the perpendicular distance from its centre to a side.

Circumradius

The distance from the centre of a regular polygon to any vertex.

Central Angle

The angle formed at the centre by radii connecting two adjacent vertices of a regular polygon.

Types of Polygons

Polygons can be classified according to their sides, angles, and geometric properties.

Regular Polygon

A regular polygon has all sides equal and all interior angles equal.

Examples include:

  • Equilateral triangle.
  • Square.
  • Regular pentagon.
  • Regular hexagon.
  • Regular octagon.

Irregular Polygon

An irregular polygon does not have both equal sides and equal interior angles.

Its area generally requires additional measurements, coordinates, or geometric decomposition.

Convex Polygon

A convex polygon has every interior angle less than 180°.

Every line segment joining two points within a convex polygon lies entirely inside or on its boundary.

Concave Polygon

A concave simple polygon has at least one interior angle greater than 180°.

Polygon Names by Number of Sides

Number of sides Polygon
3 Triangle
4 Quadrilateral
5 Pentagon
6 Hexagon
7 Heptagon
8 Octagon
9 Nonagon
10 Decagon
11 Hendecagon
12 Dodecagon

How to Use the Polygon Calculator

For a regular polygon, the general calculation procedure is:

  1. Identify the number of sides.
  2. Determine the known dimensions, such as side length or apothem.
  3. Confirm that the polygon is regular.
  4. Select the required geometric property.
  5. Convert measurements into consistent units.
  6. Apply the appropriate polygon formula.
  7. Calculate the result.
  8. Check the output and its measurement units.

For example:

Number of sides = 5

Side length = 8 cm

Perimeter:

P = 5 × 8

Answer: 40 cm

The interior angle is:

α = (5 − 2) × 180°/5

Answer: 108°

Polygon Calculator Formulas

The following formulas apply to regular polygons unless otherwise specified.

Property Formula
Perimeter P = ns
Interior angle sum S = (n − 2)180°
Each interior angle α = (n − 2)180°/n
Each exterior angle β = 360°/n
Central angle θ = 360°/n
Number of diagonals D = n(n − 3)/2
Apothem from side a = s/[2tan(π/n)]
Circumradius R = s/[2sin(π/n)]
Area from perimeter and apothem A = Pa/2
Area from side length A = ns²/[4tan(π/n)]
Side from circumradius s = 2R sin(π/n)

Where:

  • n = number of sides.
  • s = common side length.
  • P = perimeter.
  • A = area.
  • a = apothem.
  • R = circumradius.
  • D = number of diagonals.
  • α = interior angle.
  • β = exterior angle.
  • θ = central angle.

For trigonometric formulas containing π/n, the angles are expressed in radians.

A non-degenerate regular polygon requires an integer number of sides n ≥ 3 and positive side length.

Regular Polygon Perimeter Calculator

The perimeter of a polygon is the total distance around its boundary.

For a regular polygon, all sides have equal length.

Formula

P = ns

Where:

n = number of sides.

s = length of each side.

Worked Example

A regular octagon has eight sides, each measuring 5 cm.

P = 8 × 5

Answer: 40 cm

Finding Side Length from Perimeter

Rearranging:

P = ns

s = P/n

For a regular hexagon with perimeter 48 cm:

s = 48/6

Answer: 8 cm

Polygon Area Calculator

The area of a polygon represents the two-dimensional region enclosed by its boundary.

For a regular polygon, the area can be calculated using its perimeter and apothem.

Formula Using Apothem

A = Pa/2

Where:

P = perimeter.

a = apothem.

Worked Example

A regular polygon has:

Perimeter = 60 cm

Apothem = 8 cm

Area:

A = (60 × 8)/2

Answer: 240 cm²

Formula Using Side Length

For a regular polygon with n sides of length s:

A = ns²/[4tan(π/n)]

Worked Example: Regular Hexagon

Number of sides = 6

Side length = 6 cm

A = 6 × 6²/[4tan(π/6)]

A = 216/(4/√3)

A = 54√3

Answer ≈ 93.53 cm²

This formula applies to regular polygons, not arbitrary irregular polygons.

Polygon Interior Angle Calculator

The interior angles of a simple polygon have a total sum determined by the number of sides.

Interior Angle Sum Formula

S = (n − 2) × 180°

Worked Example

A hexagon has six sides.

S = (6 − 2) × 180°

S = 4 × 180°

Answer: 720°

Each Interior Angle of a Regular Polygon

For a regular polygon:

α = [(n − 2) × 180°]/n

Worked Example

For a regular octagon:

α = (8 − 2) × 180°/8

α = 1080°/8

Answer: 135°

Polygon Exterior Angle Calculator

For a regular polygon, all exterior angles are equal.

Formula

β = 360°/n

Worked Example

A regular pentagon has five sides.

β = 360°/5

Answer: 72°

For a convex polygon, the sum of one consistently directed exterior turning angle at each vertex is 360°.

Relationship Between Interior and Exterior Angles

For a regular convex polygon:

α + β = 180°

For a regular pentagon:

108° + 72° = 180°.

Polygon Central Angle Calculator

The central angle of a regular polygon is formed by two radii drawn to adjacent vertices.

Formula

θ = 360°/n

Worked Example

For a regular decagon:

n = 10

θ = 360°/10

Answer: 36°

The central angle of a regular polygon equals the magnitude of its exterior angle.

Polygon Apothem Calculator

The apothem is the perpendicular distance from the centre of a regular polygon to one of its sides.

Formula

a = s/[2tan(π/n)]

Where:

s = side length.

n = number of sides.

Worked Example

A regular hexagon has side length 6 cm.

a = 6/[2tan(π/6)]

Since tan(π/6) = 1/√3:

a = 3√3

Answer ≈ 5.20 cm

Area Using Apothem

The perimeter of this hexagon is:

P = 6 × 6 = 36 cm

Area:

A = Pa/2

A = 36 × 3√3/2

A = 54√3

Answer ≈ 93.53 cm²

Polygon Circumradius Calculator

The circumradius of a regular polygon is the distance from its centre to any vertex.

Formula

R = s/[2sin(π/n)]

Worked Example

A regular hexagon has side length 8 cm.

R = 8/[2sin(π/6)]

Since sin(π/6) = 1/2:

R = 8

Answer: 8 cm

For a regular hexagon, the circumradius equals the side length.

Finding Side Length from Circumradius

Rearranging:

s = 2R sin(π/n)

This formula is useful when the circumradius and number of sides are known.

Polygon Diagonal Calculator

A diagonal connects two non-adjacent vertices of a polygon.

Formula for Number of Diagonals

For a simple polygon with n vertices:

D = n(n − 3)/2

Worked Example

A regular octagon has eight vertices.

D = 8(8 − 3)/2

D = 8 × 5/2

Answer: 20 diagonals

This formula also applies to irregular simple polygons when counting vertex pairs that are not adjacent, although some diagonals of concave polygons may lie partly outside the polygon.

Regular Pentagon Calculator

A regular pentagon has five equal sides and five equal interior angles.

Important Formulas

Perimeter:

P = 5s

Each interior angle:

108°

Each exterior angle:

72°

Area:

A = 5s²/[4tan(36°)]

Worked Example

Side length = 4 cm

Perimeter:

P = 5 × 4

P = 20 cm

Area:

A = 5 × 4²/[4tan(36°)]

A ≈ 27.53 cm²

Regular Hexagon Calculator

A regular hexagon has six equal sides and six equal interior angles.

Important Formulas

Perimeter:

P = 6s

Area:

A = (3√3/2)s²

Each interior angle:

120°

Each exterior angle:

60°

Worked Example

Side length = 5 cm

Perimeter:

P = 6 × 5

P = 30 cm

Area:

A = (3√3/2) × 25

A ≈ 64.95 cm²

Regular Octagon Calculator

A regular octagon has eight equal sides and eight equal interior angles.

Important Formulas

Perimeter:

P = 8s

Area:

A = 2(1 + √2)s²

Each interior angle:

135°

Each exterior angle:

45°

Worked Example

Side length = 3 cm

Perimeter:

P = 8 × 3

P = 24 cm

Area:

A = 2(1 + √2) × 3²

A ≈ 43.46 cm²

Irregular Polygon Perimeter Calculator

An irregular polygon has unequal sides, unequal angles, or both.

Its perimeter is calculated by adding all boundary side lengths.

Formula

P = s₁ + s₂ + … + sₙ

Worked Example

An irregular pentagon has sides measuring:

4 m, 5 m, 7 m, 6 m, and 8 m.

P = 4 + 5 + 7 + 6 + 8

Answer: 30 m

This calculation assumes the dimensions describe a valid closed polygon.

Irregular Polygon Area Calculator

Unlike a regular polygon, an irregular polygon generally cannot be solved using only its number of sides and one side length.

Its area can be determined using additional information, such as vertex coordinates or subdivision into simpler shapes.

Coordinate Method: Shoelace Formula

For a simple polygon with vertices listed consecutively around its boundary:

(x₁, y₁), (x₂, y₂), …, (xₙ, yₙ)

The area is:

A = ½ |Σ(xᵢyᵢ₊₁ − xᵢ₊₁yᵢ)|

The indexing wraps around so that vertex n + 1 is vertex 1.

Worked Example

Consider a polygon with vertices:

(0, 0)

(6, 0)

(5, 4)

(1, 3)

Using the shoelace formula:

Forward sum:

0 × 0 + 6 × 4 + 5 × 3 + 1 × 0 = 39

Reverse sum:

0 × 6 + 0 × 5 + 4 × 1 + 3 × 0 = 4

Area:

A = ½ |39 − 4|

Answer: 17.5 square units

The vertices must be ordered around the polygon boundary, and the polygon must be simple for this standard area interpretation.

Polygon Unit Conversion

Polygon measurements use both linear and square units.

Linear Measurements

  • Side length.
  • Perimeter.
  • Apothem.
  • Circumradius.
  • Diagonal lengths.

Examples of linear units:

mm, cm, m, in, ft.

Area Measurements

Polygon area is expressed in square units:

mm², cm², m², in², ft².

Common Conversion Factors

1 m = 100 cm

1 m² = 10,000 cm²

1 in = 2.54 cm exactly

1 ft = 0.3048 m exactly

1 ft² = 144 in²

Worked Example

A regular hexagon has side length 200 cm.

Convert to metres:

s = 2 m

Perimeter:

P = 6 × 2

P = 12 m

Area:

A = (3√3/2) × 2²

A = 6√3

A ≈ 10.39 m²

Polygon Calculator for Civil Engineering

Polygon geometry has several applications in civil engineering, architecture, surveying, and computational modelling.

Land Surveying

Polygonal boundaries are commonly used to represent plots of land.

Perimeter and area can be calculated from reliable survey dimensions or coordinates.

Building Floor Plans

Irregular building layouts may be represented as polygonal regions.

Their areas can be calculated using geometric subdivision or coordinate methods.

Finite Element Analysis

Polygonal and triangular geometric regions are used in computational meshing and numerical modelling.

Element geometry and area are important in finite element calculations.

Architectural Design

Regular polygons appear in decorative layouts, pavilions, flooring patterns, and architectural components.

Construction Material Estimation

Polygon area and perimeter calculations can support preliminary estimates of paving, edging, flooring, and surface finishes.

Actual construction quantities require appropriate allowances and project-specific specifications.

Computer-Aided Design

Polygon geometry is used in CAD, graphics, geometric modelling, and computational design.

Common Mistakes in Polygon Calculations

  1. Confusing regular and irregular polygons: Their calculation methods may differ.
  2. Using P = ns for unequal side lengths: This formula requires equal sides.
  3. Applying regular polygon area formulas to irregular shapes: Additional geometric information may be required.
  4. Confusing interior angle sum with one interior angle: They are different quantities.
  5. Using degrees in a radians-based trigonometric formula: Convert angle units correctly.
  6. Confusing apothem and circumradius: They represent different distances.
  7. Using inconsistent measurement units: Convert before calculating.
  8. Ignoring the minimum number of sides: A non-degenerate polygon requires at least three sides.
  9. Rounding intermediate results too early: Maintain adequate numerical precision.
  10. Counting diagonals incorrectly: Each pair of non-adjacent vertices defines one diagonal.
  11. Using unordered coordinates in the shoelace formula: Vertices must follow the boundary order.
  12. Confusing area with perimeter: Area uses square units; perimeter uses linear units.

Frequently Asked Questions About Polygon Calculator

1. What is a Polygon Calculator?

A Polygon Calculator is a mathematical tool used to determine geometric properties such as area, perimeter, angles, and side lengths of polygons.

2. What is a regular polygon?

A regular polygon has equal side lengths and equal interior angles.

3. What is the perimeter formula for a regular polygon?

P = ns, where n is the number of sides and s is the common side length.

4. What is the area formula for a regular polygon?

A = ns²/[4tan(π/n)].

5. How do you calculate polygon area using apothem?

A = Pa/2, where P is perimeter and a is apothem.

6. What is the sum of interior angles of a polygon?

S = (n − 2)180° for a simple polygon with n sides.

7. How do you calculate each interior angle of a regular polygon?

α = (n − 2)180°/n.

8. What is the exterior angle of a regular polygon?

β = 360°/n.

9. How do you calculate polygon apothem?

a = s/[2tan(π/n)] for a regular polygon.

10. How do you calculate polygon circumradius?

R = s/[2sin(π/n)] for a regular polygon.

11. How many diagonals does a polygon have?

D = n(n − 3)/2.

12. What is the interior angle of a regular hexagon?

120°.

13. What is the interior angle of a regular octagon?

135°.

14. Can irregular polygon area be calculated?

Yes. Coordinate-based methods, geometric decomposition, and other suitable measurements can be used.

15. What is the shoelace formula?

It is a coordinate-based method for calculating the area of a simple polygon from its ordered vertices.

16. Why is polygon geometry important in engineering?

Polygon geometry is useful in surveying, building layouts, finite element modelling, CAD, and geometric construction measurements.

Learn Polygon Geometry with SOCE

The SOCE Polygon Calculator page provides mathematical formulas, worked examples, and educational explanations for understanding polygon geometry.

Use this Polygon Calculator resource to learn about regular polygon area, perimeter, interior angles, exterior angles, apothem, circumradius, diagonals, and irregular polygon calculations.

Explore additional mathematics and engineering resources through the SOCE Geometry Calculators collection.