Geometry Calculator (Right Triangle, Circle & Cylinder)

Solve right triangles, circles, and cylinders with live dimension-labeled SVG schematics.

Hypotenuse (c) & Triangle Area c = 5 • Area = 6 Perimeter: 12 • Angles: α = 36.87°, β = 53.13°, γ = 90°
Hypotenuse (c = √(a²+b²)) 5
Area (½ab) 6
Perimeter (a+b+c) 12
Inputs
Try:
Select 2D or 3D geometric figure.
units
Base leg a (for triangle) or radius r (for circle/cylinder).
units
Vertical leg b (for triangle) or height h (for cylinder).
Results & Graph
Hypotenuse (c) & Triangle Area
c = 5 • Area = 6
Perimeter: 12 • Angles: α = 36.87°, β = 53.13°, γ = 90°
Hypotenuse (c = √(a²+b²))
5
Area (½ab)
6
Perimeter (a+b+c)
12
Internal Angles (α, β)
36.9° & 53.1°

Dimension-Labeled Right Triangle Diagram

Interactive SVG diagram showing legs a, b, hypotenuse c, and acute angles
Graph 1 • Dimensioned Geometric Blueprint Schematic Labeled sides, radius, height, and interior angles
a = 3 b = 4 c = 5 α = 36.9° β = 53.1°
Graph 2 • Linear Dimensions & Pythagorean Hypotenuse / Diameter Direct comparison of side lengths and diagonal span
Primary Dimension (a or r) 6 units Secondary Dimension (b or h) 8 units Hypotenuse / Diameter √(a²+b²) 10.00 units
Graph 3 • How Doubling Dimensions Scales Area (4×) & Volume (8×) Quadratic (k²) surface scaling vs. cubic (k³) volume scaling
0 248.8 497.7 0.5× Dim: 12 12 0.5× Dim 0.75× Dim: 27 27 0.75× Dim 1× Dim: 48 48 1× Dim 1.25× Dim: 75 75 1.25× Dim 1.5× Dim: 108 108 1.5× Dim 2× Dim: 192 192 2× Dim
Summary: Right triangle with legs a=3, b=4, hypotenuse c=5, and area 6.
Summary: A right triangle with legs a = 3 and b = 4 has hypotenuse c = 5 by the Pythagorean theorem, area A = 6, perimeter P = 12, and acute angles α = 36.87° and β = 53.13°.
Interactive chart & math engine powered by CalculatorGraph

Formula: Pythagorean, Circular & Cylindrical Identities

Triangle:   c = a2 + b2,   A = ab2
Circle:   A = πr2,   C = 2πr   |   Cylinder:   V = πr2h,   SA = 2πrh + 2πr2
Triangle: c = √(a² + b²), A = ½ab, α = arctan(a/b); Circle: A = πr², C = 2πr; Cylinder: V = πr²h, SA = 2πrh + 2πr²
  • a, b, c: Perpendicular legs a, b and hypotenuse c of a right triangle
  • r, h: Radius r and height h

Rounding: Rounded to 4 decimal places.

Worked example: Classic 3–4–5 Right Triangle (a = 3, b = 4)

Solve hypotenuse, area, perimeter, and acute angles for a right triangle with legs a = 3 and b = 4.

  1. Hypotenuse c = √(3² + 4²) = √25 = 5.
  2. Area = 0.5 × 3 × 4 = 6 square units; Perimeter = 3 + 4 + 5 = 12 units.
  3. Angle α = arctan(3/4) = 36.87°; Angle β = arctan(4/3) = 53.13°.
Result: c = 5, Area = 6, Perimeter = 12, α = 36.87°, β = 53.13°.

Frequently Asked Questions

How do I convert the geometric area if my inputs are in feet?

If inputs are in feet, area is in square feet (ft²) and volume is in cubic feet (ft³). Use the Unit Conversion or Concrete Calculator to convert ft³ to cubic yards.

Why does the second box do nothing in circle mode?

A circle needs only one measurement. In circle mode the first box is the radius and the second box is ignored, so changing it leaves the answer the same. A radius of 3 gives an area of 28.2743 and a circumference of 18.8496 whatever is in the second field. The second box only matters for triangles and cylinders.

Can I enter the hypotenuse instead of a leg?

No. Triangle mode always takes the two legs that meet at the right angle. If you know the hypotenuse and one leg, find the other leg first: square the hypotenuse, subtract the square of the known leg, and take the square root. Then enter both legs to get area, perimeter and angles.

Which angle is alpha and which is beta?

Alpha is the arctangent of a divided by b, so it is the angle opposite leg a. Beta is opposite leg b. In the default 3 and 4 triangle, alpha is 36.87° and beta is 53.13°. Swap the legs and the two angles swap too, while the hypotenuse, area and perimeter stay exactly the same.

Why are the angles shown with different decimals in two places?

