Command Palette

Search for a command to run...

Back to all guides
Math & Science

How to Calculate Area and Volume: Formulas for Every Shape

Essential formulas for calculating area of 2D shapes and volume of 3D solids. Includes circles, triangles, rectangles, spheres, cylinders, cones, and complex composite shapes.

10 min readPublished February 18, 2025

Why Area and Volume Calculations Matter

Area and volume are among the most fundamental measurements in geometry, with applications spanning architecture, engineering, construction, interior design, manufacturing, and everyday problem-solving. Area measures the two-dimensional space enclosed by a shape's boundaries, expressed in square units such as square meters (m²) or square feet (ft²). Volume measures the three-dimensional space occupied by a solid object, expressed in cubic units such as cubic meters (m³) or cubic centimeters (cm³). Mastering these calculations enables you to estimate materials needed for projects, compare the capacity of containers, and solve a wide variety of practical problems.

Whether you are calculating how much paint to buy for a room, determining the amount of soil needed for a garden bed, or figuring out whether a piece of furniture will fit in your space, area and volume formulas are essential tools. This guide covers the formulas for every common 2D and 3D shape, walks through worked examples, and explains how to handle composite shapes. Use our Area Calculator to compute areas instantly for any regular shape.

Area of 2D Shapes

Rectangle

The rectangle is the simplest and most commonly encountered 2D shape. Its area formula multiplies its length by its width: Area = length × width. For a room measuring 12 feet long and 10 feet wide, the area is 12 × 10 = 120 square feet. This formula is the basis for estimating flooring, carpeting, wallpaper, and paint coverage. A square is simply a special rectangle where all sides are equal, so its area is side × side, or side². A square room measuring 8 feet on each side has an area of 64 square feet.

Triangle

The area of a triangle is given by: Area = ½ × base × height. This formula works for all types of triangles (right, acute, obtuse, equilateral) as long as you use the perpendicular height, not the length of a slanted side. For a triangle with a base of 10 cm and a height of 6 cm, the area is 0.5 × 10 × 6 = 30 cm². If you only know the three side lengths and not the height, you can use Heron's formula: Area = √[s(s−a)(s−b)(s−c)], where s = (a + b + c) / 2 is the semi-perimeter and a, b, c are the side lengths.

Circle

A circle's area depends on its radius (the distance from the center to the edge) and the mathematical constant π (approximately 3.14159). The formula is: Area = π × r². For a circle with a radius of 5 meters, the area is π × 25 ≈ 78.54 m². If you know the diameter instead of the radius, remember that the radius is half the diameter. A circular pizza with a diameter of 16 inches has a radius of 8 inches and an area of π × 64 ≈ 201.06 square inches. Knowing this helps you compare the value of different pizza sizes, since area grows with the square of the radius.

Trapezoid

A trapezoid (or trapezium) is a quadrilateral with at least one pair of parallel sides. The area formula averages the two parallel sides (called bases) and multiplies by the height: Area = ½ × (a + b) × h, where a and b are the lengths of the parallel sides and h is the perpendicular distance between them. For a trapezoid with parallel sides of 8 m and 12 m and a height of 5 m, the area is 0.5 × (8 + 12) × 5 = 50 m².

Ellipse

An ellipse is an oval shape defined by two axes: the semi-major axis (a) and the semi-minor axis (b). Its area formula is: Area = π × a × b. A running track shaped as an ellipse with a semi-major axis of 50 meters and a semi-minor axis of 30 meters has an area of π × 50 × 30 ≈ 4,712.39 m². A circle is a special case of an ellipse where both axes are equal.

Volume of 3D Shapes

Cube

A cube is a three-dimensional shape with six equal square faces. Its volume is calculated by cubing the length of one edge: Volume = s³. A cube with edges of 3 cm has a volume of 27 cm³. Cubes are common in packaging, dice, and building blocks. The surface area of a cube is 6 × s², since it has six identical square faces.

Sphere

A sphere is a perfectly round three-dimensional object where every point on the surface is equidistant from the center. Its volume formula is: Volume = (4/3) × π × r³. A basketball with a radius of 12 cm has a volume of (4/3) × π × 1,728 ≈ 7,238.23 cm³. The surface area of a sphere is 4 × π × r². Spheres appear in nature (planets, bubbles, raindrops) and in engineering (ball bearings, pressure vessels, storage tanks).

Cylinder

A cylinder has two circular bases connected by a curved surface. Its volume is the area of the base multiplied by the height: Volume = π × r² × h. A water tank with a radius of 0.5 meters and a height of 2 meters has a volume of π × 0.25 × 2 ≈ 1.57 m³, or about 1,570 liters. The surface area of a closed cylinder is 2πr² + 2πrh, which includes both circular bases and the curved side. Cylinders are everywhere in daily life, from cans and pipes to storage drums and engine pistons.

Cone

A cone has a circular base that tapers to a single point (the apex). Its volume is exactly one-third of a cylinder with the same base and height: Volume = (1/3) × π × r² × h. An ice cream cone with a radius of 3 cm and a height of 12 cm has a volume of (1/3) × π × 9 × 12 ≈ 113.1 cm³. The lateral surface area of a cone is π × r × l, where l is the slant height (√(r² + h²)).

Pyramid

A pyramid has a polygonal base and triangular faces that meet at an apex. Its volume formula is similar to the cone: Volume = (1/3) × base area × height. For a square pyramid with a base side length of 6 m and a height of 10 m, the volume is (1/3) × 36 × 10 = 120 m³. The Great Pyramid of Giza, with an original base of about 230 meters and a height of about 146 meters, has a volume of approximately (1/3) × 52,900 × 146 ≈ 2.58 million m³.

Prism

