Audited 26 May 2026·Last updated 27 Jul 2026·8 citations·Tier 1·0 uses

Area & Perimeter Calculator

Free area and perimeter calculator for rectangles, squares, triangles, parallelograms, trapezoids, and circles — with formulas, worked steps, and citations.

Area & Perimeter Calculator

Shape
Used by rectangle (length), right triangle (base), parallelogram (base), and trapezoid (longer parallel side, base₁). Any unit — cm, m, in, ft — as long as every dimension uses the same one.
units
Used by rectangle (width), right triangle (height, i.e. the leg perpendicular to the base), parallelogram (perpendicular height — not the slant side), and trapezoid (perpendicular distance between the two parallel sides).
units
The length of one side of the square. All four sides are equal, so a single value is enough.
units
The second parallel side of the trapezoid (the shorter one, usually). Together with the Length input (base₁) and the perpendicular Height, this fully determines the trapezoid's area.
units
The distance from the centre of the circle to its edge. For a circle, perimeter means circumference (2πr) and area is πr².
units
Area
40
The two-dimensional extent of the shape — how much flat surface it covers. Reported in the square of whatever unit you typed (sq cm, sq m, sq in, sq ft, etc.). Use it for paint, flooring, tile, fabric, land, or any 'how much surface' question.
Perimeter
26units

Background.

The Quanta area and perimeter calculator computes both numbers — the area enclosed inside a shape and the length around its edge — for the six most common two-dimensional figures in geometry: rectangle, square, right triangle, parallelogram, trapezoid, and circle. Pick a shape from the dropdown, type in the dimensions it needs, and read off the two answers instantly.

Although these formulas are taught side by side in every primary-school geometry class, area and perimeter measure fundamentally different things, and confusing them is one of the most common sources of error in construction, gardening, real-estate, and design. Area is a two-dimensional quantity — it tells you how much flat surface a shape covers, in square units (square metres, square feet, square centimetres). Perimeter is a one-dimensional quantity — it tells you how long the boundary line is, measured in plain linear units (metres, feet, centimetres).

A 10 m × 1 m driveway has a perimeter of 22 m and an area of 10 m². A 4 m × 2.5 m driveway also has an area of 10 m², but a perimeter of 13 m — almost half as much edge for the same surface. Two shapes can have the same area and wildly different perimeters, or the same perimeter and wildly different areas.

The classical statement of that fact is the isoperimetric inequality (Steiner, 1838): of all closed plane curves with a given perimeter P, the circle is the one that encloses the largest area, A ≤ P² ÷ (4π). Equivalently, of all shapes with a given area, the circle has the shortest perimeter. Every other shape — square, rectangle, triangle, ellipse, the irregular plot of land at the back of your house — pays a perimeter premium for the same enclosed area. This is why bubbles are round, why animal cells are round, why insulated water tanks are cylindrical, and why a long thin rectangle is always a bad shape for a fenced yard if you want to minimise fencing cost per square metre of grass.

Below the calculator we set out each of the six formulas with its derivation, walk through a worked example with a 3-4-5 right triangle (the smallest Pythagorean triple — A = 6, P = 12), state explicitly the two simplifying assumptions the parallelogram and trapezoid perimeters use (the formula treats the slant sides as if they were vertical, which is exact for rectangles and right trapezoids and an approximation otherwise), answer the questions people search for most around these formulas — including the isoperimetric one — and cite the primary sources: Euclid's Elements Book I, NIST's Digital Library of Mathematical Functions, Steiner's symmetrisation argument, MathWorld, and the CRC Standard Mathematical Tables.

What is area & perimeter calculator?

