Plane Geometry Formulas

Area and perimeter formulas for the common flat (two-dimensional) shapes. The area formulas are the same ones the Calxy area calculator evaluates, so you can check any result against the sheet.

Area formulas for 2D shapes

Every formula below takes lengths in one consistent unit and returns an area in that unit squared. Heights are perpendicular heights, measured at a right angle to the base, not slanted side lengths.

Area formulas used by the Calxy area calculator
ShapeInputsArea formula
RectangleLength, WidthA = length × width
SquareSideA = side²
Triangle — base and heightBase, Perpendicular heightA = base × height ÷ 2
Triangle — three sidesSide a, Side b, Side cs = (a + b + c)/2; A = √(s(s−a)(s−b)(s−c))
CircleRadiusA = πr²
EllipseSemi-major axis, Semi-minor axisA = πab
TrapezoidParallel side a, Parallel side b, Perpendicular heightA = (a + b)h ÷ 2
ParallelogramBase, Perpendicular heightA = base × height
Parallelogram — two sides and angleSide a, Side b, Angle between sides in degreesA = ab·sin θ; diagonals p, q = √(a² + b² ± 2ab·cos θ)
Trapezoid — four sidesLonger base a, Shorter base b, Leg c, Leg dh from the triangle with sides c, d and a − b (Heron); A = (a + b)h ÷ 2
RhombusDiagonal 1, Diagonal 2A = d₁d₂ ÷ 2
Circular sectorRadius, Angle in degreesA = πr² × angle/360
Regular polygonNumber of sides, Side lengthA = ns² ÷ (4 tan(π/n))
Stadium (rectangle with semicircle ends)End radius, Straight side lengthA = πr² + 2ra; P = 2πr + 2a
Annulus (ring)Outer radius, Inner radiusA = π(R² − r²)

Sources: OpenStax: Contemporary Mathematics §10.6 Area

Perimeter and circumference

Perimeter is the total length around a shape. For a circle it is called the circumference.

Perimeter formulas
ShapePerimeter formulaVariables
SquareP = 4ss = side
RectangleP = 2(l + w)l = length, w = width
TriangleP = a + b + ca, b, c = sides
CircleC = 2πr = πdr = radius, d = diameter
Circular sectorP = 2r + πrθ/180θ = central angle in degrees
Regular polygonP = nsn = number of sides, s = side
ParallelogramP = 2(a + b)a, b = adjacent sides
RhombusP = 4s = 2√(d₁² + d₂²)d₁, d₂ = diagonals
Ellipse (approximation)P ≈ π(a + b)(1 + 3h/(10 + √(4 − 3h))), h = (a − b)²/(a + b)²Ramanujan's approximation; the exact value needs an elliptic integral

Angles and triangles

The interior angles of any triangle add up to 180°, and those of an n-sided polygon add up to (n − 2) × 180°. Each interior angle of a regular polygon is (n − 2) × 180° ÷ n.

For a right triangle with legs a and b and hypotenuse c, the Pythagorean theorem gives a² + b² = c². Heron's formula finds the area of any triangle from its three sides: A = √(s(s − a)(s − b)(s − c)) with s = (a + b + c)/2.

References

Frequently asked questions

What is the difference between area and perimeter?

Perimeter is the distance around a shape, measured in length units such as meters. Area is the amount of surface inside it, measured in square units such as square meters.

Why must the height be perpendicular?

Area formulas for triangles, parallelograms and trapezoids use the height at a right angle to the base. Using a slanted side instead overstates the area unless the shape is a rectangle.