What is a regular polygon, and why does the side count matter?
A %s is %s. Its area is the amount of flat space it covers, measured in square units — square centimetres, square metres, or square feet, depending on the numbers you type in. This calculator works it out from the measurements you already have, so you do not need to remember the formula.
The page gives you more than the area alone. %s That extra line matters, because most real jobs need two or three numbers at once: the area for covering a surface, and a length such as the perimeter for edging or framing it.
Everything runs in your browser, so your numbers never leave your device. There is no sign-up, no upload, and no waiting. Change any measurement and every result updates live. Regular polygons are the shapes of nuts and bolts, of honeycomb cells, of paving patterns, and of many floor tiles. The number of sides decides the shape completely once the side length is fixed, which is why this calculator needs only two numbers.
How a polygon area calculator works
The calculation rests on one formula: Area = (n × s²) ÷ (4 × tan(π ÷ n)); Perimeter = n × s. Here n is the number of sides and s is the length of one side. The tangent term comes from splitting the polygon into n identical triangles from the centre: each triangle has its tip at the centre and its base as one side, and the apothem is the height of that triangle. It looks simple, and it is — the skill lies in feeding it the right numbers, in the right units, and in the right places.
Here is the default example on this page, worked through slowly. Take the defaults on this page: a hexagon, n = 6, with side 10 cm. The area is (6 × 100) ÷ (4 × tan 30°) = 600 ÷ 2.3094 = 259.81 square centimetres. The perimeter is 6 × 10 = 60 cm, and the apothem is 10 ÷ (2 × tan 30°) = 8.66 cm. If the result looks far too big or far too small, the first thing to check is always the inputs: a missing decimal point or a centimetre typed as a metre is the usual cause.
One point about units deserves attention. Area comes out in square units and the perimeter and apothem in plain units. The side length must be in one unit throughout — all centimetres or all metres. The number of sides is a whole number between 3 and 12; a shape with fewer than 3 sides cannot exist. Keep every measurement in the same unit before you type it in — all centimetres, or all metres, or all inches. Mixing units is the fastest way to get a confident-looking wrong answer.
The apothem: the input nobody has heard of
The measurement people get wrong most often here is the apothem. The apothem is the straight distance from the centre of the polygon to the midpoint of any side, measured at right angles to that side. You do not need to type it in — the calculator works it out — but you do need to know what it is, because the area formula is really built on it: area is half the perimeter times the apothem. The difference sounds small on paper, but it changes the answer directly, so it is worth getting clear before you type anything.
A practical way to measure it is find the centre by drawing lines between opposite corners, then measure from the centre to the middle of the nearest side, at right angles. For the default hexagon that distance is 8.66 cm, and half the perimeter (30) times 8.66 gives the same 259.81 area. Once you have that number, the rest is straightforward: type it in, check the other fields, and read the result.
The same care applies to the other fields. The two fields you do type are the side count and the side length. Count the sides carefully — a hexagon has six, an octagon eight — and measure one side, since every side of a regular polygon is the same length. Short version: measure twice, type once, and glance at the answer before you act on it. A result that is double or half what you expected almost always means one input is wrong.
A worked example: a regular pentagon with 7 cm sides
Let us work a full example from scratch. A wooden pentagon plaque has five equal sides, each 7 cm long. The maker needs its area for varnish and its perimeter for edge trim. Write the inputs down first, then the formula, then substitute the numbers. That order — inputs, formula, substitution — is the habit that keeps school and site work free of silly errors.
Area = (5 × 49) ÷ (4 × tan 36°) = 245 ÷ 2.9062 = 84.30 square centimetres. The perimeter is 5 × 7 = 35 cm. The apothem is 7 ÷ (2 × tan 36°) = 4.82 cm, and the check works: half the perimeter, 17.5, times 4.82 is 84.30. The intermediate steps are worth a look, not just the final answer. A square with 7 cm sides would cover 49 square centimetres, and a hexagon with 7 cm sides would cover 127.31. The pentagon sits between the two at 84.30, which is where it belongs — more sides means more area for the same side length. When you run the same numbers through this calculator, the results match these figures exactly, to two decimal places.
Now change one input and watch what happens. Add one more side, keeping the side at 7 cm, and the area jumps from 84.30 to 127.31 — the hexagon is half as big again. Lengthen the side from 7 to 8 instead, and the area rises to 110.11, because area grows with the square of the side length. That sensitivity is useful in real life: it tells you which measurement is worth re-checking with the tape and which one barely moves the answer.
Where polygon area does real work
Builders and hardware shops use it for hexagonal and octagonal shapes more than any other. For example, a hexagonal floor tile with 10 cm sides covers 259.81 square centimetres, so a 10-square-metre floor needs about 39 tiles before allowing for cuts at the edges. The calculator fits naturally into that workflow because it answers in seconds and lets you compare sizes without redoing the maths by hand each time.
It also appears in nature and engineering: honeycomb cells are hexagons because they pack the most area into the least wax, and bolt heads are hexagons because six sides grip a spanner well. Students meet regular polygons in geometry class, where the apothem method is the standard way to find the area. Students meet the same shape in school, usually in geometry class, where the task is to show the working as well as the answer. The formula box on this page and the worked example above give the steps in the form a teacher expects.
A third group uses it for checking. A craftsperson pricing an octagonal tabletop, or a gardener laying an octagonal patio. If the quote says 150 square centimetres for an octagon with 5 cm sides, the calculator says the true area is 120.71, and the quote is too high. A quick check against the calculator either confirms the figure or flags a mistake before money is spent or marks are lost. That is the real value of a tool like this: not the arithmetic, but the second opinion, delivered instantly. Related shapes are covered by the circle area calculator and the square root calculator.
Polygon area vs triangle area
People often ask whether to use this calculator or a triangle area calculator. The honest answer is that they answer different questions, and the right one depends on the shape in front of you. A triangle is a polygon with three sides, and this calculator handles it: set n to 3 and the formula gives the area of an equilateral triangle. The triangle calculator is still the better tool when the triangle is not equilateral, because it accepts a base and height, or three different sides, which this calculator cannot.
The confusion is understandable, because the word polygon covers everything from a triangle to a twelve-sided shape, so people sometimes use this calculator for irregular shapes. It only works for regular polygons — all sides equal, all angles equal. An irregular pentagon needs to be split into triangles first. If you are unsure which shape you have, count the sides and check the angles: the shape with the matching description is the one to calculate.
A useful rule is to pick the calculator by the shape, not by the answer you want. If every side is the same length, use this calculator. If the sides differ, split the shape into triangles and work out each part on its own. The square area calculator is the four-sided special case of this tool. Both tools are free and live on this site, so switching between them costs nothing — but using the wrong one costs you the correct answer.
Common polygon mistakes
The first mistake is using the formula on an irregular polygon. If the sides are not all equal, the formula does not apply. Measure every side: if they differ, the shape is irregular and must be split into triangles. It is easy to do when you are in a hurry, and the result looks plausible, which is what makes it dangerous.
The second mistake is forgetting that area grows with the square of the side. Doubling the side length quadruples the area, it does not double it. A hexagon with 20 cm sides covers 1,039.23 square centimetres, not twice 259.81. A good habit is to write the unit next to every measurement as you take it, and to convert everything to one unit before you start typing.
The third mistake is counting the sides wrong. A hexagon has six sides and an octagon has eight — easy to mix up on a drawing. Count the corners, which is the same number, and check the shape name before you type. Check the result against a rough estimate in your head before you trust it: if the rough figure and the calculator disagree by a lot, re-measure before you believe either one.
The fourth mistake is using degrees where the tangent needs radians. The formula uses tan(π ÷ n), with π in radians. Doing the tangent in degrees by hand gives a different, wrong number. The calculator handles the conversion, so trust its result over a hand calculation. The calculator gives you the numbers; the units, the shape, and the sense-check are still yours.
How to use this polygon area calculator
Using the calculator takes under a minute. Count the sides of your shape and type the number in the first box, then measure one side and type its length in the second. Type the numbers into the labelled boxes — each box says what it wants, and the unit sits beside it. The results appear below as you type, with the headline answer highlighted at the top.
Read the headline result first, then the supporting rows. The perimeter sits below it, and the apothem below that. If the apothem looks wrong, re-count the sides — the apothem depends on the side count more than on anything else. If you are buying material, round up to the next whole unit and add a little extra for cutting and waste; the calculator gives the exact figure, and the real world always needs a margin.
Your data stays on your device. Nothing is uploaded, stored, or shared, and there is no account to create. You can share the page with the share button or print the result for a quote, a bill, or a homework sheet.