Geometric Formula Calculator
Six shapes account for most geometry homework and most job-site measurement questions: rectangle, circle, triangle, square, sphere and cylinder. This calculator holds the standard formula for each one. Pick the shape, enter its dimensions, and it returns the area and perimeter or circumference, plus volume and surface area for the two solid shapes, all rounded to two decimals.
Results appear only when every dimension for the selected shape is filled in and the computed area is positive. For the sphere and cylinder, the Area line is the total surface area. The triangle takes all three side lengths: the perimeter is their sum and the area uses Heron’s formula, explained in the formula section below. Enter all dimensions in one consistent unit: results are in units, square units and cubic units of that same unit. Entering two negative dimensions, or a negative radius or side that gets squared, can still produce a displayed result, so enter every dimension as a positive length.
Quick Answer
A rectangle of 12 by 8 has an area of 96.00 square units and a perimeter of 40.00 units: Area = Length × Width = 12 × 8, Perimeter = 2 × (12 + 8). The calculator is pre-filled with that rectangle, and each of the other five shapes carries its own check values, so every row of the results table below can be reproduced with one click.
Key takeaways
- Six shapes only, stated plainly: rectangle, circle, triangle, square, sphere and cylinder. This page does not claim cubes, cones, pyramids or trapezoids; a dedicated cube surface area calculator covers the cube properly.
- For the sphere and the cylinder, the line labelled Area is the total surface area (4πr² and 2πr(r + h)). The cylinder’s Perimeter/Circumference line is the circumference of its circular base.
- The triangle takes all three side lengths: the perimeter is the sum of the sides and the area comes from Heron’s formula. Base and height alone cannot fix either figure for every triangle, which is why this tool asks for the sides; the section below shows the numbers behind that choice.
- All results are rounded to two decimals, and nothing appears until every dimension for the shape is filled in and the area comes out positive.
How to use the Geometric Formula Calculator
Pick a shape, fill in its dimensions in one consistent unit, and click Calculate. The form only ever shows the dimensions the selected shape needs.
- Select the shape: rectangle, circle, triangle or square for flat shapes; sphere or cylinder for solids. Changing the shape swaps the input fields, restores that shape’s check values, and hides any previous result.
- Enter the dimensions: circles, spheres and cylinders ask for the radius, not the diameter. If you measured all the way across, halve the number first; entering a diameter as a radius quadruples a circle’s area.
- Click Calculate: flat shapes return Area and Perimeter/Circumference. The sphere returns surface area and volume; the cylinder returns surface area, base circumference and volume.
- Reset when you want the worked example back: Reset returns to the pre-filled rectangle of 12 by 8 instead of leaving blank fields.
For circles specifically, this page is the quick route: radius in, area and circumference out. The dedicated circle formula calculator goes further on circle-only questions such as diameter and sector work, and the two pages use the same π based formulas so their area and circumference figures agree.
The formulas for all six shapes
Each shape uses one standard textbook formula set, listed here exactly as the code applies it. There is no unit conversion inside the tool: the numbers come back in the unit you typed.
| Shape | Area (surface area for solids) | Perimeter / Circumference | Volume |
|---|---|---|---|
| Rectangle | Length × Width | 2 × (Length + Width) | Flat shape, none |
| Circle | π × Radius² | 2 × π × Radius | Flat shape, none |
| Triangle | Heron: √(s × (s − a) × (s − b) × (s − c)), s = (a + b + c) ÷ 2 | Side A + Side B + Side C | Flat shape, none |
| Square | Side² | 4 × Side | Flat shape, none |
| Sphere | 4 × π × Radius² | Not reported | (4 ÷ 3) × π × Radius³ |
| Cylinder | 2 × π × Radius × (Radius + Height) | 2 × π × Radius (base circle) | π × Radius² × Height |
These are the standard forms recorded in reference works such as Wolfram MathWorld’s entry on the circle and its companion pages for the sphere and cylinder: the same πr², 4πr² and 2πr(r + h) expressions taught in school. Two labelling points deserve plain words. First, a solid has no flat area, so the Area line for the sphere and cylinder is total surface area, caps included for the cylinder. Second, the cylinder’s perimeter line is the circumference of one circular end, which is the number you want for edging, bands and rims, not a perimeter of the whole solid.
Worked examples for every shape
Every shape is pre-filled with the check values in this table, so you can verify each formula against the tool itself. Switch the shape, click Calculate, and the row should match exactly.
| Check run | Area | Perimeter / Circumference | Volume |
|---|---|---|---|
| Rectangle, 12 × 8 | 96.00 | 40.00 | n/a |
| Circle, radius 5 | 78.54 | 31.42 | n/a |
| Triangle, sides 3, 4, 5 | 6.00 | 12.00 | n/a |
| Square, side 7 | 49.00 | 28.00 | n/a |
| Sphere, radius 3 | 113.10 (surface) | not reported | 113.10 |
| Cylinder, radius 4, height 10 | 351.86 (surface) | 25.13 | 502.65 |
Two rows reward a second look. The sphere at radius 3 gives the same number twice, 113.10, because 4πr² and (4 ÷ 3)πr³ happen to coincide at r = 3; at radius 5 they separate (314.16 surface area, 523.60 volume), which is a quick sanity check that the two formulas are genuinely different. The cylinder row is the one most people actually need at work: a tank of radius 4 and height 10 holds 502.65 cubic units, and its total surface area of 351.86 square units is the paint or sheet material figure before waste. If the tank question is really about capacity in litres or gallons, the cylinder capacity calculator takes the same two dimensions and answers in volume units directly.
Why the triangle asks for all three sides
Base and height determine a triangle’s area completely, but they cannot determine its perimeter. Sliding the top corner sideways keeps the base and the perpendicular height identical while stretching one sloping side and shrinking the other, so infinitely many triangles share one base and height with different perimeters.
So this tool asks for the three side lengths themselves. The perimeter is then exact for any triangle: Side A + Side B + Side C. The area comes from Heron’s formula: with s = (a + b + c) ÷ 2, Area = √(s × (s − a) × (s − b) × (s − c)). For the pre-filled triangle (sides 3, 4 and 5), s is 6, the area is √(6 × 3 × 2 × 1) = 6.00, and the perimeter is 3 + 4 + 5 = 12.00.
Here is why the change matters, in numbers. Take a base of 12 and a height of 5: the area is 30.00, but the perimeter depends on the triangle’s shape: 27.62 for the isosceles case, 30.00 for a right triangle with sides 12, 5 and 13, and 28.13 for a scalene triangle with sides 12, 5.83 and 10.30. Three sides settle the question: enter sides 12, 5.8309518948 and 10.295630141 and the tool returns perimeter 28.13 and area 30.00, with no assumption hiding inside. The one check the tool adds is the triangle inequality: each side must be shorter than the other two added together, so sides like 1, 2 and 10 are refused with a message instead of a made-up answer.
What competing calculators miss
The geometry calculator keyword is crowded, and the big tools win on breadth. What they tend to lose is candour about what a given formula can and cannot know:
- Calculator.now Geometry Calculator: nine or more shapes with diagrams and a decimal-places control, the strongest all-rounder found. Its triangle is handled with Heron’s formula from three sides, the approach this page has now adopted as well.
- AJ Designer Geometric Formulas: eleven shapes including parallelogram, trapezoid, cone and rectangular solid, with a body diagonal. Genuinely broader than this page. The trade-off is a dense reference layout where the working tool and the formula reference blur together.
- Vedantu Geometry Calculator: step-by-step solutions pitched at students, and a correct triangle perimeter of side1 + side2 + side3. Like Calculator.now and this page, it needs all three sides.
- Omni Calculator and Calculator.net volume tools: excellent solid coverage with unit conversion across a dozen or more shapes. They split area and volume across separate pages, so a cylinder’s surface area, base circumference and volume never appear on one screen together, as they do here.
- TrueGeometry shapes pages: a cautionary example. Its cylinder surface area expression is printed as 2πrh, which is only the curved lateral surface and drops the two circular caps; a cylinder of radius 4 and height 10 would come out roughly 100 square units short of the true 351.86. Formula lists copied without checking are how errors like that spread.
- The gap this page fills: a deliberately small, checkable set: six shapes, every formula printed next to its result, no hidden assumptions: the triangle takes all three sides, so its perimeter and Heron area are exact, with the reasoning shown in the open, and surface area labelled honestly for the two solids instead of a bare “Area” with no explanation.
Units, radius mistakes and rounding
The tool is unit-agnostic: it never converts. Enter centimetres and the answers are centimetres, square centimetres and cubic centimetres; enter feet and they are feet, square feet and cubic feet. That design keeps the arithmetic transparent, and it puts one duty on the user: every dimension in the same unit before calculating. A rectangle entered as 3 metres by 80 (centimetres, unconverted) returns 240 square “units” that are neither metres nor centimetres.
The costliest single slip is radius versus diameter. Circle and sphere formulas are built on the radius; typing the diameter instead multiplies a circle’s area by four and a sphere’s volume by eight, because those formulas square and cube the input. The tooltips on every radius field repeat the halving instruction for that reason. Rounding is simpler: the tool carries π and the square roots at full precision and rounds only the displayed result to two decimals, so a hand check with π = 3.14159 will match to the last digit in almost every case.
Frequently asked questions
Exactly six: rectangle, circle, triangle, square, sphere and cylinder. Flat shapes return area and perimeter or circumference; the sphere returns surface area and volume; the cylinder returns surface area, base circumference and volume.
That line is the total surface area, 4 × π × Radius², the amount of material needed to cover the sphere. The cylinder’s Area line is also its total surface area, 2 × π × Radius × (Radius + Height), including both circular caps.
From the three side lengths you enter: the perimeter is Side A + Side B + Side C, exact for any triangle. The area uses Heron’s formula: with s = (Side A + Side B + Side C) ÷ 2, Area = √(s × (s − Side A) × (s − Side B) × (s − Side C)). Base and height alone cannot fix a perimeter, which is why this tool asks for the sides; if the three lengths cannot form a triangle (one side as long as the other two combined, or longer), the tool shows a message instead of a result.
No. Those shapes are not in this tool, and this page will not pretend otherwise. It covers the six shapes listed in the dropdown only, each with its standard formula verified against the check table in this article.
The formulas expect the radius, half the diameter. Entering the diameter makes a circle’s area four times too large and a sphere’s volume eight times too large, because the formulas square and cube the value you type. Halve any across-the-whole-shape measurement first.
Any unit, as long as every dimension of the shape uses the same one. The tool performs no conversion: results come back in units, square units and cubic units of whatever you entered, so centimetres in means square and cubic centimetres out.
The tool only shows results when every dimension for the selected shape is filled in and the computed area is positive. A blank field, a zero, or a sign combination that makes the area zero or negative leaves the results hidden and shows a short note under the form instead. Entering two negative dimensions, or a negative radius or side that gets squared, can still produce a displayed result, so enter every dimension as a positive length.
Results are rounded to two decimal places, while π and square roots are carried at full precision inside the calculation. A hand check using π = 3.14159 reproduces the displayed figures; the practical limit on accuracy is your input measurement, not the arithmetic.
Add This Calculator to Your Website
Embed this calculator on your own site with the code below. Pick a size to preview it live, then copy the code.
Powered by Calculator Zilo
References
- Weisstein, Eric W., Wolfram MathWorld. Circle. Accessed October 21, 2026.
- Weisstein, Eric W., Wolfram MathWorld. Sphere. Accessed October 21, 2026.
- Weisstein, Eric W., Wolfram MathWorld. Cylinder. Accessed October 21, 2026.
- Weisstein, Eric W., Wolfram MathWorld. Triangle. Accessed October 21, 2026.
- Weisstein, Eric W., Wolfram MathWorld. Isosceles Triangle. Accessed October 21, 2026.
- National Institute of Standards and Technology. Guide for the Use of the International System of Units (SI). Accessed October 21, 2026.
