Geometry Formulas Explained: Area, Volume and Triangles
Geometry formulas answer three questions: how much surface a shape covers, how much space a solid holds, and how far it is around. This guide works through every one with real numbers: a triangle with base 12 and height 8 has area 48, a circle of radius 7 has area 153.94, and a cylinder of radius 5 and height 12 holds 942.48 cubic units. It also covers Heron's formula, Pythagoras, the laws of sines and cosines, and how to work with π.
Free calculator
Try the free Area Calculator →
Find the area of triangles, circles, trapezoids and more — with the formula and the working shown for every shape.
Calculate an area freeWhat Is Geometry, and Why Do the Formulas Matter?
Geometry is the mathematics of shape, size and space. Its formulas answer three everyday questions: how much surface does it cover (area), how much space does it hold (volume), and how far is it around (perimeter or circumference). You meet them when you buy paint, lay flooring, fill a tank, fence a garden, or work out whether a sofa fits through a door.
Three ideas keep the formulas straight. First, units tell you which formula you used: area is always in square units (square feet, cm²), volume in cubic units (cubic feet, cm³), and perimeter in plain units. If your "area" comes out in plain feet, something went wrong. Second, every area formula is a variation on length × width — triangles take half of that, circles replace the rectangle with πr², and trapezoids average the two parallel sides first. Third, every volume formula is a variation on base area × height, with cones and pyramids taking a third of the corresponding prism. Once you see those patterns, the formulas stop being a list to memorise and start being a small set of ideas to apply. If you want to check your own numbers as you read, the Area Calculator and the Volume Calculator cover every shape in this guide.
Area of Flat Shapes
Rectangle: length × width. A rectangle 9 units long and 6 wide has an area of 9 × 6 = 54 square units, and a perimeter of 2 × (9 + 6) = 30 units. The rectangle is the reference shape for everything else: most area formulas can be understood as "turn this shape into a rectangle, or half of one".
Triangle: ½ × base × height. A triangle with a base of 12 and a height of 8 has an area of ½ × 12 × 8 = 48 square units. The height is the perpendicular distance from the base to the opposite corner — not the length of a sloping side, which is the most common error with triangles. The formula works because any triangle is exactly half of a rectangle (or parallelogram) with the same base and height: double the triangle, flip the copy, and the two fit together into a rectangle.
Circle: π × radius². A circle of radius 7 has an area of π × 7² = π × 49 ≈ 153.94 square units. Its circumference — the distance around it — is 2 × π × 7 ≈ 43.98 units. Note the relationship: the area grows with the square of the radius, so doubling the radius quadruples the area. A circle of radius 14 has an area of about 615.75, four times 153.94. The Circle Calculator handles area, circumference, diameter and radius together.
Trapezoid: ½ × (sum of the parallel sides) × height. A trapezoid with parallel sides of 10 and 16 and a height of 6 has an area of ½ × (10 + 16) × 6 = ½ × 26 × 6 = 78 square units. The idea is the average of the two parallel sides, times the height — you are averaging the widths and then treating the shape like a rectangle of that average width.
| Shape | Area formula | Worked example | Area |
|---|---|---|---|
| Rectangle | length × width | 9 × 6 | 54 |
| Triangle | ½ × base × height | ½ × 12 × 8 | 48 |
| Circle | π × radius² | π × 7² | 153.94 |
| Trapezoid | ½ × (a + b) × height | ½ × (10 + 16) × 6 | 78 |
Heron's Formula: Area From Three Sides
The triangle formula needs a height — but what if you only know the three side lengths? That is the job of Heron's formula, named after Hero of Alexandria. First compute the semi-perimeter, s = (a + b + c) / 2, which is half the perimeter. Then the area is √(s × (s − a) × (s − b) × (s − c)).
Worked Example: Heron's Formula in Action
Take a triangle with sides 5, 6 and 7. The semi-perimeter is s = (5 + 6 + 7) / 2 = 9. Then the area is √(9 × (9 − 5) × (9 − 6) × (9 − 7)) = √(9 × 4 × 3 × 2) = √216 ≈ 14.70 square units. No height needed, no angles needed — just the three sides. Heron's formula is genuinely useful in surveying and construction, where measuring three sides of a triangular plot is often easier than measuring a perpendicular height. The Triangle Calculator uses it automatically whenever you give it three sides, and it also returns the angles and the height, so you can cross-check the answer with ½ × base × height.
Volume of Solid Shapes
Volume measures the space inside a three-dimensional shape, in cubic units. The pattern is the same as for area: start with the base area, multiply by the height, and adjust for the shape's taper.
Cylinder: π × radius² × height. A cylinder of radius 5 and height 12 has a volume of π × 25 × 12 = π × 300 ≈ 942.48 cubic units. A cylinder is a circle extruded upward, so its volume is just the circle's area times the height. If the units are centimetres, that is about 942 cm³ — just under a litre.
Cone: ⅓ × π × radius² × height. A cone with radius 6 and height 9 has a volume of ⅓ × π × 36 × 9 = π × 108 ≈ 339.29 cubic units. The ⅓ is the key fact: a cone holds exactly one third of the cylinder with the same base and height. The same ⅓ applies to a pyramid versus its prism. It is not an approximation — it is exact, and it is one of the neatest results in geometry.
Sphere: ⁴⁄₃ × π × radius³. A sphere of radius 4 has a volume of ⁴⁄₃ × π × 64 ≈ 268.08 cubic units. The volume grows with the cube of the radius, so doubling the radius multiplies the volume by eight — a fact that matters whenever you scale a container up or down. A ball with twice the radius holds eight times as much, not twice.
Cube: side³. A cube of side 5 has a volume of 5³ = 125 cubic units. The cube is the simplest volume, and the reference for the rest: a cube of side 10 holds 1,000 cubic units, which is why a litre is defined as 1,000 cm³.
| Solid | Volume formula | Worked example | Volume |
|---|---|---|---|
| Cylinder | π × r² × h | π × 5² × 12 | 942.48 |
| Cone | ⅓ × π × r² × h | ⅓ × π × 6² × 9 | 339.29 |
| Sphere | ⁴⁄₃ × π × r³ | ⁴⁄₃ × π × 4³ | 268.08 |
| Cube | side³ | 5³ | 125 |
Area vs Surface Area: What Is the Difference?
People confuse area and surface area because both are measured in square units, but they answer different questions. Area is the size of a flat region — the floor of a room, the face of a shape. Surface area is the total area of all the outside faces of a solid — everything you could paint. Volume, in cubic units, is how much the solid holds. The three numbers for the same object can be wildly different, and each one has its own job.
Take the cube of side 5 from the last section. Its volume is 125 cubic units. Its surface area is 6 faces × 25 = 150 square units. If you were filling it, you need the volume; if you were painting it, you need the surface area; if you were flooring one face, you need the area of that face, 25. Three questions, three answers, one shape.
The sphere of radius 4 shows the same split: its volume is 268.08 cubic units, but its surface area is 4 × π × 16 ≈ 201.06 square units. And the cylinder of radius 5 and height 12 has a surface area of 2πr(r + h) = 2 × π × 5 × 17 ≈ 534.07 square units — that formula covers both circular ends (2πr²) and the curved side (2πrh) in one expression. Notice that the cylinder's surface area (534.07) is smaller than its volume number (942.48), while the cube's surface area (150) is larger than its volume (125). Comparing the two numbers directly is meaningless — they are in different units, and the comparison flips depending on the size. The Surface Area Calculator computes all of these, shape by shape.
The practical rule is to ask what the material does. Paint, wrapping paper, wallpaper and fabric are bought by surface area. Concrete, water, soil and air are bought by volume. Flooring, carpet and turf are bought by area. Getting the wrong one is the most expensive geometry mistake there is, because it means ordering the wrong quantity of something you cannot return.
Triangles: What SSS, SAS, ASA and AAS Mean
Two triangles are congruent when they are exactly the same shape and size — one can be slid, flipped or rotated to match the other perfectly. You do not need to know all six measurements (three sides, three angles) to prove congruence; certain combinations are enough, and each has a three-letter name. S stands for a side, A for an angle, and the letters are listed in the order they appear around the triangle.
SSS (side, side, side): if all three sides of one triangle match all three sides of another, the triangles are congruent. Three sides fix a triangle completely — there is no freedom left to change the angles. This is why triangular bracing is rigid: a triangle cannot flex without changing a side length, which is why trusses and scaffolding are built from triangles.
SAS (side, angle, side): if two sides and the angle between them match, the triangles are congruent. The angle must be the included angle — the one between the two known sides. Two sides and a non-included angle do not guarantee congruence, which brings us to the trap below.
ASA (angle, side, angle) and AAS (angle, angle, side): if two angles and one side match, the triangles are congruent. ASA has the side between the two angles; AAS has it elsewhere. They are really the same rule in disguise: since the angles of a triangle always add to 180°, knowing two angles means knowing the third, so ASA and AAS describe the same information arranged differently.
The trap: SSA. Two sides and a non-included angle do not guarantee congruence — there can be two different triangles with the same SSA measurements, one with an acute angle and one with an obtuse angle at the same vertex. This is called the ambiguous case, and it is the reason SSA is not on the list. If you ever find yourself with two sides and a non-included angle, check both possibilities before trusting either one.
The Pythagorean Theorem
The most famous formula in geometry applies to right triangles — triangles with one 90° angle. It states that a² + b² = c², where a and b are the two shorter sides (the legs) and c is the hypotenuse, the side opposite the right angle and always the longest side. The square of the hypotenuse equals the sum of the squares of the other two sides.
The classic example is the 3-4-5 triangle: 3² + 4² = 9 + 16 = 25 = 5², so a triangle with sides 3, 4 and 5 is right-angled. Builders have used this for thousands of years to set out a square corner: measure 3 units along one edge, 4 along the other, and adjust until the diagonal between the marks is exactly 5. It works with any multiple — 6-8-10, 9-12-15 — and the same trick with 5-12-13 gives a longer, more precise check.
Here is a practical problem. A 10-foot ladder leans against a wall, with its base 6 feet from the wall. How high up the wall does it reach? The ladder is the hypotenuse (10), the distance from the wall is one leg (6), and the height is the other leg. So height² = 10² − 6² = 100 − 36 = 64, and the height is √64 = 8 feet. Note the rearrangement: when you know the hypotenuse and one leg, you subtract, not add. The Pythagorean Theorem Calculator solves for any side, and the algebra of rearranging the equation is the same skill as solving the equations in our quadratic equations guide — here it is a square root rather than a quadratic formula, but the habit of isolating the unknown is identical.
The theorem also works in reverse: if a² + b² = c² holds for a triangle's sides, the triangle is right-angled. That converse is what makes the 3-4-5 builder's check valid, and it is how you test whether a corner is square without a protractor.
Law of Sines and Law of Cosines
Pythagoras only works for right triangles. For any other triangle, the two laws that do the heavy lifting are the law of sines and the law of cosines. Together they can solve any triangle from enough known parts.
The law of sines says that in any triangle, each side divided by the sine of its opposite angle gives the same number: a / sin A = b / sin B = c / sin C. Use it when you know an angle-side pair plus one more angle or side. Example: a triangle has angle A = 40°, the side opposite it a = 8, and angle B = 60°. Find side b. By the law of sines, b = 8 × sin 60° / sin 40° = 8 × 0.8660 / 0.6428 ≈ 10.78. The side opposite the larger angle is longer, as it must be — a quick check that the answer is sensible.
The law of cosines generalises Pythagoras to any triangle: c² = a² + b² − 2ab × cos C, where C is the angle between sides a and b. When C is 90°, cos 90° = 0, the last term vanishes, and you are back to a² + b² = c² — Pythagoras is the law of cosines for right triangles. Use it when you know two sides and the included angle, or all three sides. Example: two sides are 7 and 10, with an included angle of 60°. Then c² = 7² + 10² − 2 × 7 × 10 × cos 60° = 49 + 100 − 140 × 0.5 = 149 − 70 = 79, so c = √79 ≈ 8.89. The Law of Sines and Cosines Calculator runs both laws and flags the ambiguous SSA case when it arises.
| Situation | Use | Worked result |
|---|---|---|
| Right triangle, two sides known | Pythagoras: a² + b² = c² | 3-4-5; ladder reaches 8 ft |
| Angle-side pair + one more angle or side | Law of sines | b = 10.78 |
| Two sides + included angle, or three sides | Law of cosines | c = 8.89 |
| Three sides, need the area | Heron's formula | Area 14.70 |
Working With π — and How Precise to Be
π (pi) is the ratio of a circle's circumference to its diameter, the same for every circle: approximately 3.14159, continuing forever without repeating. It is an irrational number, which means no fraction or decimal can represent it exactly — every calculation with π involves a choice about how much precision to keep.
For most purposes, the choice barely matters. Take the circle of radius 7 from earlier. Using π ≈ 3.14, the area is 3.14 × 49 = 153.86. Using a calculator's full value of π, it is 153.94. The difference is 0.08 square units — about 0.05%. For a school problem, 3.14 is fine; for engineering or a large project, use the calculator's π button, which carries far more digits than you will ever need. The practical rule is to round only at the end: carry full precision through the working and round the final answer, because rounding early compounds the error at every step.
How many decimal places should the answer have? Match the precision of your inputs. If the radius was measured to the nearest centimetre, quoting the area to six decimal places pretends to a precision the measurement never had. Two decimal places is a sensible default for everyday answers, and it is what the calculators on this site report. And keep the units honest: an area in cm², a volume in cm³, a length in cm. If the units look wrong, the number usually is too.
Common Mistakes in Geometry
Using a sloping side as the height of a triangle. The height must be perpendicular to the base. With a sloping side, the area is always overestimated.
Confusing radius and diameter. The area formula uses the radius; the diameter is twice the radius. Using the diameter in πr² quadruples the answer. Always halve the diameter first.
Forgetting the ⅓ in cones and pyramids. A cone holds a third of its cylinder, not all of it. The ⅓ is the most commonly dropped factor in volume problems.
Mixing area, surface area and volume. Paint is surface area, flooring is area, concrete is volume. Ordering by the wrong one means ordering the wrong quantity.
Adding instead of subtracting in Pythagoras. When you know the hypotenuse and one leg, subtract the squares (10² − 6² = 64). Adding gives a hypotenuse longer than the ladder itself, which is impossible — a good sanity check.
Rounding too early. Keep full precision through the working and round only the final answer. Rounding π to 3.14 at the start is fine; rounding intermediate results to whole numbers is not.
Sources: all figures in this guide were recomputed in Python from the formulas and measurements stated in the text (areas, volumes, surface areas, Heron's formula, Pythagoras, law of sines and law of cosines). π taken to full calculator precision; the 3.14 comparison is labelled as such. Last reviewed: 15 November 2026.
Frequently Asked Questions
How do I find the area of a triangle?
Multiply half the base by the perpendicular height: area = ½ × base × height. A triangle with a base of 12 and a height of 8 has an area of 48 square units. If you only know the three sides, use Heron's formula instead — for sides 5, 6 and 7 the area is 14.70.
How do I find the volume of a cylinder, cone or sphere?
A cylinder is π × radius² × height — for radius 5 and height 12 that is 942.48. A cone is a third of that: ⅓ × π × radius² × height, giving 339.29 for radius 6 and height 9. A sphere is ⁴⁄₃ × π × radius³, giving 268.08 for radius 4.
What do SSS, SAS, ASA and AAS mean?
They are the tests for triangle congruence: SSS means three matching sides, SAS means two sides and the angle between them, ASA and AAS mean two angles and a side. Any one of them proves two triangles are identical in shape and size. SSA is not a valid test — it can give two different triangles.
How does the Pythagorean theorem work?
For a right triangle, a² + b² = c², where c is the hypotenuse. The classic example is 3² + 4² = 5². It also works in reverse: a 10-foot ladder with its base 6 feet from a wall reaches √(100 − 36) = 8 feet up the wall.
What is the difference between area and surface area?
Area is the size of one flat region; surface area is the total area of all the outside faces of a solid. A cube of side 5 has a face area of 25, a total surface area of 150 and a volume of 125. Paint is bought by surface area, flooring by area, and concrete by volume.
How precise should I be when working with π?
For everyday work, π ≈ 3.14 is usually fine — for a circle of radius 7 it gives 153.86 instead of the true 153.94, a difference of 0.08. For precise work use your calculator's π button, and always round only at the end of the calculation, not in the middle.
Last updated: