ThisCalculator

Everyday

Square Based Prism Volume Formula

Updated · Standard formula, shown below

Volume 250.00 cm³
Base area
25.00 cm²
Result
Lateral surface area
200.00 cm²
Result
Base side length
5 cm
You entered

This calculator works out the volume of a square prism (also called a square-based rectangular prism or a cuboid with a square base) when you enter the base side length and the height. You get the volume in your chosen cubic units, plus the base area and the lateral surface area as supporting values.

Formula

The volume of a square prism is found by multiplying the area of the square base by the height of the prism. In symbols:

V = a² × h

  • V = volume (cubic units, e.g., cm³, m³, in³)
  • a = side length of the square base (linear units, e.g., cm, m, in)
  • h = height of the prism, measured perpendicular to the base (linear units)

Because the base is a square, its area is simply side × side, which is a². Multiplying that by the height gives the total space inside the prism.

Worked Example

Using the default values from the calculator above: base side length a = 5 cm and height h = 10 cm.

  1. Calculate the base area: a² = 5 × 5 = 25 cm²
  2. Multiply by the height: V = 25 × 10 = 250 cm³

The calculator returns a volume of 250.00 cm³, which matches the step-by-step result.

When to Use This Formula

Use the square prism volume formula any time you need the capacity or volume of a three-dimensional object with a square cross-section and straight, parallel sides. Common real-world items include:

  • Square-based boxes and shipping containers
  • Concrete footings or pillars with a square cross-section
  • Aquariums with a square footprint
  • Storage tanks with square bases
  • Building blocks or bricks that are square in plan

The formula also applies to a cube, which is a special square prism where the height equals the base side length (h = a). In that case, V = a³.

How to Read the Result

The volume is always expressed in cubic units. If you measured in centimeters, the volume is in cubic centimeters (cm³); if in meters, cubic meters (m³); if in inches, cubic inches (in³). One cubic meter equals 1,000 liters, and one cubic centimeter equals one milliliter, which is handy for converting to liquid capacity. For example, a square prism with a 5 cm base and 10 cm height holds 250 cm³, which is exactly 250 mL of water.

The calculator also shows the base area (a²) and the lateral surface area (4 × a × h). The lateral surface area is the sum of the four vertical rectangular faces, not including the top and bottom squares. If you need the total surface area, add the top and bottom: 2a² + 4ah.

Common Mistakes and How to Avoid Them

  • Mixing units: Always use the same unit for base side and height. If the base is in inches and the height in feet, convert one to the other first. For instance, 1 ft = 12 in.
  • Confusing base side with base perimeter: The formula uses the side length, not the perimeter. If you are given the perimeter of the square base, divide by 4 to get the side length.
  • Using the diagonal instead of the side: If you know the diagonal of the square base, divide it by √2 to get the side length, then apply the formula.
  • Rounding too early: Keep full precision during intermediate steps, then round the final volume to the desired decimal places.
  • Forgetting the units: Volume is cubic, not square or linear. Write the unit³ in your answer.

Limitations of the Formula

This formula works only for a right square prism, where the sides are perpendicular to the base. If the prism is slanted (an oblique prism), the volume is still base area × height, but the “height” is the perpendicular distance between the two square faces, not the length of the slanted edge. In that case, you need the vertical height, not the slanted side length. The formula also assumes the base is a perfect square and the top face is parallel to the bottom. For irregular or tapered shapes, such as a truncated pyramid, this formula does not apply.

Frequently Asked Questions

What is the difference between a square prism and a rectangular prism?

A rectangular prism has a rectangular base, so its base area is length × width. A square prism is a special case where length = width, so the base area is side × side. Every square prism is a rectangular prism, but not every rectangular prism is a square prism.

How do I find the height if I know the volume and the base side?

Rearrange the formula: h = V / a². For example, if the volume is 250 cm³ and the base side is 5 cm, then h = 250 / 25 = 10 cm.

Can I use this formula for a cube?

Yes. A cube is a square prism with all edges equal. If the side length is s, then the volume is s × s × s = s³. You can use the same calculator by entering the side length for both the base side and the height.

How do I convert volume to liters or gallons?

1 cubic meter = 1,000 liters. 1 cubic centimeter = 1 milliliter. For US gallons, 1 cubic foot ≈ 7.48 gallons, and 1 cubic inch ≈ 0.004329 gallons. Multiply your volume in those units by the conversion factor.

What if my prism has a square base but the sides are not perpendicular?

That is an oblique square prism. The volume is still base area × perpendicular height, but you must measure the vertical distance between the two square faces, not the slanted edge. If you only know the slanted edge length and the angle, you need trigonometry to find the perpendicular height.

Related

Formula used
in a | Base side length | cm | 5 | 0
in h | Height | cm | 10 | 0
out v | Volume | cm³ | a * a * h | 2
out base_area | Base area | cm² | a * a | 2
out lateral | Lateral surface area | cm² | 4 * a * h | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.