The main answer gives the angles to two decimal places, such as 36.87° and 53.13°. The supporting list rounds them to one place, showing 36.9° and 53.1°. They are the same angles. Use the two-decimal version when you need to carry an angle into another calculation, so rounding errors do not build up.

Should I use total surface area or lateral area for a tank?

Use lateral area for the curved side alone, such as a wrap or label. Use total surface area for a closed shape with both ends. For a tank or cup open at the top, add the lateral area to one base area. With radius 2 and height 3, that is 37.6991 plus 12.5664 square units.

What happens if I enter zero?

The calculator returns an error asking for a value greater than zero instead of a result. This applies to the first box in every mode and to the second box in triangle and cylinder modes. A shape with a zero dimension has no area or volume, so there is nothing meaningful to report.

I measured across a pipe. What do I enter?

Halve the measurement first. The first box is the radius, which is half the distance across. Entering the full width makes the circle area four times too big and the circumference twice as big. The diameter line in the result should match the width you measured, which makes it a handy check.

Does the calculator work with decimals?

Yes. Any positive decimal is accepted in both boxes. For example, a cylinder with radius 1.5 and height 2 returns a volume of 14.1372 cubic units and a total surface area of 32.9867 square units. Results are rounded to four decimal places, which is usually more precision than the measurement itself.

Why does doubling the radius more than double the volume?

Volume uses the radius squared, so doubling the radius multiplies the volume by four when the height stays the same. A cylinder of radius 1 and height 4 holds 12.5664 cubic units. Changing only the height scales volume in a straight line instead, so doubling the height simply doubles the volume.

Can I mix feet and inches in the two boxes?

No. The calculator assumes both boxes use the same unit and has no way to tell otherwise. Convert both measurements to feet, or both to inches, before entering them. The result is then in that unit squared for areas and that unit cubed for volumes. Mixed units give a number that means nothing.

Why does a 5 and 12 triangle show the same area and perimeter?

Legs of 5 and 12 give a hypotenuse of 13, an area of 30 and a perimeter of 30. That is a coincidence of those particular whole numbers, not a property the calculator is pointing out. The default 3 and 4 triangle has an area of 6 and a perimeter of 12. Area and perimeter are different kinds of quantity, square units against plain units, so equal figures mean nothing special.

How can I check the triangle answer without the calculator?

Add the two acute angles: they should always total 90°, as 36.87 and 53.13 do in the default. Then square the hypotenuse and compare it with the sum of the squared legs. For the default, 5 squared is 25, and 3 squared plus 4 squared is also 25. If either check fails, recheck what you typed.

Two boxes, three shapes

This calculator has only two number fields, and what they mean changes with the shape you pick. In right triangle mode, the first box is leg a and the second is leg b. In circle mode, the first box is the radius and the second box is ignored. In cylinder mode, the first box is the radius and the second is the height.

That shared layout is the source of most wrong answers. Someone switches from triangle to cylinder, leaves the old leg values in place, and reads a volume for a shape they never meant to describe. Before you read any result, look at the shape selector and then at the summary sentence under the answer. The sentence repeats the inputs in plain words, such as a radius r = 3 and height h = 4, so it is a quick check that the boxes say what you think.

Both fields must be greater than zero. A zero or negative entry in either box returns an error message rather than a result, even in circle mode for the first box. Decimals are fine. A radius of 1.5 with a height of 2 gives a cylinder volume of 14.1372 cubic units.

The default 3, 4, 5 triangle and how to read it

The default is the classic right triangle with legs of 3 and 4. The calculator returns a hypotenuse of 5, an area of 6, a perimeter of 12 and acute angles of 36.87° and 53.13°, with the third angle fixed at 90°.

Each of those numbers has a short route. The hypotenuse is the square root of 9 plus 16, which is the square root of 25. The area is half of 3 times 4. The perimeter adds the three sides. The angles come from the arctangent of one leg divided by the other.

The two acute angles always add to 90°, and that is a good test of your reading. Here 36.87 plus 53.13 makes exactly 90. If you ever copy down two angles that do not add to 90, you have mixed one up with a rounded value or misread the order.

The page's own variations change only leg a. With a = 2 and b = 4 the hypotenuse becomes 4.4721, the area 4 and the angles 26.57° and 63.43°. With a = 5 and b = 4 the hypotenuse is 6.4031, the area 10 and the angles 51.34° and 38.66°. Notice that the area moves in proportion to a, while the hypotenuse does not, because it depends on the squares of both legs.

Which angle is alpha: swapping the legs

Alpha is calculated as the arctangent of a divided by b. That makes alpha the angle opposite leg a, and beta the angle opposite leg b. The labels on the diagram follow the same rule.

Swap the legs and see what happens. With a = 4 and b = 3 the hypotenuse, area and perimeter are exactly the same as the default: 5, 6 and 12. Only the angles trade places, and alpha becomes 53.13° while beta becomes 36.87°.

