Area & Volume Calculator
Calculate area, perimeter, and volume for common 2D and 3D shapes, with the formula shown. 2D shapes include a live diagram that updates as you change the dimensions.
Calculator verified • Last updated: August 2026
Area Formulas for Common Shapes
Area measures the space enclosed by a 2D shape's boundary. A circle's area is π times its radius squared. A rectangle's is simply width times height. A triangle's is half its base times its height. Each shape has its own formula because the relationship between the boundary and the enclosed space differs — but they all reduce to some combination of the shape's key dimensions.
Volume Formulas for 3D Shapes
Volume measures the space a 3D shape occupies. Many volume formulas build directly on their 2D counterparts: a cylinder's volume is its circular base's area times its height (), and a cone's volume is exactly one-third of a cylinder with the same base and height () — the "1/3" factor shows up in every shape that tapers to a point (cones, pyramids) rather than staying uniform (cylinders, prisms). A sphere's volume is : for a sphere with radius 3, that's cubic units.
V: the volume, in cubic units.
r: the radius of the circular base (cylinder, cone) or of the sphere itself.
h: the height of the cylinder or cone (not used for the sphere, which has no height).
π (pi): approximately 3.14159.
How to Calculate the Area of a Triangle — 3 Methods
The most common method uses base and height: . When you know all three sides but not the height, Heron's formula works instead: compute the semi-perimeter , then
A: the triangle's area.
a, b, c: the lengths of the triangle's three sides.
s: the semi-perimeter, half the sum of all three sides.
Heron's formula is named after Heron of Alexandria, a Greek mathematician and engineer who described it in his work "Metrica," written around the 1st century CE.
A third method uses two sides and the included angle: , common in trigonometry and navigation problems.
a, b: the lengths of the two known sides (not the same a, b as in Heron's formula above).
C: the angle between those two sides.
Worked Example: Heron's Formula on a 3-4-5 Triangle
For a triangle with sides 3, 4, and 5: the semi-perimeter is , so the area is . Since 3-4-5 happens to be a right triangle (with legs 3 and 4), this can be double-checked with the simpler base-times-height formula: — the same answer both ways, confirming Heron's formula works correctly even without knowing which angle is the right angle in advance.
Circle Formulas — Radius, Diameter, Circumference, Area
Everything about a circle derives from its radius : diameter , circumference , and area . Because these formulas relate to each other through the radius, knowing any one measurement lets you calculate all the others.
r: the radius, the distance from the center to the edge.
d: the diameter, twice the radius.
C: the circumference, the distance around the circle.
A: the area, the space enclosed by the circle.
π (pi): approximately 3.14159.
A Brief History of Geometry
Practical geometry — measuring land, building structures, tracking the sky — predates written mathematics, with evidence of geometric knowledge in ancient Egypt (used for re-surveying farmland after the Nile's annual floods) and Babylon. The Greek mathematician Euclid organized this scattered practical knowledge into a rigorous logical system around 300 BCE in his work "Elements," building every result from a small set of axioms and postulates — a structure so influential that "Euclidean geometry" remains the standard term for the geometry of flat space today. Archimedes, working roughly a century later, developed remarkably accurate methods for approximating the area and volume of curved shapes like circles and spheres, including an early form of the method of exhaustion that anticipated ideas from calculus nearly 2,000 years before it was formally developed. Non-Euclidean geometries — describing curved rather than flat space — emerged in the 19th century through the work of mathematicians including Carl Friedrich Gauss, Nikolai Lobachevsky, and János Bolyai, later becoming essential to Einstein's general theory of relativity.
Common Geometry Mistakes
Confusing radius and diameter is one of the most frequent errors — plugging a diameter into a formula that expects a radius produces an answer four times too large for area calculations. Mixing up perimeter (or circumference) with area is another common mix-up, especially since both scale with a shape's size but in fundamentally different ways: doubling a shape's linear dimensions doubles its perimeter but quadruples its area. For 3D shapes, forgetting to distinguish surface area (the 2D "skin" covering a shape) from volume (the 3D space it occupies) can also lead to using the wrong formula entirely.
Geometry Terms You Should Know
Perimeter — the total distance around the outer boundary of a 2D shape.
Circumference — the specific term for a circle's perimeter.
Surface Area — the total area covering the outside of a 3D shape, found by summing the areas of all its faces or curved surfaces.
Congruent — describes shapes that are identical in size and shape, even if rotated or flipped.
Similar — describes shapes with the same proportions but different sizes, such as two circles or two squares of different dimensions.
Frequently Asked Questions
How do I calculate the area of an irregular shape?
Break the irregular shape into simpler shapes you know formulas for, calculate each piece's area separately, then add them together.
What is the difference between area and surface area?
Area applies to flat, 2D shapes. Surface area applies to 3D shapes and measures the total area of all their outer faces combined.
How do I find the volume of a cylinder?
Multiply the area of the circular base () by the height: .