Stretched Octagon Calculator

Stretched Octagon Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

A=(1+2)a(a+b)A = (1 + \sqrt{2})\, a (a + b)
Usage stats

Advertisement

Results

Area A
65.183766
Perimeter P30
Length l (between the two end sides a)10.242641
Height h (between the two sides b)7.242641
Diagonal from an end of one side b to the far end of the other side b9.405097
Diagonal from an end of one end side a to the far end of the other end side a10.672942

Report an error on this page

What is a stretched octagon?

A stretched octagon is a convex octagon whose eight interior angles are all 135°, with two opposite parallel sides of length b and six sides of length a. It is what a regular octagon becomes when it is pulled apart, or pushed together, along one pair of opposite sides. It has two mirror axes and point symmetry. With b equal to a it is the regular octagon, which the octagon calculator covers.

How to use it

Type the side a (the six equal sides) and the stretched side b (the two parallel sides). b may be shorter or longer than a. The length unit is only a label: lengths come out in that unit and areas in its square. Each length you type must be from 0.000001 to 1,000,000,000 (a box that allows 0 also accepts 0), each area from 0.000000000001 to 1,000,000,000,000,000,000 and each angle greater than 0° and less than 180°; anything else, including text, is refused with a sentence that says why, and so is a set of values that cannot form the shape.

Derivation of the formulas

With all angles 135°, the four slanted sides a each run at 45° and reach a/√2 across and a/√2 up. Starting at the left end of the lower side b, the corners are (a/√2, 0), (a/√2 + b, 0), (√2a + b, a/√2), (√2a + b, a/√2 + a), (a/√2 + b, √2a + a), (a/√2, √2a + a), (0, a/√2 + a) and (0, a/√2). So the length between the two end sides and the height between the two sides b are:

$$ l = b + \sqrt{2}\, a, \qquad h = (1 + \sqrt{2})\, a $$

The regular octagon of side a has area 2(1 + √2)a². Stretching it by b − a adds a rectangle (b − a) × h:

$$ A = 2(1 + \sqrt{2}) a^{2} + (b - a)(1 + \sqrt{2}) a = (1 + \sqrt{2})\, a (a + b), \qquad P = 6a + 2b $$

The two long diagonals through the centre join opposite ends of the sides b, and opposite ends of the end sides a:

$$ d_b = \sqrt{b^{2} + h^{2}}, \qquad d_a = \sqrt{l^{2} + a^{2}} $$

Worked example

The page opens with side a (the six other sides) = 3, stretched side b = 6. Then area A ≈ 65.183766; length l (between the two end sides a) ≈ 10.242641; height h (between the two sides b) ≈ 7.242641; diagonal from an end of one side b to the far end of the other side b ≈ 9.405097. Values are shown with up to six decimals; a value below 0.0000005 or of 10¹⁵ and more is shown as its plain 12-digit number instead.

Advertisement
Stretched octagon with a slanted side of 3, a stretched side of 6, and area approximately 65.183766.
For a = 3 and b = 6, the area is approximately 65.183766 square units.

Frequently asked questions

Can b be shorter than a?

Yes. All angles stay 135° and the octagon is pushed together along the sides b. As b shrinks towards 0, the two ends of each side b move together and the octagon tends to a hexagon with two right angles; a side of 0 is not accepted.

Why does the unit not change the numbers?

The calculator does not convert between units. Every length is read in the unit you chose, so the unit only labels the results; areas come out in that unit squared.

How accurate are the results?

Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.

Advertisement
Stretched octagon showing length 10.242641, height 7.242641, and diagonal 9.405097.
The example has approximate length 10.242641, height 7.242641, and diagonal 9.405097.

References

H. S. M. Coxeter, Introduction to Geometry, 2nd edition, Wiley, 1969

D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulas, 33rd edition, CRC Press, 2018

Last updated:

Most popular in Geometry

View all Geometry calculators