Area is the measure of a two-dimensional region — the number of unit squares that fit inside the shape. It is always reported in square units: square metres (m²), square feet (ft²), square inches (in²), square centimetres (cm²), hectares, acres, and so on. Perimeter is the measure of a one-dimensional boundary — the total length of the closed curve that bounds the shape. It is reported in plain linear units (m, ft, in, cm). For a circle the perimeter has its own name, circumference, but it is the same idea — once around the edge. The six shapes this calculator handles cover the great majority of everyday geometry problems, and each has a closed-form area and perimeter formula that has been known since antiquity. Rectangle: A = L × W; P = 2(L + W). Square: A = s²; P = 4s. Right triangle: A = ½ × base × height; P = base + height + √(base² + height²), where the square-root term is the hypotenuse via the Pythagorean theorem. Parallelogram: A = base × perpendicular height; P = 2(base + slant side) — and because this calculator only takes base and height as inputs, the perimeter is reported using the rectangle approximation P ≈ 2(base + height), which is exact only when the parallelogram is a rectangle and otherwise a lower bound. Trapezoid: A = ½ × (base₁ + base₂) × height; P = base₁ + base₂ + leg₁ + leg₂ — and again, because only the two bases and the perpendicular height are taken as inputs, the perimeter is reported using the right-trapezoid approximation P ≈ base₁ + base₂ + 2 × height, which is exact only when both legs are perpendicular to the bases. Circle: A = πr²; P (circumference) = 2πr. These six formulas, between them, will solve every plane-area problem a homeowner, builder, designer, or student is likely to encounter.

How to use this calculator.

  1. Choose the shape from the dropdown. The calculator supports six: Rectangle, Square, Right Triangle, Parallelogram, Trapezoid, and Circle. Each shape uses a different subset of the input fields, and the irrelevant fields are simply ignored.
  2. For a Rectangle, type Length (the longer side) and Width (the shorter side). For a Square, type the Side length. For a Right Triangle, type the Length (base) and Width (height — the leg perpendicular to the base). The hypotenuse is computed automatically using the Pythagorean theorem, so you do not need to enter it.
  3. For a Parallelogram, type the Length (base) and Width (perpendicular height, not the slant side). The area is exact; the perimeter uses the rectangle approximation P ≈ 2(base + height) because the slant length is not requested as a separate input — see the formula section below for the assumption.
  4. For a Trapezoid, type the Length (base₁, the longer parallel side), Base 2 (base₂, the shorter parallel side), and Width (the perpendicular distance between the two parallel sides). The area is exact. The perimeter uses the right-trapezoid approximation P ≈ base₁ + base₂ + 2 × height — exact only when both legs are perpendicular to the bases, otherwise a lower bound.
  5. For a Circle, type the Radius. The calculator returns the area (πr²) and the circumference (2πr) — the circle's 'perimeter'. If you only know the diameter, divide by 2 first. If you only know the circumference, divide by 2π ≈ 6.2832.
  6. Read the two outputs. Area is the primary result, reported in 'sq units' — apply your own square label (sq m, sq ft, sq in, etc.). Perimeter is the secondary result, reported in the same linear unit you typed.
  7. Keep units consistent. The calculator does not convert between units — if you enter the length in metres and the width in centimetres, the answer is meaningless. Pick one unit (everything in m, or everything in cm, or everything in ft) and stick with it for every field.

The formula.

A = L × W

Six shapes, six pairs of formulas. Throughout, units must be consistent — area comes out in the square of whatever linear unit you typed.

RECTANGLE. A = L × W (length times width — the count of unit squares that tile the inside). P = 2(L + W) (two long sides plus two short sides). The formulas are essentially axiomatic in Euclidean geometry — they are the basis on which every other planar area is defined.

SQUARE. A = s² (side squared — a square is a rectangle with L = W = s). P = 4s. A square is the rectangle of given perimeter that encloses the maximum area, and the rectangle of given area that has the minimum perimeter — the rectangular case of the isoperimetric inequality.

RIGHT TRIANGLE. A = ½ × base × height — a right triangle is exactly half of a rectangle of the same base and height, sliced along the diagonal. P = base + height + hypotenuse, where hypotenuse = √(base² + height²) by the Pythagorean theorem (Euclid, Elements, Book I, Proposition 47). The famous 3-4-5 triangle has area ½ × 3 × 4 = 6 and perimeter 3 + 4 + 5 = 12.

