What is a square prism?
A right square prism (also called a square box or a "Yakkakuchu" type cuboid in Japanese geometry, romanized) is a three-dimensional solid with two parallel square faces joined by four equal rectangular sides. It is a special case of a rectangular cuboid where the two base dimensions are equal: the base is a square of side a, and the prism rises to a height h. This calculator computes both the volume V and the total surface area S from those two numbers.
How to use it
Enter the square base edge length a and the height h. Use any consistent length unit for both values — the tool does no unit conversion. The volume is returned in that unit cubed and the surface area in that unit squared. Both inputs must be positive numbers.
The formulas explained
The volume is simply the base area times the height: since the base is a square of side a, its area is \(a^{2}\), so \(V = a^{2} \cdot h\). For the surface area, the two square caps contribute \(2 \cdot a^{2}\) and the four identical rectangular sides each measure \(a \times h\), contributing \(4 \cdot a \cdot h\). Adding and factoring gives \(S = 2a^{2} + 4ah = 2a(a + 2h)\).
Worked example
For a = 1 and h = 2: $$V = 1^{2} \cdot 2 = 2,$$ and $$S = 2 \cdot 1 \cdot (1 + 2 \cdot 2) = 2 \cdot 5 = 10.$$ For a = 3 and h = 5: $$V = 3^{2} \cdot 5 = 45,$$ and $$S = 2 \cdot 3 \cdot (3 + 10) = 6 \cdot 13 = 78.$$
How Volume and Surface Area Change with Dimensions
For a right square prism with base edge \(a\) and height \(h\), the volume is \(V = a^2h\) and the total surface area is \(S = 2a(a+2h)\). The table compares four scenarios, with all lengths in the same unit (so V is in cubic units and S in square units).
| Base edge a | Height h | Shape note | Volume V = a²h | Surface area S = 2a(a+2h) |
|---|---|---|---|---|
| 2 | 2 | Cube | 2² × 2 = 8 | 2·2·(2 + 4) = 24 |
| 2 | 4 | Height doubled | 2² × 4 = 16 | 2·2·(2 + 8) = 40 |
| 4 | 2 | Base edge doubled | 4² × 2 = 32 | 2·4·(4 + 4) = 64 |
| 4 | 4 | Both doubled (cube) | 4² × 4 = 64 | 2·4·(4 + 8) = 96 |
- Doubling a only (row 1 → row 3): volume is multiplied by 4 because \(a\) is squared (8 → 32). Surface area rises from 24 to 64.
- Doubling h only (row 1 → row 2): volume is multiplied by 2 because \(h\) appears once (8 → 16). Surface area rises from 24 to 40.
- Doubling both (row 1 → row 4): volume is multiplied by 8 (8 → 64) and surface area by 4 (24 → 96), since \(V\) scales with length cubed and \(S\) with length squared.
Unit Conversion for Length, Area and Volume
Enter a, h and the result in consistent units. When you convert a length factor, square it for area and cube it for volume.
| Length (linear factor) | Area (factor squared) | Volume (factor cubed) |
|---|---|---|
| 1 in = 2.54 cm | 1 in² = 6.4516 cm² | 1 in³ = 16.387064 cm³ |
| 1 ft = 0.3048 m | 1 ft² = 0.092903 m² | 1 ft³ = 0.0283168 m³ |
| 1 m = 100 cm | 1 m² = 10,000 cm² | 1 m³ = 1,000,000 cm³ = 1,000 L |
Example: a prism with \(a = 50\) cm and \(h = 100\) cm has \(V = 50^2 \times 100 = 250{,}000\) cm³, which equals 0.25 m³ or 250 L (since 1 L = 1,000 cm³).
A common mistake is to apply the linear factor directly to an area or volume. For example, 1 m² is 10,000 cm², not 100 cm².
FAQ
What units does it use? Whatever consistent length unit you supply — volume comes out cubed, surface area squared. There is no unit dropdown.
What if a or h is zero? The solid degenerates and the volume becomes zero; enter positive values for a meaningful prism.
Is this the same as a cube? Only when a = h. A cube is the special square prism whose height equals its base edge.