Area and perimeter formulas
Area measures the surface inside a shape, perimeter the length of its edge. Every formula below needs all lengths in the same unit. The area then comes out in that unit squared and the perimeter in the unit itself.
| Shape | Area | Perimeter |
|---|---|---|
| Square | A = a² | P = 4a |
| Rectangle | A = l × w | P = 2(l + w) |
| Triangle | A = b × h ÷ 2 | Needs all three sides |
| Triangle (3 sides) | A = √(s(s − a)(s − b)(s − c)), s = (a + b + c) ÷ 2 | P = a + b + c |
| Circle | A = π r² | C = 2π r |
| Ellipse | A = π a b | P = 4a E(k), computed numerically |
| Trapezoid | A = (a + b) × h ÷ 2 | P = a + b + c + d |
| Parallelogram | A = b × h | P = 2(b + s) |
| Rhombus | A = p × q ÷ 2 | P = 4 × √((p ÷ 2)² + (q ÷ 2)²) |
| Regular polygon | A = n s² ÷ (4 tan(180° ÷ n)) | P = n × s |
| Circle sector | A = θ ÷ 360° × π r² | P = 2r + arc, arc = θ ÷ 360° × 2π r |
| Annulus (ring) | A = π (R² − r²) | Edges = 2π R + 2π r |
Worked example: a trapezoid with parallel sides of 10 ft and 6 ft and a height of 4 ft has an area of (10 + 6) × 4 ÷ 2 = 32 ft². It is the same as a rectangle as wide as the average of the two bases, 8 ft, and as tall as the trapezoid. A circle with a radius of 5 ft covers π × 5² ≈ 78.5398 ft², which is about 7.2966 m².
For the trapezoid and the parallelogram, the height is the straight distance between the parallel sides, not the length of a slanted side. Enter the slanted sides as well if you also want the perimeter. For a triangle with three known sides and no height, pick Triangle (3 sides). To find angles, heights and every other part of a triangle, use the triangle calculator.
A rhombus has four equal sides, and its two diagonals cross at a right angle, so it splits into four right triangles: the area is half the product of the diagonals, and each side is √((p ÷ 2)² + (q ÷ 2)²). A regular polygon with n equal sides of length s splits into n identical triangles that meet in the center. Each has the base s and, as its height, the apothem s ÷ (2 tan(180° ÷ n)), the distance from the center to the middle of a side. For a hexagon with 4 ft sides that gives 41.5692 ft².
Circles, sectors and rings
A circle's area is π r², where r is the radius, half the diameter. A sector is a slice of the circle: with a central angle θ in degrees it covers θ ÷ 360 of the whole area, and its curved edge, the arc, is θ ÷ 360 of the circumference. A quarter circle with r = 2 is a 90° sector of area π ≈ 3.1416. An annulus is the ring between two circles with the same center: the big circle's area minus the small one's, π (R² − r²).
An ellipse with semi-axes a and b has the area π a b. Its perimeter has no formula with only roots and powers. The NIST Digital Library of Mathematical Functions, §19.9 writes it as 4a E(k), with the complete elliptic integral E and k² = 1 − b² ÷ a², and lists approximations. The calculator does not approximate. It adds up the arc length numerically until the result stops changing, so for a = 6 and b = 4 you get 31.7309.
Square units and exact conversions
An area unit is a length unit squared, so conversion factors get squared too. One foot is exactly 0.3048 m, which makes one square foot 0.3048 × 0.3048 = 0.09290304 m², not 0.3048. The inch, foot, yard and mile are defined exactly in meters in NIST Special Publication 811, Appendix B.8, and NIST Handbook 44, Appendix C defines the acre as 43,560 square feet. The calculator squares these exact factors, so it shows every result in every unit without rounding in between:
| Unit | Exact value |
|---|---|
| 1 square inch | 6.4516 cm² |
| 1 square foot | 144 in² = 0.09290304 m² |
| 1 square yard | 9 ft² = 0.83612736 m² |
| 1 acre | 43,560 ft² = 4,046.8564224 m² |
| 1 square mile | 640 acres = 2.589988110336 km² |
| 1 hectare | 10,000 m² = 0.01 km² |
The hectare is 10,000 m² (NIST SP 811, Appendix B.9). The acre in the table uses the international foot. Handbook 44 notes that the older U.S. survey foot should be avoided since the end of 2022, except for historic and legacy uses.
Area calculator or area converter?
This calculator starts from measurements: you give it lengths, it works out the area. If you already have an area, say 1,200 square feet, and only want it in another unit, the area converter is quicker. For floor plans with several rooms and a material cost, the square footage calculator adds them up, and the volume calculator takes the next step from flat shapes to solids.
Common mistakes
- Diameter instead of radius: squaring the diameter gives an area four times too large. Halve it first.
- Mixed units: a room measured as 12 ft by 30 in is 12 × 2.5 = 30 ft², not 12 × 30. Convert first, or measure everything in one unit.
- Slanted side instead of height: for triangles, trapezoids and parallelograms the height is at a right angle to the base.
- Area units for a length: perimeter is a length. A 10 by 10 ft square has 100 ft² of area but only 40 ft of edge.
How to use the area calculator
- 1Pick the shape. The fields change to the measurements that shape needs, and the drawing shows what each letter means.
- 2Choose the unit you measured in and type the measurements. Decimals with a point or a comma both work.
- 3Read the area and the perimeter, check the formula with your numbers, and find the area in other units in the table.
- 4Copy the result, or copy a link that opens the calculator with your shape and values.
Sources
- NIST Special Publication 811, Appendix B.8: factors for units listed alphabetically: inch, foot, yard and international mile in meters, exact.
- NIST Special Publication 811, Appendix B.9: factors for units listed by kind of quantity: hectare = 10,000 m².
- NIST Handbook 44 (2026), Appendix C: general tables of units of measurement: acre = 43,560 ft², square mile = 640 acres, the international foot.
- NIST Digital Library of Mathematical Functions, §19.9: perimeter of an ellipse as an elliptic integral.
Guides on this topic
- Acres, Hectares, Square Feet and Square Metres Compared
- How Much Lawn Fertilizer: Pounds of Nitrogen per 1,000 sq ft
Frequently asked questions
How do I calculate the area of a shape?
Pick the formula for the shape and use the same unit for every length. A rectangle is length × width, a triangle is base × height ÷ 2, a circle is π × radius². The answer comes out in square units: feet give square feet, meters give square meters.
What is the difference between area and perimeter?
Area is the surface inside a shape, measured in square units like ft² or m². Perimeter is the length of its outline, measured in plain units like ft or m. A 4 by 5 rectangle has an area of 20 square units and a perimeter of 18 units.
Is the height of a triangle the same as its side?
Only in a right triangle. The height is the straight distance from the base to the opposite corner, at a right angle to the base. For a slanted triangle, the side is longer than the height. If you know all three sides instead, use the Triangle (3 sides) option, which uses Heron's formula.
How do I find the area of a circle from the diameter?
Halve the diameter to get the radius, then use π × r². A circle 10 inches across has r = 5 inches and an area of about 78.54 square inches. Squaring the diameter by mistake gives an area four times too large.
Why can I not just multiply by 3.28 to turn square meters into square feet?
Because both directions of the area change. One meter is about 3.28 feet, so one square meter is about 3.28 × 3.28 ≈ 10.76 square feet. The calculator squares the exact length factor for every unit, so the results in the table are consistent.
What is the area of an irregular shape, like an L-shaped room?
Split it into rectangles, triangles or other simple shapes, find each area and add them up. An L-shaped room is two rectangles. For a room with a cutout, subtract the cutout from the larger rectangle.