Skip to content
TheCalcUniverse

Area & Perimeter Calculator — Circle, Rectangle, Triangle & More

Calculate area and perimeter for seven shapes: circle, rectangle, square, triangle, trapezoid, parallelogram, and hexagon. Includes interactive diagrams.

✓ Tested formula & cited sources Formula verified 2026-05-15 Runs in your browser — inputs never sent anywhere

See it worked out

Example — Radius 5, Side Length 6, Side Length 5, Length 10:

Area

78.539816

Circumference (Perimeter)

31.415927

Diameter

10

The formula

Circle: A = πr², C = 2πr | Rectangle: A = lw, P = 2(l+w) | Square: A = s², P = 4s | Triangle: A = ½bh | Trapezoid: A = ½(a+b)h | Parallelogram: A = bh | Hexagon: A = (3√3/2)s², P = 6s

r
Radius
l, w
Length & Width
b, h
Base & Height
s
Side Length
a, b
Parallel Bases (Trapezoid)

Worked example — Radius 5, Side Length 6, Side Length 5, Length 10

Area = 78.539816

Full explanation ↓

How Area & Perimeter Works

Circle: A = πr², C = 2πr | Rectangle: A = lw, P = 2(l+w) | Square: A = s², P = 4s | Triangle: A = ½bh | Trapezoid: A = ½(a+b)h | Parallelogram: A = bh | Hexagon: A = (3√3/2)s², P = 6s

Area measures the two-dimensional space enclosed within a shape (in square units), while perimeter measures the total distance around the edge (in linear units). Each shape has its own formula derived from geometry. The circle has the highest area-to-perimeter ratio of any shape — nature exploits this in bubbles, cells, and planets. Rectangles and squares use simple multiplication of dimensions. Triangles are always half the area of a rectangle with the same base and height. Trapezoids average the two parallel bases before multiplying by height. Parallelograms use the same area formula as rectangles (base x height) because the slanted sides do not affect area — the perpendicular height is what matters. Compound shapes combine multiple basic shapes; their total area is the sum of individual areas.

r
RadiusDistance from the center of a circle to its edge. Twice the radius equals the diameter (d = 2r).
l, w
Length & WidthThe two perpendicular dimensions of a rectangle. Area = length x width. The diagonal forms the hypotenuse of a right triangle.
b, h
Base & HeightBase is any side of the shape. Height is the perpendicular distance from the base to the opposite vertex or parallel side.
s
Side LengthFor squares and regular hexagons, all sides are equal. A square has 4 equal sides; a regular hexagon has 6 equal sides.
a, b
Parallel Bases (Trapezoid)In a trapezoid, a and b are the two parallel sides. The area averages them: (a+b)/2 x height.
Each shape has a unique area and perimeter formula based on its dimensions

How to Use

  1. Select a shape tab at the top (Circle, Rectangle, Square, Triangle, Trapezoid, Parallelogram, or Hexagon).
  2. Enter the required dimensions — inputs change dynamically based on the selected shape.
  3. For rectangles, optionally enable Compound Shape mode to add a semicircle (useful for driveway or window calculations).
  4. View the calculated area (highlighted), perimeter, and shape-specific measurements like diagonal or diameter.
  5. Switch between shapes to compare how different geometries with similar dimensions produce different areas and perimeters.

Quick Reference

Circle AreaA = πr²
Circle CircumferenceC = 2πr
Rectangle AreaA = l x w
Rectangle PerimeterP = 2(l + w)
Triangle AreaA = ½bh
Trapezoid AreaA = ½(a+b)h
Hexagon AreaA = (3√3/2)s²
Area UnitsSquare units (ft², m², etc.)

Common Uses

  • Calculating flooring material needed for a room (tile, hardwood, carpet) by finding rectangular area
  • Estimating paint needed for walls by computing rectangular and triangular wall surface areas
  • Planning garden beds and landscaping by calculating areas of irregular shapes broken into rectangles and circles
  • Computing fencing requirements around a property by finding the perimeter of compound rectangular shapes
  • Determining the amount of fabric needed for circular tablecloths, awnings, or curved architectural features

Understanding the Result

The area and perimeter of geometric shapes are among the most fundamental concepts in mathematics, with roots in ancient civilizations. The Egyptians used area calculations around 1650 BCE (Rhind Mathematical Papyrus) to measure farmland along the Nile after annual floods. The Greeks, particularly Euclid (c. 300 BCE), formalized these formulas in his Elements, which remained the standard geometry textbook for over 2,000 years. Archimedes (c. 250 BCE) derived the formula for the area of a circle (A = πr²) using the method of exhaustion — a precursor to integral calculus — by inscribing and circumscribing polygons with increasing numbers of sides. Today, these formulas power everything from construction (calculating flooring, paint, and roofing materials), to agriculture (measuring field sizes and irrigation coverage), to manufacturing (material requirements and waste optimization). Understanding the relationship between area and perimeter is also crucial for optimization problems: for a fixed perimeter, what shape maximizes the enclosed area? The answer is always a circle — which is why bubbles, cells, and planetary orbits are circular. This calculator supports seven common shapes plus compound shapes, making it useful for students learning geometry, homeowners planning renovations, and professionals estimating material quantities.

Worked Examples

Maria wants to tile her rectangular living room floor. The room measures 18 feet long and 14 feet wide. Each tile covers 1 square foot. How many tiles does she need, and how much baseboard (perimeter) should she buy?

shape = rectangle · rectLength = 18 · rectWidth = 14

252 sq ft (area), 64 ft (perimeter), 22.803509 ft (diagonal)

The area is 18 x 14 = 252 sq ft, so Maria needs 252 tiles (plus 10% extra for cuts = about 277 tiles). The perimeter is 2 x (18 + 14) = 64 linear feet of baseboard. Adding the diagonal measurement (22.8 ft) helps verify the room is square.

