CalcMathic

Geometry and statistics

Area calculator

Choose a shape, enter its measurements, and get the area with the formula written out. Where the perimeter can be found, it is shown too.

Press Calculate. The answer and every step of the working will show here.

How it works

Area measures the flat space inside a shape, counted in squares. A rectangle that is 8 units long and 5 units wide holds 8 rows of 5 squares, so its area is 40 square units. Every other formula is built from that idea.

A triangle is half of a rectangle with the same base and height, so its area is one half times base times height. A parallelogram can be cut and slid into a rectangle, so its area is base times height, where height means the straight-up distance and not the slanted side. A trapezoid has two parallel sides. Its area is the average of those two sides times the height. A circle's area is pi times the radius squared.

Perimeter is the distance around a shape, so you add the lengths of the sides. For a rectangle that is twice the length plus the width. For a circle the perimeter has a special name, circumference, and equals 2 times pi times the radius. A triangle, trapezoid or parallelogram needs its slanted sides, which area does not use, so those are optional boxes here. Leave them empty and you still get the area.

Area is always in square units, such as square inches, and perimeter is in plain units such as inches.

The formula

  • Rectangle: A = l × w, P = 2(l + w)
  • Triangle: A = ½ × b × h
  • Parallelogram: A = b × h, P = 2(b + s)
  • Trapezoid: A = ½ × (a + b) × h
  • Circle: A = πr², C = 2πr

Worked example

A trapezoid has parallel sides of 6 and 10 and a height of 4. The average of the parallel sides is (6 + 10) ÷ 2 = 8. Multiply by the height: 8 × 4 = 32 square units. If the two slanted sides are each 5, the perimeter is 6 + 10 + 5 + 5 = 26.

More examples

A rectangle. A poster is 8 inches by 5 inches. The area is 8 × 5 = 40 square inches, and the perimeter is 2 × (8 + 5) = 26 inches.

A triangle. A triangle with base 10 and height 6 has area ½ × 10 × 6 = 30. If the other two sides are 7 and 8, the perimeter is 10 + 7 + 8 = 25.

A circle. A circular table has a radius of 4 feet. The area is π × 16, about 50.2655 square feet, and the circumference is 2 × π × 4, about 25.1327 feet.

A parallelogram. Base 9, height 4, slanted side 5. The area is 9 × 4 = 36, and the perimeter is 2 × (9 + 5) = 28. The slanted side is longer than the height, as it must be.

Checking sides. If you enter triangle sides 10, 1 and 2, the calculator reports an error. A triangle needs each side to be shorter than the other two combined, and 10 is more than 1 + 2.

Common mistakes

  • Using the slanted side as the height. The height is measured at a right angle to the base. A parallelogram with sides 9 and 5 and a height of 4 has area 36, not 45.
  • Forgetting the half in a triangle. Base times height gives the rectangle around the triangle, not the triangle itself.
  • Mixing up radius and diameter. The circle formula uses the radius, which is half the diameter. Using the diameter makes the area four times too large.
  • Mixing up area and perimeter. Area is in square units and counts the inside. Perimeter is in plain units and measures the edge.
  • Mixing units. A length in feet times a width in inches gives nonsense. Convert to one unit first.

When to use it

Area decides how much paint, carpet, grass seed or fabric to buy. Perimeter decides how much fence, trim or border you need. Both are in everyday homework, from the school yard to a map of a farm.

In math class, area formulas also lead into volume, surface area and calculus. Students use the calculator to check a worked answer and to see the formula spelled out with their own numbers. Parents use it to double-check a measurement for a room or a garden bed.

Read the guideArea and perimeter formulas for common shapes8 min read

Common questions

What is the difference between area and perimeter?

Area is the space inside a shape, measured in square units. Perimeter is the distance around the edge, measured in plain units. A 8 by 5 rectangle has area 40 and perimeter 26.

Why is a triangle half of base times height?

Two identical triangles fit together to make a parallelogram with the same base and height, and the area of that is base times height. So one triangle is half of it.

Why does the trapezoid use an average?

A trapezoid is wider at one end than the other. The average of the two parallel sides is like its typical width, and multiplying by the height gives the area, as if it were a rectangle.

Why can I not get the perimeter of a triangle from base and height?

The height does not lie along an edge, so it does not tell you the length of the other two sides. You need to enter those sides for the perimeter. The area does not need them.

What is the area of a circle if I only know the diameter?

Halve the diameter to get the radius, then use A = πr². The circle calculator on this site starts from the radius, diameter, circumference or area.

What value of pi does it use?

The full value built into the browser, 3.14159265358979 and so on. If your teacher asks for 3.14, your answer will differ slightly in the third decimal place.

You might also need

Need a quick calculation instead? The free scientific calculator on the homepage handles roots, powers, trig and logs, and the math guides explain each method step by step.