X-Shape Calculator

X-Shape Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

A=bsin⁡α(2l−x),x=b2cos⁡αA = b \sin\alpha\,(2l - x), \quad x = \frac{b}{2\cos\alpha}
Usage stats

Advertisement

Results

Area A
31.176915
Perimeter P40
Crossing length x (side of the central rhombus)2
Arm edge m (from a bar corner to a side notch)5
Arm edge n (from a bar corner to the top or bottom notch)3
Height h (between the level ends)8.660254
Width i (overall, across both bars)7
Bar thickness (across the bar, at right angles to its edges)1.732051
Acute angle α60°
Obtuse angle β120°

Report an error on this page

What is an X shape?

An X shape here is the figure made by two equal bars that cross at their middles like the letter X. Each bar is a parallelogram with long edges l and level ends b, leaning at the acute angle α to its ends; the second bar is the mirror image of the first in the vertical line through the centre. The bars overlap in a central rhombus of side x. The outline has 12 corners: eight bar corners and four inward notches, which are the corners of the rhombus. The shape has a vertical and a horizontal mirror axis and point symmetry. Two straight bars crossing at right angles make the cross shape instead.

How to use it

Type the bar length l (along the long edge), the end width b (the level end of each bar, measured along the end, not across the bar) and one of the bar angles: the acute angle α or the obtuse angle β = 180° − α. The bar must be long enough that the two upper ends stay apart: l greater than b/cos α. 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

Centre the X at the origin. The first bar leans at α: its long edges are the lines (∓b/2, 0) + t·(cos α, sin α), and its ends are level, so its corners are at t = ±l/2. The second bar is its mirror image. The edges of the two bars meet at the four notches (±b/2, 0) and (0, ±(b/2)·tan α), which are the corners of the central rhombus, so its side is:

$$ x = \frac{b}{2\cos\alpha} $$

Each long edge is split by the crossing into a piece of length m = l/2 from a bar corner to a side notch, the rhombus side x, and a piece n = l/2 − x from the other bar corner to the top or bottom notch. The outline is four ends b and eight such pieces. The area is the two bars, each l·b·sin α, less the rhombus counted twice, whose area is x²·sin 2α:

$$ P = 4(m + n) + 4b = 4(l - x) + 4b, \qquad A = 2 l b \sin\alpha - x^{2} \sin 2\alpha = b \sin\alpha\,(2l - x) $$

The height between the level ends and the overall width follow from the corners (±(l/2)cos α ± b/2, ±(l/2)sin α):

$$ h = l \sin\alpha, \qquad i = l \cos\alpha + b $$

The bar is b·sin α thick when measured at right angles to its long edges. The X exists while the piece n is longer than 0, that is l·cos α greater than b.

Worked example

The page opens with bar length l (along the long edge) = 10, end width b (the level end of a bar) = 2, acute angle α of the bar = 60°. Then area A ≈ 31.176915; perimeter P ≈ 40; crossing length x (side of the central rhombus) ≈ 2; height h (between the level ends) ≈ 8.660254. 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
X shape with its bar length, horizontal end width, and acute angle marked.
The example uses a bar length of 10, an end width of 2, and an acute angle of 60°.

Frequently asked questions

Why is the end width not the thickness of the bar?

The ends are level while the bar leans, so the end cuts the bar at a slant. Across the bar, at right angles to its edges, it is only b·sin α thick; the page shows that thickness as well.

What happens when the bars get shorter?

The top and bottom notches move towards the bar ends. At l equal to b/cos α the upper ends of the two bars touch, and below that they overlap, so the page refuses such a set.

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
X shape showing its overall height and one side of its central crossing.
For the example, the height is approximately 8.660254 and the crossing length is approximately 2. The area is approximately 31.176915 and the perimeter is approximately 40.

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