How to Use the Area Calculator
Area tells you how much surface a shape covers, while perimeter tells you the distance around its edge. Builders, gardeners, painters, and students need both numbers constantly: area decides how much paint, flooring, or seed to buy, and perimeter decides how much fencing, trim, or edging is required. This calculator handles the four most common shapes and returns both values in one step, so you do not need a second tool for the border.
- Choose your shapePick rectangle, square, circle, or triangle from the dropdown. Only the inputs for that shape are shown, so there is no confusion about which boxes to fill.
- Enter the measurements in one unitUse the same unit for every measurement, for example all in metres or all in centimetres. Mixing metres and centimetres will give a wrong answer, because the calculator cannot know which unit each number used.
- For a triangle, enter all three sides plus the heightThe area comes from base times height divided by two, but the perimeter needs all three sides. The calculator also checks the triangle inequality and warns you if the sides cannot form a real triangle.
- Press Calculate AreaThe area appears in square units and the perimeter (or circumference for a circle) in plain units, both rounded to two decimal places.
Formulas for All Four Shapes
Every formula below uses only the measurements you enter, and each one has a simple geometric reason behind it. A rectangle's area is length times width because you can tile it with unit squares in rows and columns. A square is just a rectangle whose sides are all equal, so its area is side times side and its perimeter is four times the side. A circle's area is pi times radius squared, and its circumference is two times pi times radius; pi is the constant ratio of any circle's circumference to its diameter, approximately 3.14159. A triangle's area is half of base times height because any triangle is exactly half of a parallelogram with the same base and height.
| Shape | Area formula | Perimeter formula |
|---|---|---|
| Rectangle | length × width | 2 × (length + width) |
| Square | side × side | 4 × side |
| Circle | π × radius² | 2 × π × radius |
| Triangle | ½ × base × height | side A + side B + base |
Worked examples make the arithmetic easy to check. A rectangle 10 metres long and 5 metres wide has an area of 50 square metres and a perimeter of 30 metres. A circle with a radius of 7 metres has an area of about 153.94 square metres and a circumference of about 43.98 metres. A triangle with a base of 8, a height of 5, and other sides of 6 and 7 has an area of 20 square units and a perimeter of 21 units. Notice how area is always in square units while perimeter is in plain units: that distinction matters when you order materials, because paint covers square metres but fencing is sold by the metre.
The Triangle Inequality: Why Some Sides Fail
Not every set of three lengths can be a triangle. If one side is longer than the other two put together, the two short sides cannot meet, and no triangle exists. This is the triangle inequality: each side must be shorter than the sum of the other two. For example, sides of 2, 3, and 10 cannot form a triangle, because 2 + 3 = 5, which is less than 10. Sides of 6, 7, and 8 work fine, because 6 + 7 is greater than 8, 6 + 8 is greater than 7, and 7 + 8 is greater than 6. This calculator checks all three conditions before calculating, so an impossible triangle produces a clear explanation instead of a meaningless number.
Another common confusion is height versus side length. In a triangle, the height is the perpendicular distance from the base to the opposite corner, not the length of a sloping side. In a right triangle, one side does double as the height, but in most triangles the height is shorter than either sloping side and must be measured or calculated separately. If you only know the three sides and not the height, you can find the area with Heron's formula, which uses the semi-perimeter, but this calculator keeps things direct by asking for the height alongside the sides.
Real-World Uses: Painting, Flooring, and Fencing
Suppose you want to paint a rectangular wall 4 metres wide and 2.5 metres high. Its area is 10 square metres, so one litre of paint covering 10 square metres per coat is exactly one coat's worth, and two coats need two litres. For flooring, a square room with 5-metre sides has an area of 25 square metres; ordering 10 percent extra for cutting waste means buying about 27.5 square metres of material. For a circular garden bed with a radius of 2 metres, the area is about 12.57 square metres of soil or mulch, while the circumference of about 12.57 metres tells you how much edging to buy. Doing both calculations together avoids the classic mistake of buying the right amount of one material and the wrong amount of the other, and because this tool runs entirely in your browser, you can recalculate on site from your phone as measurements change.