H-Shape Calculator

H-Shape Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

A=2wh+gtA = 2\,w\,h + g\,t
Usage stats

Advertisement

Results

Area A
80
Perimeter P64
Overall width a10
Height h12
Post width w3
Crossbar thickness t2
Gap between the posts g4
Depth of each notch5

Report an error on this page

What is an H-shape?

An H-shape is two upright posts, each w wide and h high, joined by a horizontal crossbar t thick that fills the gap g between them; the overall width is a = 2w + g and the crossbar sits at mid-height, so the notches above and below it are (h − t)/2 deep. Every corner is a right angle.

How to use it

Choose what you know: the overall width, or the gap between the posts, together with the height, the post width and the crossbar thickness. 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 (boxes that allow 0 also accept 0); anything else, including text, is refused instead of being read as something else.

Derivation of the formulas

The area is the two posts plus the crossbar between them:

$$A = 2\,w\,h + g\,t,\qquad g = a - 2w$$

The outline is the bounding rectangle plus the inner sides of the two notches (each notch adds twice its depth):

$$P = 2(a + h) + 4\cdot\frac{h - t}{2} = 2a + 4h - 2t$$

Area and perimeter do not depend on the crossbar's height; only the notch depth shown assumes it is centred.

Worked example

The page opens with overall width a = 10, height h = 12, post width w = 3, crossbar thickness t = 2. Then area A = 80; perimeter P = 64; gap between the posts g = 4; depth of each notch = 5 (shown to at most six decimals; see the precision note in the FAQ).

Advertisement
H-shaped polygon with dimension arrows showing overall width 10, height 12, post width 3, crossbar thickness 2, gap 4, and notch depth 5.
In the worked example, an H-shape with overall width 10 and height 12 has post width 3, crossbar thickness 2, gap 4, and notch depth 5.

FAQ

What if the posts touch?

With g = 0 there is no notch left and the shape is the a-by-h rectangle; the page names it and uses its own perimeter 2(a + h).

What if the crossbar is as thick as the height?

The notches vanish and the shape is again a rectangle. A crossbar thicker than the height is refused.

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 precise 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. The page shows up to six decimals; a value too small or too large for that is written out as a plain number instead.

References

Zwillinger, D. (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., 2018

Last updated: