Geometry Calculator
Area, perimeter, volume and surface area for common 2D shapes and 3D solids.
Last updated
Your details
Result
- Area
- 78.5398
- Circumference
- 31.4159
square units
linear units
Let's work it out…
A = πr²
A = π × 5²
A = π × 25
A = 78.5398
Formula — written step by step
A circle of radius 5…
A = πr²
A = π × 5²
A = π × 25
A = 78.5398 square units
r is the radius — the distance from the centre out to the edge. The unit follows your input: enter centimetres and the area comes out in square centimetres.
A rectangle 10 by 6…
A = length × width
A = 10 × 6
A = 60 square units
Two measurements along adjacent sides. Multiplying a length by a length is what makes the answer square units.
A triangle on a base of 10…
A = ½ × base × height
A = ½ × 10 × 8
A = ½ × 80
A = 40 square units
base is the side you measure along; height is the perpendicular distance from it to the opposite corner — not the length of a slanted side.
A triangle with sides 3, 4 and 5…
A = √(s(s−a)(s−b)(s−c))
s = (3 + 4 + 5) ÷ 2 = 6
A = √(6 × 3 × 2 × 1)
A = √36
A = 6 square units
a, b and c are the three sides and s is the semi-perimeter, half of a + b + c. This is Heron's formula, and it needs no height at all.
A trapezoid with parallel sides 8 and 12…
A = ((a + b) ÷ 2) × height
A = ((8 + 12) ÷ 2) × 8
A = 10 × 8
A = 80 square units
a and b are the two parallel sides and height the perpendicular distance between them. Averaging the parallel sides turns the shape into a rectangle of the same area.
A cube of side 5…
V = s³
V = 5³
V = 5 × 5 × 5
V = 125 cubic units
s is the length of one edge. Every edge of a cube is equal, so a single measurement describes the whole solid.
A box 10 by 6 by 8…
V = length × width × height
V = 10 × 6 × 8
V = 60 × 8
V = 480 cubic units
The three edges that meet at any one corner. Their order does not matter — any face can be treated as the base.
A sphere of radius 5…
V = 4/3 πr³
V = 4/3 × π × 5³
V = 4/3 × π × 125
V = 523.5988 cubic units
r is the radius — half the width measured across the middle. Because it is cubed, entering a diameter by mistake overstates the volume eightfold.
A cylinder of radius 5 and height 8…
V = πr²h
V = π × 5² × 8
V = π × 25 × 8
V = 3.14159… × 200
V = 628.3185 cubic units
r is the radius of the circular end and h the height. The formula is just the area of that circle carried along the height.
A cone of radius 5 and height 8…
V = πr²h ÷ 3
V = π × 5² × 8 ÷ 3
V = 628.318531 ÷ 3
V = 209.4395 cubic units
r is the radius of the circular base and h the perpendicular height from base to tip. A cone holds exactly one third of the cylinder that would enclose it.
A triangular prism 10 long…
V = ½ × base × triangle height × length
V = ½ × 10 × 6 × 10
V = 30 × 10
V = 300 cubic units
base and triangle height describe the triangular end face; length is how far the prism runs back. Work out the end's area, then carry it along the length.
The formula for each shape
-
Circle
A = πr²
Needs the radius · answer in cm²
-
Rectangle
A = length × width
Needs length and width · answer in cm²
-
Triangle
A = ½ × base × height
Needs the base and the perpendicular height · answer in cm²
-
Triangle from three sides
A = √(s(s−a)(s−b)(s−c))
Needs all three side lengths · answer in cm²
-
Trapezoid
A = ((a + b) ÷ 2) × height
Needs both parallel sides and the height · answer in cm²
-
Cube
V = s³
Needs one side · answer in cm³
-
Rectangular box
V = length × width × height
Needs length, width and height · answer in cm³
-
Sphere
V = 4/3 πr³
Needs the radius · answer in cm³
-
Cylinder
V = πr²h
Needs the radius and the height · answer in cm³
-
Cone
V = πr²h ÷ 3
Needs the radius and the height · answer in cm³
-
Triangular prism
V = ½ × base × triangle height × length
Needs the triangle's base and height, and the prism length · answer in cm³
A worked example
Volume of a rectangular box
- Length
- 8 cm
- Width
- 5 cm
- Height
- 3 cm
- V = length × width × height
- V = 8 × 5 × 3
- V = 40 × 3
V = 120 cm³
The order does not matter — multiplication is commutative, so any face can be treated as the base and the remaining dimension as the depth.
Volume of a cylinder
- Radius
- 5 cm
- Height
- 8 cm
- V = πr²h
- V = π × 5² × 8
- V = π × 25 × 8
- V = π × 200
V = 628.3185 cm³
Squaring the radius before multiplying by the height is the step people skip. Doubling the radius quadruples the volume; doubling the height only doubles it.
Area of a triangle
- Base
- 10 cm
- Height
- 8 cm
- A = ½ × base × height
- A = ½ × 10 × 8
- A = ½ × 80
A = 40 cm²
Height means the perpendicular distance from the base to the opposite corner — not the length of a slanted side.
How to use this calculator
- Choose what you are measuring from the Shape menu. The drawing changes to match, so you can check you have picked the right one.
- Read the drawing to see what each measurement refers to — which line is the radius, which is the height.
- Enter every measurement the shape asks for, using the same unit throughout.
- The answer updates as you type; there is nothing to submit.
- Flat shapes return area and perimeter. Solids return volume and surface area.
Units are yours to choose
These formulas are unit-agnostic. Enter centimetres and areas come out in square centimetres; enter feet and you get square feet. The only rule is to use the same unit for every input in a single calculation.
Mixing units is the most common source of wrong answers — a cylinder with radius in centimetres and height in metres produces a volume that means nothing.
Radius, diameter, and the mistake in between
Every circular formula here takes the radius: the distance from the centre to the edge. The diameter is the full width across, and it is twice the radius. Measuring across a pipe or a tin gives you the diameter, so halve it before entering it.
Getting this wrong is expensive because the radius is squared or cubed. Entering a diameter where a radius belongs overstates a circle's area four times over, and a sphere's volume eight times over.
Area, surface area and volume
Area measures a flat region in square units. Surface area measures the total outside of a solid, also in square units — it is what you would need to paint or wrap. Volume measures the space inside, in cubic units.
Scaling reveals how they differ. Double every dimension of a solid and its surface area quadruples while its volume increases eightfold. This is why large animals have proportionally smaller surface areas and why crushed ice melts faster than a single block of the same mass.
Pi and the circular formulas
Pi is the ratio of any circle's circumference to its diameter, roughly 3.14159. Every circular and spherical formula here derives from it: circumference is 2πr, area is πr², sphere volume is 4/3 πr³.
The exponent tells you the dimension. Circumference is linear in r, area is quadratic, volume is cubic — which is why a modest increase in radius produces a dramatic increase in volume.
Every formula this calculator uses
| Shape | Area or volume | Perimeter or surface area | Measurements needed |
|---|---|---|---|
| Circle | A = πr² | C = 2πr | radius |
| Rectangle | A = l × w | P = 2(l + w) | length, width |
| Triangle | A = ½ × b × h | — | base, height |
| Triangle (three sides) | A = √(s(s−a)(s−b)(s−c)) | P = a + b + c | all three sides |
| Trapezoid | A = ((a + b) ÷ 2) × h | — | both parallel sides, height |
| Cube | V = s³ | S = 6s² | side |
| Rectangular box | V = l × w × h | S = 2(lw + lh + wh) | length, width, height |
| Sphere | V = 4/3 πr³ | S = 4πr² | radius |
| Cylinder | V = πr²h | S = 2πrh + 2πr² | radius, height |
| Cone | V = πr²h ÷ 3 | S = πr(r + √(r² + h²)) | radius, height |
| Triangular prism | V = ½ × b × h × length | — | triangle base and height, length |
In the three-sided triangle, s is the semi-perimeter — half of a + b + c. That is Heron's formula, and it is how you find an area without knowing any height.
Squared and cubed units
| This | Equals |
|---|---|
| 1 m² | 10,000 cm² |
| 1 m³ | 1,000,000 cm³ |
| 1 m³ | 1,000 litres |
| 1 litre | 1,000 cm³ |
| 1 ft² | 144 in² |
| 1 ft³ | 1,728 in³ |
Converting a squared unit squares the factor and a cubed unit cubes it. A metre is 100 cm, so a square metre is 100² cm² and a cubic metre 100³ cm³ — which is why converting volumes by the plain length factor is wrong by a factor of a million.
Frequently asked questions
Why does the three-sided triangle sometimes refuse to compute?
Because of the triangle inequality: any side must be shorter than the sum of the other two. Sides of 1, 2 and 10 cannot close into a triangle.
Is volume measured in square or cubic units?
Cubic. Area covers a flat surface and is measured in squared units such as cm² or ft²; volume fills a space and is measured in cubed units such as cm³ or ft³. Surface area is the total area of a solid's outside, so it goes back to squared units.
What is the difference between radius and diameter?
The radius runs from the centre to the edge; the diameter runs all the way across through the centre. The diameter is exactly twice the radius, so halve any measurement taken across a circle before entering it here.
How do I calculate the volume of a box?
Multiply length by width by height. A box 8 cm long, 5 cm wide and 3 cm high holds 8 × 5 × 3 = 120 cm³. Choose "Rectangular box" above and the drawing shows which edge each measurement refers to.
Can I use different units?
Yes, as long as every measurement in one calculation uses the same unit. Enter centimetres and you get square or cubic centimetres back; enter feet and you get square or cubic feet. What you cannot do is mix them — a cylinder with its radius in centimetres and its height in metres produces a number that means nothing. Convert one first.
Why does the triangular prism not report a surface area?
Because a base and a perpendicular height do not describe one triangle — infinitely many triangles share them, and each has different sloping sides. Volume only needs the cross-sectional area, so it is well defined; the total surface area is not, and reporting one would mean quietly assuming the triangle is isosceles.
How do I find the area of a triangle without knowing its height?
Choose "Triangle (three sides)" and enter the three side lengths. That uses Heron's formula, which needs no height at all — useful for a plot of land where the sides can be paced out but no perpendicular can be.
How do I find the area of an irregular shape?
Divide it into rectangles and triangles, compute each, and add them. For land in particular this is far more reliable than trying to fit a single formula.
What is the difference between a cone and a pyramid?
A cone has a circular base, a pyramid a polygonal one. Both have volume equal to one third of base area times height.