PARALLELOGRAM. A = base × perpendicular height. This is exact, and is the same arithmetic as a rectangle — geometrically, you can slice a triangular wedge off one end of a parallelogram and slide it to the other end to turn it into a rectangle of the same base and same perpendicular height. P, however, is not 2(base + height) for a generic parallelogram — the true perimeter is 2(base + slant), where the slant is the length of the non-base side, related to base and height by slant ≥ height (with equality only when the parallelogram is a rectangle). ASSUMPTION USED BY THIS CALCULATOR: because the slant length is not requested as a separate input, the engine reports P = 2(base + height) — the rectangle case, which is exact for rectangles and a lower bound for every other parallelogram. If you need the exact perimeter of a non-rectangular parallelogram, compute the slant separately (slant² = height² + offset², where offset is the horizontal shear of the top side relative to the bottom) and add 2 × slant + 2 × base by hand.

TRAPEZOID. A = ½ × (base₁ + base₂) × perpendicular height. This is exact — geometrically, a trapezoid has 'average base × height' as its area, where the average is (base₁ + base₂) / 2. P, however, equals base₁ + base₂ + leg₁ + leg₂ in general, and the two legs are not equal to the height unless the trapezoid is a right trapezoid (both legs perpendicular to the bases). ASSUMPTION USED BY THIS CALCULATOR: because only the two bases and the perpendicular height are taken as inputs, the engine reports P ≈ base₁ + base₂ + 2 × height — the right-trapezoid case. This is exact when both legs are vertical and a lower bound otherwise. For an isosceles or general trapezoid where you know the leg length, compute the true perimeter as base₁ + base₂ + leg₁ + leg₂ by hand.

CIRCLE. A = πr² (Archimedes, Measurement of a Circle, ~250 BCE). P (circumference) = 2πr — π is defined as the ratio of any circle's circumference to its diameter, so C = π × d = 2πr by direct substitution. The calculator uses JavaScript's Math.PI, which is accurate to roughly 15 significant decimal digits.

A worked example.

Example

Select Right Triangle as the shape. Enter Length = 3 (the base) and Width = 4 (the height). The calculator returns Area = 6 sq units and Perimeter = 12 units. This is the famous 3-4-5 right triangle — the smallest member of the family of Pythagorean triples (integer-sided right triangles), known to the Babylonians on clay tablet Plimpton 322 around 1800 BCE and proved formally by Euclid in Elements Book I, Proposition 47. Step by step: Area = ½ × base × height = ½ × 3 × 4 = 6 sq units (a right triangle is half of a rectangle, so its area is half of 3 × 4 = 12). Hypotenuse = √(3² + 4²) = √(9 + 16) = √25 = 5 — an integer, which is what makes 3-4-5 a Pythagorean triple. Perimeter = base + height + hypotenuse = 3 + 4 + 5 = 12 units. Read in concrete terms: if you are building a right-angled garden bed with legs of 3 m and 4 m, you will have 6 m² of growing area and need 12 m of edging (3 + 4 + 5) — and the long edge, the diagonal, will be exactly 5 m. The same arithmetic scales: a 6-8-10 triangle has area 24 and perimeter 24; a 9-12-15 triangle has area 54 and perimeter 36; every 3k-4k-5k triangle is a right triangle with area 6k² and perimeter 12k.

shapetriangle
length3
width4

Frequently asked questions.

What is the difference between area and perimeter?
Area measures the surface inside a shape — a two-dimensional quantity, reported in square units (m², ft², in², cm²). Perimeter measures the length of the boundary line around the outside — a one-dimensional quantity, reported in plain linear units (m, ft, in, cm). They are not interchangeable. A 10 m × 1 m driveway and a 4 m × 2.5 m driveway both have an area of 10 m², but their perimeters are 22 m and 13 m respectively — almost a 2:1 difference for the same surface. Use area for surface questions (paint, tile, sod, concrete); use perimeter for edge questions (fencing, trim, weatherstripping).
Can two shapes have the same area but different perimeters?
Yes, and the difference can be arbitrarily large. A 1 × 100 rectangle has area 100 and perimeter 202. A 10 × 10 square has area 100 and perimeter 40. A circle with area 100 has radius √(100/π) ≈ 5.64 and perimeter 2π × 5.64 ≈ 35.45 — the smallest perimeter of any shape with area 100. This is the content of the isoperimetric inequality: among all plane shapes of a given area, the circle has the shortest perimeter; equivalently, among shapes of a given perimeter, the circle encloses the largest area. The inequality is P² ≥ 4π × A, with equality only for the circle.
What is the isoperimetric inequality?
The isoperimetric inequality states that for any closed plane curve of perimeter P enclosing area A, the relation 4π × A ≤ P² always holds, with equality only when the curve is a circle. It was conjectured in antiquity (the legendary 'Dido's problem' from Virgil's Aeneid asks for the maximum area enclosable with a given length of bullock's hide), proved partially by Jacob Steiner in 1838 via his symmetrisation argument — repeatedly reflecting the shape across chord-perpendicular lines preserves area but never increases perimeter, and the limit is the circle — and rigorously by Edmund Husserl, Hermann Schwarz, and Constantin Carathéodory in the late 19th century. It is the reason bubbles are spherical, biological cells tend to spherical, and a square fence encloses more land than a long thin rectangle of the same fence length.
Is the perimeter of a circle the same as the circumference?
Yes — circumference is just the special name for the perimeter of a circle. The formula is C = 2πr, where r is the radius and π ≈ 3.14159. This calculator labels it 'perimeter' to keep the output schema uniform across all six shapes, but the value is the standard circumference. If you only know the diameter, the formula becomes C = π × d. If you only know the area, recover the radius first via r = √(A ÷ π), then apply C = 2πr.
How do I find the perimeter of a right triangle?
Add the three side lengths together: P = leg₁ + leg₂ + hypotenuse. If you only know the two legs (base and height), compute the hypotenuse first via the Pythagorean theorem: hypotenuse = √(base² + height²). For a 3-4-5 right triangle: P = 3 + 4 + √(9 + 16) = 3 + 4 + 5 = 12. This calculator does the hypotenuse step internally, so you only enter the base and height. The same principle applies to non-right triangles using the law of cosines, but those are not handled here — this calculator covers right triangles only.
Why does the parallelogram perimeter formula use 2(base + height) instead of 2(base + slant)?
Because this calculator only requests two inputs for a parallelogram — base and perpendicular height — and the slant side length is not derivable from those two alone (a parallelogram with a given base and height can be sheared horizontally by any amount, making the slant arbitrarily long while keeping the area unchanged). The formula used, P = 2(base + height), is the rectangle case — the minimum possible perimeter for any parallelogram with that base and height. It is exact when the parallelogram is a rectangle and a lower bound otherwise. If you need the true perimeter of a sheared parallelogram, compute the slant length separately as slant = √(height² + offset²), where offset is the horizontal shift of the top side relative to the bottom, and add 2 × slant + 2 × base.
Why does the trapezoid perimeter formula use base1 + base2 + 2 × height instead of summing both legs?
For the same reason as the parallelogram: this calculator only takes the two parallel bases and the perpendicular height as inputs, and the two leg lengths cannot be recovered from those three numbers alone (a trapezoid with given bases and height can have its top side shifted left or right, making one leg longer and the other shorter). The formula used, P ≈ base₁ + base₂ + 2 × height, is the right-trapezoid case — both legs vertical, equal to the height. It is exact when the trapezoid is a right trapezoid (or rectangle) and a lower bound otherwise. If you need the true perimeter of an isosceles or general trapezoid, measure the leg lengths directly and add them: P = base₁ + base₂ + leg₁ + leg₂.
What units should I use for area and perimeter?
Any unit you like — the calculator does not assign a specific unit to its results, just reports them in 'sq units' (for area) and 'units' (for perimeter) based on whatever you typed. The one rule is consistency: every dimension you enter must use the same linear unit. If the length is in metres, every other field must also be in metres, and the area comes out in square metres. If everything is in feet, the area is in square feet. Mixing — for example, length in metres and width in centimetres — produces a meaningless result. To convert square units afterwards: 1 m² = 10,000 cm² = 10.764 ft²; 1 ft² = 144 in² = 0.0929 m²; 1 acre = 4,047 m² = 43,560 ft²; 1 hectare = 10,000 m² = 2.471 acres.
How is the area of a trapezoid derived?
A trapezoid is two parallel sides (base₁ and base₂) connected by two non-parallel legs. You can cut a trapezoid in half along the line midway between the two bases and rotate one half 180 degrees — the result is a parallelogram with base equal to base₁ + base₂ and height equal to half the original height. Its area equals base × height = (base₁ + base₂) × (h ÷ 2). Equivalently, the trapezoid's area is the 'average base' (base₁ + base₂) ÷ 2 times the perpendicular height — A = ½ × (base₁ + base₂) × h. The formula collapses to a rectangle's when base₁ = base₂ and to a triangle's when base₂ = 0.
What is the smallest perimeter that encloses a given area?
For unrestricted shapes: a circle. Specifically, the minimum perimeter is 2 × √(π × A), achieved when the shape is a circle of radius √(A ÷ π). For an area of 100 sq units, the minimum perimeter is 2 × √(π × 100) ≈ 35.45 units, which corresponds to a circle of radius ≈ 5.64. If you are restricted to rectangles, the minimum perimeter is achieved by a square (perimeter 4√A — for A = 100, that is 40). If you are restricted to triangles, the minimum is the equilateral triangle. The general principle — that maximum symmetry gives minimum perimeter for a given area — is the geometric content of the isoperimetric inequality.

References& sources.

  1. [1]Euclid, Elements, Book I, Propositions 35–47 (~300 BCE) — the foundational propositions on plane rectilinear figures, including parallelogram area equivalence (Prop 35), triangle area equivalence (Prop 37), and the Pythagorean theorem (Prop 47), which underpins the right-triangle hypotenuse used in the perimeter formula. David E. Joyce annotated edition, Clark University.
  2. [2]Archimedes, Measurement of a Circle (~250 BCE) — the original rigorous proof that the area of a circle is πr² and the circumference is 2πr, plus the first rigorous bounds on π between 223/71 and 22/7. Translation by T. L. Heath, The Works of Archimedes (Cambridge University Press, 1897).
  3. [3]Steiner, Jacob. 'Einfache Beweise der isoperimetrischen Hauptsätze' (1838) — Steiner's symmetrisation argument for the isoperimetric inequality, showing that among all plane shapes of a given perimeter, the circle encloses the largest area. Reprinted in Gesammelte Werke, Vol. 2 (Reimer, 1882).
  4. [4]NIST Digital Library of Mathematical Functions, §4.14 (Trigonometric Functions) and §1.6 (Vectors and Vector-Valued Functions) — reference definitions of π and the circle/disc area integrals used in the formula derivations.
  5. [5]Weisstein, Eric W. 'Isoperimetric Inequality.' From MathWorld — A Wolfram Web Resource. Comprehensive modern reference for the inequality P² ≥ 4πA, including history (Dido's problem, Steiner symmetrisation) and proofs.
  6. [6]Weisstein, Eric W. 'Trapezoid.' From MathWorld — A Wolfram Web Resource. Standard reference for the trapezoid area formula A = ½(b₁ + b₂)h and the distinction between general, isosceles, and right trapezoids relevant to the perimeter approximation used here.
  7. [7]Weisstein, Eric W. 'Parallelogram.' From MathWorld — A Wolfram Web Resource. Reference for A = bh exactness and the slant-side dependence of the perimeter formula, which motivates the rectangle approximation used in this calculator.
  8. [8]Zwillinger, Daniel (ed.). CRC Standard Mathematical Tables and Formulae, 33rd edition. CRC Press, 2018 — Chapter 4 (Geometry) contains the canonical area and perimeter formulas for all six shapes covered by this calculator, with cross-references to derivations.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 313 calculators remain free
  • No billing is enabled
Coming soon