Ahmed is building a circular patio in his backyard with a diameter of 16 feet. He needs to order concrete (by square footage) and edging stones (by linear feet around the perimeter).

shape = circle · circleRadius = 8

201.06193 sq ft (area), 50.265482 ft (circumference), 16 ft (diameter)

Area = π x 8² = 201.06 sq ft of concrete needed. Circumference = 2π x 8 = 50.27 linear feet of edging stones. With 10% waste factor, order 221 sq ft of concrete and 56 linear feet of edging.

A school is installing a new triangular garden bed with a base of 12 feet along the building wall and a height of 8 feet extending into the courtyard. How much soil and border edging is needed?

shape = triangle · triBase = 12 · triHeight = 8

48 sq ft (area)

Area = ½ x 12 x 8 = 48 sq ft of soil needed (about 1.8 cubic yards at 6" depth). For the border, if the triangle sides are 12 ft (base), 8 ft (height side), and approximately 14.4 ft (hypotenuse), the perimeter is about 34.4 linear feet.

Frequently Asked Questions

What is the difference between area and perimeter?
Area measures the two-dimensional space enclosed within a shape (expressed in square units like ft² or m²). Perimeter measures the total distance around the outer edge of a shape (expressed in linear units like feet or meters). Think of area as the amount of carpet needed for a room and perimeter as the amount of baseboard trim around the edges.
Why does a circle enclose the most area for a given perimeter?
This is known as the isoperimetric inequality — among all closed curves with a given perimeter, the circle encloses the maximum area. This is why bubbles, water droplets, and planets are spherical: nature minimizes surface energy by maximizing volume-to-surface-area ratio. For a fixed perimeter P, a circle encloses area P²/(4π) while a square encloses only P²/16 — the circle gives about 27% more area.
How do I calculate the area of an irregular shape?
For irregular shapes, use the decomposition method: break the shape into regular geometric components (rectangles, triangles, circles, etc.), calculate each area separately, and sum them. This calculator supports compound shapes (rectangle + semicircle) for common applications like driveways and arched windows. For highly irregular shapes, use grid counting, the trapezoidal rule, or survey-grade planimeters.
Why is the area of a triangle half the area of a rectangle?
Any triangle can be duplicated and rotated to form a parallelogram with the same base and height. A parallelogram can be transformed into a rectangle with the same base and height. Since two copies of the triangle make the rectangle, one triangle is exactly half. This elegant geometric proof works for all triangle types — acute, right, or obtuse.
How do I convert between different area units?
Common area conversions: 1 sq ft = 144 sq in, 1 sq yd = 9 sq ft, 1 acre = 43,560 sq ft, 1 sq meter = 10.764 sq ft, 1 hectare = 10,000 sq meters = 2.47 acres. Always convert all dimensions to the same unit before calculating area, then convert the result.
How are area and perimeter formulas used in construction?
Contractors use area for estimating materials needed (flooring, drywall, roofing, paint, concrete). Perimeter is used for estimating trim materials (baseboards, crown molding, gutters, fencing). In practice, contractors add 5-15% waste factor to area estimates and round up perimeter measurements to the nearest standard material length (e.g., 8 ft or 12 ft boards).
What happens to area when you double the dimensions?
When you double all linear dimensions, area quadruples (2² = 4x). For example, doubling a 10x10 ft room (100 sq ft) to 20x20 ft gives 400 sq ft. Perimeter only doubles (from 40 ft to 80 ft). This square-cube relationship is fundamental: area scales with the square of linear dimensions, which is why small measurement errors in large projects have outsized consequences.

Pro Tips

  • For any rectangle, the diagonal always equals √(l² + w²). Use this to verify if a room or frame is perfectly square — measure both diagonals; if they are equal, the corners are 90 degrees.
  • When calculating materials, always add 10% waste factor to area measurements for cuts, mistakes, and irregular edges. This is especially important for tile, flooring, and fabric projects.
  • The circle gives you the most area for the least perimeter. If you are fencing a garden, a circular design uses about 12% less fencing than a square enclosing the same area.
  • For compound shapes on a calculator, break them into simple shapes (rectangles + semicircles + triangles), calculate each separately, and add the results. This is how professional estimators handle irregular floor plans.
  • The trapezoid area formula A = ½(a+b)h is particularly useful for calculating the area of irregular lots where the front and back property lines are parallel but different lengths.
  • When you know the area but not a dimension, work backwards: for a rectangle, width = area / length. For a circle, radius = √(area / π). This is useful when designing spaces with fixed area requirements.

Limitations to Know

  • This calculator handles only regular convex shapes and one compound shape (rectangle + semicircle). Irregular polygons, concave shapes, or shapes with curved edges beyond circles and semicircles are not supported. Use surveying tools or CAD software for complex irregular boundaries.
  • For 3D shapes (spheres, cubes, cylinders), use the Volume & Surface Area calculator instead. This calculator is strictly for 2D area and perimeter computations.
  • Measurements assume perfect geometric shapes with straight lines and uniform curves. Real-world objects may have non-parallel sides, irregular edges, or uneven surfaces that require professional surveying techniques for accurate measurements.
  • The compound shape option is limited to rectangles with semicircles. For more complex compound shapes, calculate each component separately and sum the results manually.
Was this calculator helpful?
Cite this calculator

TheCalcUniverse. "Area & Perimeter Calculator — Circle, Rectangle, Triangle & More." TheCalcUniverse, 2026, https://thecalcuniverse.com/math/area-perimeter-calculator/. Accessed July 24, 2026.

Embed this calculator on your site

Free to embed. Paste this into any HTML page — it stays up to date automatically.

Open embed ↗

You may also like

Guides that use this calculator