A prism is a three-dimensional shape with two identical parallel bases connected by rectangular faces. Its volume equals the base area multiplied by the height (the perpendicular distance between the two bases): Volume = base area × height. A triangular prism with a triangular base area of 15 cm² and a length of 20 cm has a volume of 15 × 20 = 300 cm³. Rectangular prisms (boxes) have a volume of length × width × height. This formula is used constantly in shipping, storage, and packaging to determine how many items can fit in a container.

Surface Area Explained

Surface area measures the total area of all the outer surfaces of a three-dimensional object. It is important for calculating how much material is needed to cover or paint an object, how quickly an object cools or heats (since heat transfer occurs through the surface), and how much wrapping paper is needed for a gift. The formulas vary by shape, but the general approach is to find the area of each face or surface and add them together.

  • Rectangular prism: Surface area = 2(lw + lh + wh), where l, w, h are length, width, and height.
  • Cube: Surface area = 6s², where s is the side length.
  • Cylinder (closed): Surface area = 2πr² + 2πrh (two bases plus the curved side).
  • Sphere: Surface area = 4πr².
  • Cone (with base): Surface area = πr² + πrl, where l is the slant height.

For example, to paint the outside of a cylindrical water tank with radius 3 feet and height 8 feet (excluding the bottom), you calculate the top circle and curved side: π × 9 + 2π × 3 × 8 = 9π + 48π = 57π ≈ 179.07 square feet. This tells you how many square feet of paint you need, and you can divide by the coverage rate of your paint (typically listed on the can) to determine how many gallons to purchase.

Working with Composite Shapes

Real-world objects are rarely simple geometric shapes. A house is a combination of rectangular prisms and triangular prisms (the roof). An L-shaped room is a combination of two rectangles. A swimming pool might be a combination of a rectangular shallow end and a trapezoidal deep end. To find the area or volume of composite shapes, break them down into simpler shapes, calculate each piece separately, and add the results together.

Consider an L-shaped room where one section is 10 ft × 8 ft and an adjoining section is 6 ft × 4 ft. The total floor area is 80 + 24 = 104 ft². Alternatively, you can enclose the entire L-shape in a larger rectangle and subtract the missing piece. If the bounding rectangle is 10 ft × 12 ft (120 ft²) and the missing corner is 6 ft × 8 ft (48 ft²), the L-shape area is 120 − 48 = 72 ft². Both methods should yield the same result, and choosing the simpler one depends on the specific shape.

For composite 3D shapes, the same additive principle applies. A grain silo consisting of a cylinder on top of a cone has a total volume equal to the cylinder's volume plus the cone's volume. This approach works for any combination of shapes, regardless of complexity. The key skill is visualizing how to decompose a complex shape into familiar geometric primitives.

Practical Uses in Everyday Life

  • Home improvement: Calculate floor area for flooring, wall area for paint or wallpaper, and room volume for heating and cooling load estimates.
  • Cooking and baking: Compare the capacity of different baking pans (a 9-inch round pan vs. a 9×13 rectangular pan) by calculating their areas and volumes.
  • Gardening: Determine how much mulch, soil, or gravel you need for a garden bed by calculating its volume in cubic feet or cubic yards.
  • Packaging and shipping: Calculate the volume of boxes to determine shipping costs and compare container sizes for efficient packing.
  • Swimming pools: Estimate water volume to determine the correct amount of chemicals needed for treatment, using the pool's geometric shape and dimensions.

Key Takeaways

  • Area measures 2D space in square units; volume measures 3D space in cubic units.
  • Rectangle: Area = l × w. Triangle: Area = ½ × b × h. Circle: Area = π × r².
  • Rectangular prism: Volume = l × w × h. Cylinder: Volume = π × r² × h. Sphere: Volume = (4/3)πr³.
  • Cone and pyramid volumes are exactly one-third of their corresponding cylinder and prism volumes.
  • Surface area is the sum of all exposed faces and is critical for estimating paint, material, and coverage requirements.
  • Composite shapes can be broken down into simpler shapes whose areas or volumes are added together (or subtracted from a bounding shape).

Frequently Asked Questions

How do I find the area of an irregular shape?

Break the irregular shape into simpler geometric shapes (rectangles, triangles, circles), calculate the area of each component separately, and add them together. If the shape cannot be easily decomposed, you can use the grid method: overlay a grid of known unit squares, count the full squares covered by the shape, and estimate the partial squares. For precise measurements, digital tools and software like CAD programs can calculate areas from traced boundaries.

What is the difference between area and perimeter?

Area measures the two-dimensional space inside a shape's boundaries, while perimeter measures the total distance around the outside of the shape. For a rectangle with length 10 and width 5, the area is 10 × 5 = 50 square units, while the perimeter is 2 × (10 + 5) = 30 linear units. Area is measured in square units (ft², m²) and perimeter in linear units (ft, m).

How do I convert between different volume units?

To convert cubic units, cube the linear conversion factor. Since 1 m = 100 cm, 1 m³ = 100³ = 1,000,000 cm³. Common practical conversions include: 1 cubic yard = 27 cubic feet, 1 cubic foot = 7.48 gallons, and 1 liter = 1,000 cm³. For construction materials sold by the cubic yard, divide your cubic feet measurement by 27 to get cubic yards.

Why is the volume of a cone one-third of a cylinder?

This can be demonstrated visually and mathematically. If you take a cylinder and a cone with the same base radius and height, you can fill the cone with sand or water exactly three times and pour it into the cylinder to fill it completely. Mathematically, the factor of 1/3 arises from integration: the cross-sectional area of a cone at any height h is proportional to (h/H)², and integrating this from 0 to H yields (1/3)πr²H, compared to the cylinder's πr²H.

Try the How to Calculate Area and Volume tool

Put what you learned into practice with our free online tool.

Related Guides