How does the geometry calculator work?
We use a separate formula for each shape or solid. A square needs a side, a circle a radius and a rectangle two sides. You can describe a triangle by its three sides, or by its base and height. In the second case, we work out the area, but do not give the perimeter, which cannot be determined from these two values alone.
Square: A=a², P=4a. Rectangle: A=ab, P=2(a+b). Circle: A=πr², P=2πr. Cube: V=a³, S=6a². Cuboid: V=abc, S=2(ab+ac+bc).
Step-by-step example
- Choose a cube and the unit cm.
- Enter side a=6 cm.
- The volume is 6³=216 cm³.
- The surface area is 6×6²=216 cm². The same numbers describe different quantities.
How to read the result and choose the data
For a triangle described by its sides, we check the triangle inequality: the sum of any two sides must be greater than the third. Sides of 1, 2 and 3 do not form a triangle with a positive area. For valid data, we use Heron’s formula. A right-angled triangle takes the two legs (the sides that form the right angle), and the hypotenuse is worked out using Pythagoras’ theorem.
For a cylinder and a cone, enter the radius and height; for a sphere, the radius. The radius is not the diameter. If you know the diameter, divide it by two before entering it. The surface area of a cone includes the slant height √(r²+h²), while the volume is πr²h/3.
The unit describes all the input dimensions. Changing cm to m does not convert the numbers automatically; enter them in the new unit. Area has a square unit and volume a cubic unit. For solids, we keep a limit of 200 units per dimension, in line with the range of the app’s engine. All the dimensions needed must be positive.
What do the fields mean?
- Shape or solid
- The shape or solid determines the fields and the formula needed. Hidden dimensions are not used.
- a or radius r
- Side a or radius r, as labelled. A positive number in the chosen unit.
- b or the triangle’s height
- Side b or the triangle’s height, depending on the option. Enter it in the same unit as a.
- c or the height of the solid
- The third side or the height of the solid. For a triangle, the sides must satisfy the triangle inequality.
- Unit
- A common unit for the dimensions; the label does not convert the values automatically.
Sources and how up to date the data is
Checked on 31 October 2026. The formulas and function domains were compared with the Procentownik 1.10.24 code, and the reference results were run in Dart. This module does not download current rates, exchange rates or user data from a server. The check date refers to the implementation and tests; it does not indicate how long a tax rate or legal standard applies.
Frequently asked questions
Is the height of a triangle one of its sides?
Not necessarily. In base and height mode, you enter the line segment perpendicular to the base. This is enough for the area, but not for the perimeter. If you know all three sides, choose another option in the form.
Does the circle take the diameter?
The radius field expects half the diameter. Entering the whole diameter as the radius will make the area four times too large. The label changes with the shape chosen to help you recognise the quantity needed.
Why does a cube have two results?
Volume describes the space inside the solid, and surface area the total area of its faces. One value has a cubic unit, the other a square unit. They should not be compared as two ways of writing the same quantity.
Does the result include the thickness of the material?
No. We assume ideal shapes and solids with the dimensions entered. We do not subtract walls, holes or allowances. To price material or work out the capacity of a real object, you need additional assumptions.
Does the data I enter reach the studio?
Your browser does the calculations. The form does not send the values you enter and does not require an account. The “Copy result” button uses the clipboard only when you click it. You can also select the result and copy it by hand. Refreshing the page restores the sample data; it is not a substitute for keeping your own notes.
Is this tool also in Procentownik?
Yes. It corresponds to the app module described below. The web version is for calculations in your browser, and the app has its own phone interface. We do not automatically transfer results between the website and the app. Choose whichever version suits your task better.

