Skip to content

Area Calculator

Eight common shapes in one widget — including Heron's-formula triangles and regular polygons.

Eight common 2D shapes are covered: rectangle, square, circle, triangle (either base × height or all three sides via Heron’s formula), trapezoid, ellipse, and regular polygon. Inputs are unitless — the output is in the square of whatever you typed in. Use feet in to get square feet, meters in to get square meters.

Area
60.0000

Output is in the square of whatever unit you typed in (e.g. meters in → square meters out, inches in → square inches out).

How to use

  1. Pick the shape

    The dropdown swaps the input fields to match. Two triangle modes are offered for the two common ways triangles are described (base/height vs three sides).

  2. Enter the measurements

    All in the same linear unit. The widget doesn't care which unit — just that the inputs match.

  3. Read the area

    The result is in the square of your input unit. 5 m × 3 m = 15 m²; 60 in × 40 in = 2400 in².

Formula reference

ShapeFormula
RectangleA = w × h
SquareA = s²
CircleA = π × r²
Triangle (base/h)A = ½ × b × h
Triangle (3 sides)A = √(s(s−a)(s−b)(s−c)), s = (a+b+c)/2
TrapezoidA = ½ × (a + b) × h
EllipseA = π × a × b
Regular n-gonA = (n × s²) / (4 × tan(π/n))

Frequently asked questions

What unit does the result use?
Whatever you typed in, squared. Meters in → square meters out. The widget intentionally doesn't pick a unit for you — most use cases involve a specific unit (sqft for flooring, m² for paint, ha for land), and prescribing one would force conversions in your head.
Why does the triangle-with-three-sides mode return 0 sometimes?
Because the three values don't form a valid triangle. The triangle inequality requires any side to be shorter than the sum of the other two; otherwise no closed triangle exists and Heron's formula returns a negative under the square root, which the widget surfaces as 0.
What about 3D shapes?
Not yet — this calculator is 2D only. Volume calculators (sphere, cylinder, cone, rectangular prism) are next on the math runway.
Does the calculator store my measurements?
No. Every computation runs in your browser.

About

Why Heron's formula?

When you have all three sides of a triangle but not the height, Heron's formula is the most direct way to the area: no trigonometry, no need to pick a base. It's been around since Hero of Alexandria in the 1st century — older than most things in the modern math curriculum.

Regular polygon formula

Derived by splitting the n-gon into n isoceles triangles with apex at the center; each has area s² / (4·tan(π/n)). Limit as n→∞ recovers the circle area π·r² where r is the apothem.