Regular Octagon Calculator
Enter any one regular-octagon measurement to calculate its side length, perimeter, area, three diagonal types, circumradius, and inradius.
Known measurement
Current source relationship
a = known side lengthCalculated properties
120.710678 cm²
Exact identity: A = 2(1 + √2)a²
5 cm
40 cm
13.06563 cm
12.071068 cm
9.238795 cm
6.532815 cm
6.035534 cm
For a side length of 5 centimeters, the area is 120.710678 square centimeters and the perimeter is 40 centimeters.
Formula breakdown
| Property | Formula from side a | Calculated value |
|---|---|---|
| Side length | a | 5 cm |
| Perimeter | 8a | 40 cm |
| Area | 2(1 + √2)a² | 120.710678 cm² |
| Longest diagonal | a√(4 + 2√2) | 13.06563 cm |
| Medium diagonal | a(1 + √2) | 12.071068 cm |
| Shortest diagonal | a√(2 + √2) | 9.238795 cm |
| Circumcircle radius | a√(4 + 2√2) / 2 | 6.532815 cm |
| Incircle radius | a(1 + √2) / 2 | 6.035534 cm |
All rows use the same canonical side length. Lengths use the selected unit; area uses its squared form.
How to use the regular octagon calculator
What this calculator does
This calculator solves the standard measurements of a regular octagon: an eight-sided polygon whose sides and interior angles are all equal. You provide one known measurement, and the calculator converts it to the underlying side length before deriving every other property. It covers side length, perimeter, area, three distinct diagonal lengths, circumcircle radius, and incircle radius. The formulas are exact geometric identities for a regular octagon; they do not apply to an irregular octagon with unequal sides or angles. For the underlying identities, see the regular-octagon formulas documented by Wolfram MathWorld.
When to use it
Use the calculator when planning an octagonal tabletop, tile, sign, frame, gazebo footprint, aperture, or other regular eight-sided layout. It is also useful for checking geometry homework, converting a drawing specification from one octagon measurement to another, or estimating material area and edge length before applying real-world allowances such as kerf, seams, grout, or waste.
How to calculate
- The calculator opens with a ready-to-use demonstration: Side length = 5 cm. Its results and validated example workbook are available immediately.
- Under Known measurement, choose the property already available in your drawing or specification.
- Replace Known value with a positive decimal. U.S.-style grouping such as 1,250.5 is accepted; decimal commas and scientific notation are rejected to prevent ambiguous interpretation.
- Select the Length unit. Changing this selection converts the current known value rather than merely relabeling it. When the known measurement is Area, the conversion uses squared units.
- Read the live results and the formula table, then choose Download Excel to export the current assumptions and typed numerical results. Reset clears the demonstration value and calculated content; export remains unavailable until a complete valid value is entered again.
Input guide
Known measurement is required and identifies which octagon property your number represents. It accepts one of eight named properties. For example, choose “Perimeter” when a plan specifies 240 cm around the boundary. Selecting the wrong property is the most important interpretation error because the same number leads to a different side length under every formula.
Known value is a required positive number. Length sources use the selected length unit, while Area uses the corresponding square unit. A realistic entry is 5 for a 5 cm side. Zero, negatives, unsupported symbols, decimal-comma notation, scientific notation, and values large enough to produce nonfinite results are rejected. Increasing a length-based value scales every length proportionally and area quadratically; increasing an area source scales all lengths by the square root of the change.
Length unit is required and supports millimeters, centimeters, meters, inches, and feet. It determines the display and workbook unit for every length result; Area is shown in mm², cm², m², in², or ft². Keep one unit system throughout a physical project, and remember that area conversion factors are squared. NIST explains why area is expressed in square units derived from length units.
Output guide
Side length is the common edge length. Perimeter is the total boundary, exactly eight times the side. Area is the enclosed two-dimensional surface and is the primary result. Longest diagonal connects opposite vertices through the center. Medium diagonal spans vertices separated by two intermediate vertices and is also the distance between opposite parallel sides. Shortest diagonal skips one vertex. Circumcircle radius reaches from the center to a vertex, while Incircle radius reaches from the center perpendicularly to a side and equals the apothem. All are exact identities before display rounding. A high or low value has no independent judgment attached; it simply reflects the scale of the entered octagon. A zero result is not displayed because a regular octagon with zero size is treated as invalid input.
The Formula breakdown table lists each property, its formula in terms of side a, and the current calculated value. Every row is driven by the same solved side length, which makes the table useful for checking a manual derivation. The broader regular-polygon relationships show how these octagon identities fit the general formulas for an n-sided regular polygon.
Worked example
With the startup value a = 5 cm, the perimeter is 8 × 5 = 40 cm. The area is 2(1 + √2) × 5² = 120.710678 cm² after display rounding. The medium diagonal is 5(1 + √2) = 12.071068 cm, so the incircle radius is half of that value, 6.035534 cm. The longest diagonal is 13.06563 cm, making the circumcircle radius 6.532815 cm. These are the same values shown on first open and written to the example workbook.
How the geometry works
The general interior-angle identity for a polygon is (n – 2) × 180°. Substituting n = 8 gives 1080°, and equal division gives 135° per interior angle. MathWorld's polygon angle derivation provides the general proof.
Practical interpretation and common mistakes
The calculator returns ideal mathematical dimensions. For fabrication or construction, add separate allowances for blade kerf, joint gaps, edge finishing, tolerance, and waste. Area estimates also assume a perfectly regular outline and do not subtract holes, cutouts, or borders.
- Do not enter the distance across opposite sides as the longest diagonal. That across-flats distance is the medium diagonal and equals twice the inradius.
- Do not mix a length number with an area selection. A value of 25 cm and 25 cm² describe different dimensions and produce different octagons.
- Do not convert area with a linear factor. For example, converting meters to centimeters multiplies length by 100 but area by 10,000.
- Keep enough precision during intermediate work. Round only the final cutting or reporting dimension appropriate to the project.