Formulas, examples and FAQ for each shape
Every shape has its own page with the formulas explained, a worked example and answers to common questions:
How to use the 2D shape calculator
Pick a shape (for a triangle or trapezoid, also its type), enter its dimensions and choose a unit. The area and perimeter update as you type, together with extra values such as diagonals, heights, angles and the radii of the inscribed and circumscribed circles. The drawing changes shape to match your numbers. Open Show steps to see each formula with your numbers filled in.
2D shape formulas
| Shape | Area | Perimeter |
|---|---|---|
| Square | A = a² | P = 4 · a |
| Rectangle | A = a · b | P = 2 · (a + b) |
| Triangle (base and height) | A = a · ha / 2 | P = a + b + c |
| Triangle (three sides) | A = √(s · (s − a) · (s − b) · (s − c)) | P = 2 · s |
| Right triangle | A = a · b / 2 | P = a + b + √(a² + b²) |
| Equilateral triangle | A = √3/4 · a² | P = 3 · a |
| Parallelogram | A = a · ha | P = 2 · (a + b) |
| Rhombus | A = d₁ · d₂ / 2 | P = 4 · a |
| Trapezoid | A = (a + b) / 2 · h | P = a + b + c + d |
| Kite | A = d₁ · d₂ / 2 | P = 2 · (a + b) |
| Regular polygon | A = n · a² / (4 · tan(180°/n)) | P = n · a |
| Circle | A = π · r² | C = 2 · π · r |
| Circular sector | A = π · r² · α / 360° | P = 2 · r + π · r · α / 180° |
Here a, b, c and d are side lengths, h a height (ha is the height onto side a), r the radius, d₁ and d₂ the diagonals of a rhombus or kite, n the number of sides of a regular polygon and α the central angle of a sector. For Heron’s formula, s is half the perimeter. Area is in square units (cm², m² …) and perimeter in ordinary length units (cm, m …).