A flat square has an area, not a surface area, so this calculator covers the three things people usually mean: a flat square (from its side or diagonal), a cube, and a square prism. Pick the one you need.
Square Surface Area Calculator
Area of a flat square, or the surface area of a square-based prism or cube.
Starting values: the flat square mode opens with a side of 5, giving an area of 25, a perimeter of 20 and a diagonal of 7.0711. The diagonal mode opens with a diagonal of 7.07107, and the prism mode with a base side of 5 and a height of 10, giving a surface area of 250.
Which square do you mean?
The phrase surface area of a square is used for three different shapes, and each has its own formula:
- Flat square (2D): one face, so you want its area, perimeter or diagonal.
- Cube: six equal square faces, so you want the total outside area.
- Square prism: two square ends and four rectangular sides, like a box with a square base.
The calculator has a flat square mode, a diagonal mode and a prism mode. A cube is simply the prism mode with the height set equal to the base side.
Surface area of a flat square
Area = Side × Side, so A = a²
Where:
- A = area of the square
- a = side length
The same side gives the other two outputs: the perimeter is P = 4a and the diagonal is d = a√2.
Suppose a square patio slab is 12 ft on each side:
A = 12 × 12 = 144 ft², P = 4 × 12 = 48 ft, d = 12 × 1.4142 = 16.97 ft
So the slab covers 144 square feet, its edge is 48 feet long, and the corner-to-corner distance is about 16.97 feet. For coordinates or several squares on one plan, see the square area calculator.
Area from the diagonal
A = d² ÷ 2 and a = d ÷ √2
The diagonal cuts the square into two equal right triangles, so d² = a² + a². Rearranging gives the two formulas above. If the diagonal is 10:
A = 10² ÷ 2 = 50 and a = 10 ÷ 1.4142 = 7.0711
The square has an area of 50 square units and a side of about 7.07 units.
Surface area of a cube
Surface Area = 6 × a²
A cube has six identical square faces, each with area a². This agrees with the prism formula further down, because with h = a it becomes 2a² + 4a×a = 6a².
A cube with a side of 5 has a surface area of 6 × 25 = 150. A cube with a side of 2.5 m has 6 × 6.25 = 37.5 m² of outside surface. Enter the side as both the base side and the height in prism mode to get these results.
Surface area of a square prism
Surface Area = 2a² + 4ah
Where:
- a = side of the square base
- h = height of the prism
- 2a² = the two square ends
- 4ah = the four rectangular sides
With a = 5 and h = 10:
Ends = 2 × 25 = 50, sides = 4 × 5 × 10 = 200, total = 250
The prism has 250 square units of outside surface, and the four sides make up most of it. Now a unit conversion. A storage box 40 cm square and 100 cm tall has 2 × 1,600 + 4 × 40 × 100 = 3,200 + 16,000 = 19,200 cm². Since 10,000 cm² equals 1 m², that is 1.92 m².
For the lateral area, base area and volume of the same prism, use the square prism surface area calculator.
Surface area is not the same as material to buy
The calculator returns the geometric surface of a closed shape. A figure of 1.92 m² for the box above does not mean you should buy exactly 1.92 m² of paint, film or sheet. Coverage depends on the product, the number of coats, overlaps at seams and how the pieces are cut, so check the coverage printed on the product you plan to use.
Common mistakes
- Using a² for a cube. That is one face only; the cube needs six.
- Mixing units, such as a side in cm and a height in m. Convert first.
- Entering the diagonal in the side box. Use the diagonal mode instead.
- Forgetting that the result is in square units, so a side in feet gives ft².
What this calculator does not do
In prism mode it treats the shape as a closed solid with both square ends, so it does not remove a top for an open box. It also ignores wall thickness and reports surface area only. If your box has no lid, subtract one a² from the result.
Quick reference
- Flat square: A = a², P = 4a, d = a√2
- From the diagonal: A = d² ÷ 2
- Cube: 6a²
- Square prism: 2a² + 4ah
Every result is in the square of the length unit you entered. To change units afterwards, use 1 m² = 10.7639 ft². The 2.5 m cube above, at 37.5 m², is therefore about 403.65 ft².
Frequently asked questions
Does a square have a surface area?
A flat square has an area, found with A = a². The term surface area normally belongs to 3D shapes, so when people search for it they usually mean a cube (6a²) or a square prism (2a² + 4ah).
How do I find the surface area of a cube from one side?
Square the side and multiply by 6. A side of 5 gives 6 × 25 = 150. In this calculator, use prism mode and enter the same value for the base side and the height.
How do I find the area of a square from its diagonal?
Square the diagonal and divide by 2. A diagonal of 10 gives 100 ÷ 2 = 50. The side is the diagonal divided by √2, about 7.07 in that case.
How is this different from the square prism calculator?
This page helps you choose between a flat square, a cube and a prism, and returns the main result for each. The square prism page goes further for that one shape, with lateral area, base area and volume.