This matters when the triangle comes from a real problem. If you are working out the pitch of a ramp, the angle you want is usually the one at the bottom, opposite the vertical rise. Put the rise in box a and the horizontal run in box b and alpha is your slope angle. Enter them the other way round and you will read the angle at the top instead.

The answer line shows the angles to two decimal places and the supporting list rounds them to one, so the default appears there as 36.9° and 53.1°. Use the two-decimal figures if you need to carry the angle into a further calculation.

Triangles this mode cannot solve

Right triangle mode always takes the two legs and works outward. It does not accept a hypotenuse as an input. If your problem gives you the hypotenuse and one leg, you cannot type them straight in.

You can still get there with one step by hand. Square the hypotenuse, subtract the square of the known leg, and take the square root to find the missing leg. Then enter both legs here to get the area, perimeter and angles. For a hypotenuse of 13 and a leg of 5, the missing leg is 12, and the calculator then returns an area of 30 and a perimeter of 30.

The mode also cannot handle triangles without a right angle. It assumes the angle between legs a and b is exactly 90°. If you measure a corner in the real world and it is close to square but not quite, the hypotenuse and area here will be slightly off, and the error grows the further the corner is from square.

Finally, it does not tell you whether a triangle is valid in any wider sense. Any two positive legs give a right triangle, so there is nothing to reject. Very lopsided legs, such as 1 and 100, simply produce a long thin triangle with one tiny angle.

Radius, not diameter, in circle mode

Circle mode asks for the radius in the first box. With the default value of 3 it returns a diameter of 6, a circumference of 18.8496 and an area of 28.2743 square units. The second box plays no part.

The most common slip is to enter a diameter because that is what a tape measure or a product label gives you. A pipe described as 6 across has a radius of 3. Type 6 into the radius box and the area comes out four times too large, because area depends on the square of the radius. The circumference would be double what it should be.

The diameter line in the result is a built-in check. If the diameter shown does not match the width you measured, you have entered the wrong quantity. Halve your measurement and try again.

Two other reference points help with sanity checks. A radius of 1 gives an area of 3.1416, which is simply pi. A radius of 5 gives an area of 78.5398 and a circumference of 31.4159. Doubling the radius from 5 to 10 doubles the circumference but multiplies the area by four.

Cylinder volume and the three area figures

Cylinder mode returns a volume plus three areas, and choosing the right area is where people go wrong. Take a radius of 2 and a height of 3. The volume is 37.6991 cubic units, the lateral area is 37.6991, the base area is 12.5664 and the total surface area is 62.8319.

The lateral area is the curved side only, as if you peeled off a label and laid it flat. It is the figure for wrapping, painting or insulating the side of a tank or a pipe. The base area is one circular end. The total surface area is the side plus both ends, so it is the figure for a closed can.

Many real objects are open at one end, such as a cup, a planter or a round water tank with no lid. For those, add the lateral area to one base area rather than using the total. With radius 2 and height 3, that gives 37.6991 plus 12.5664.

The volume and lateral area matching in that example is a coincidence of the numbers chosen, not a rule. Change to a radius of 1 and height of 4 and the volume is 12.5664 while the lateral area is 25.1327. Volume grows with the square of the radius, but lateral area grows only in a straight line with it.

Units: squares, cubes and mixing measurements

The calculator has no unit selector. It treats both numbers as being in the same unit and reports areas in that unit squared and volumes in that unit cubed. Enter centimetres and the cylinder volume is in cubic centimetres. Enter feet and it is in cubic feet.

The trap is entering two different units. A cylinder 2 feet across and 30 inches tall needs both measurements in feet or both in inches before you type them. Mix them and the result is meaningless, and nothing on the page will warn you.

Converting the answer afterwards needs care, because areas and volumes do not scale like lengths. One foot is twelve inches, but one square foot is twelve times twelve square inches, and one cubic foot is twelve times twelve times twelve cubic inches. Converting a volume with the length factor alone gives a badly wrong number.

For volumes headed into a material order, such as concrete for a round column, it is often easier to work in the unit the supplier sells in from the start, or to finish with the unit converter or concrete calculator linked from this page.

Checking homework and real measurements

For students, the calculator works best as a check after you have done the working yourself. Solve the triangle by hand, then enter the legs and compare. If the hypotenuse matches but the angles do not, you probably used the wrong leg on top in the tangent ratio. If the circle area is four times what you expected, you used the diameter.

Known whole-number triangles make good test cases. The default 3 and 4 gives 5. Legs of 5 and 12 give 13. Legs of 1 and 1 give 1.4142 with both angles at 45°. If those come out as expected, you can trust the tool with your own awkward values.

For practical jobs, the results are only as accurate as the measurements. A radius measured to the nearest centimetre on a large tank can shift the volume noticeably, since radius is squared. Measure the diameter across the widest point in two directions, average them, and halve it.

Results are rounded to four decimal places. That is far more precision than a tape measure provides, so round the answer to a sensible figure for the job before you buy or cut anything.