Geometry Calculator
Calculate area, perimeter, volume, and surface area for common 2D and 3D geometric shapes. Includes geometric formulas and step-by-step calculations.
What Is Geometry?
Geometry is the branch of mathematics that studies shapes, sizes, positions, and properties of space. It provides formulas to calculate measurements like area, perimeter, volume, and surface area. From ancient land surveying to modern architecture and engineering, geometric calculations are essential whenever physical dimensions matter.
This calculator covers the most commonly encountered 2D and 3D shapes, providing instant results with the formulas displayed alongside each answer. Whether you are a student solving homework problems, a contractor estimating materials, or an engineer designing components, these calculations form the foundation of spatial reasoning.
How the Math Works
2D shapes have two primary measurements: area (the flat space enclosed) and perimeter (the total distance around the boundary).
For a circle, area = pi times radius squared and circumference = 2 times pi times radius. For a rectangle, area = length times width and perimeter = 2 times (length plus width). A square is a special rectangle where all sides are equal. Triangles use half the base times the height for area and the sum of all sides for perimeter. Parallelograms use base times height for area. Trapezoids use the average of the two parallel sides times the height.
3D shapes add volume (the space enclosed within the solid) and surface area (the total area of all outer faces).
A sphere has volume = four-thirds times pi times radius cubed and surface area = 4 times pi times radius squared. A cube has volume = edge cubed and surface area = 6 times edge squared. A cylinder has volume = pi times radius squared times height. A cone has volume = one-third times pi times radius squared times height.
How to Use This Calculator
Select a shape from the dropdown menu. The 2D shapes appear first followed by 3D shapes.
Enter the required dimensions in the input fields that appear. All values must be positive numbers.
View the results which update automatically. Each result shows the calculated value, the unit type (square units, cubic units, or linear units), and the formula used.
Switch between shapes freely. The calculator remembers your inputs for each shape so you can compare results across different shapes without re-entering values.
Worked Examples
Example 1: Painting a Room Wall (Rectangle)
A wall measures 12 feet long and 9 feet tall. Select rectangle, enter length 12 and width 9. The area is 108 square feet. If one gallon of paint covers 350 square feet, one gallon is more than enough for this wall.
Example 2: Filling a Cylindrical Tank
A water tank has a radius of 2 meters and a height of 5 meters. Select cylinder, enter radius 2 and height 5. The volume is approximately 62.8318 cubic meters, which equals about 62,832 liters.
Example 3: Fencing a Triangular Garden
A triangular garden has sides measuring 8, 10, and 12 meters with a height of 6.6 meters. The perimeter is 30 meters (the amount of fencing needed) and the area is approximately 26.4 square meters.
Example 4: Wrapping a Spherical Gift
A ball has a radius of 15 centimeters. Select sphere, enter radius 15. The surface area is approximately 2827.4334 square centimeters, telling you how much wrapping paper you need at minimum.
Common Use Cases
- Construction: Calculate floor area for tiling, wall area for paint, concrete volume for foundations, and fencing lengths for perimeters.
- Manufacturing: Determine material needed for cylindrical containers, conical funnels, or cubic packaging.
- Education: Complete geometry homework, verify textbook answers, and visualize how formulas produce numeric results.
- Gardening and landscaping: Estimate soil volume for raised beds, mulch coverage for circular garden areas, and material for retaining walls.
- Science: Calculate cross-sectional areas for flow calculations, volumes for concentration measurements, and surface areas for heat transfer analysis.
Tips and Common Mistakes
Use consistent units. If you enter the radius in centimeters, the area will be in square centimeters and the volume in cubic centimeters. Mixing inches and feet produces incorrect results.
Do not confuse radius and diameter. The radius is half the diameter. If you are given a diameter of 10, enter 5 as the radius. This is one of the most common errors in circle calculations.
Remember height versus slant height for cones. The height is the perpendicular distance from base to tip. The slant height runs along the surface. The calculator computes slant height for you, but make sure you enter the vertical height.
For triangles, use perpendicular height. The height in the area formula must be perpendicular to the chosen base. If you only know the three side lengths, the calculator computes the perimeter; for area from sides alone, use the triangle calculator instead.
Verify 3D results make physical sense. A small increase in radius can dramatically change volume because it appears cubed in the formula. Double-check that your volume results are reasonable for the object you are measuring.
Frequently Asked Questions
What shapes does this geometry calculator support?
The calculator handles six 2D shapes (circle, triangle, rectangle, square, parallelogram, trapezoid) and four 3D shapes (sphere, cube, cylinder, cone). For 2D shapes it computes area and perimeter or circumference. For 3D shapes it computes volume and surface area. Some shapes also display additional properties like diagonals or slant height.
How is the area of a circle calculated?
The area of a circle equals pi multiplied by the radius squared, written as A = pi times r squared. For a circle with radius 5 the area is approximately 78.5398 square units. The circumference is computed as 2 times pi times r, giving approximately 31.4159 units for the same circle.
What is the difference between area and surface area?
Area applies to flat 2D shapes and measures the space enclosed within the boundary. Surface area applies to 3D shapes and measures the total area of all outer faces. A cube with edge length 4 has a surface area of 96 square units because it has six faces each measuring 16 square units.
How do I calculate the volume of a cylinder?
The volume of a cylinder equals pi times the radius squared times the height. Enter the radius and height into the calculator to get the result instantly. For a cylinder with radius 3 and height 8 the volume is approximately 226.1947 cubic units. This formula works because a cylinder is essentially a stack of circular cross-sections.
Why does the trapezoid need five measurements?
The area formula requires the two parallel bases and the height between them. The perimeter calculation needs all four side lengths. Since the non-parallel sides are typically different lengths both must be specified separately. The calculator uses all five values to give you complete measurements.
Can I use this calculator for real-world measurements?
Absolutely. Enter measurements in any consistent unit such as inches, centimeters, or meters. The results will be in the corresponding squared or cubed units. Just make sure all inputs use the same unit system. The calculator does not perform unit conversions so consistency is your responsibility.
What is the slant height of a cone?
The slant height is the distance from the tip of the cone to any point on the edge of the circular base measured along the surface. It is calculated using the Pythagorean theorem as the square root of the radius squared plus the height squared. The surface area formula uses this slant height.
How accurate are the calculations?
Results are computed using standard floating-point arithmetic and displayed to four decimal places. The value of pi used is the full-precision JavaScript constant Math.PI which has about 15 significant digits. This precision exceeds what is needed for virtually all practical construction, engineering, and academic applications.
Related Calculators
Basic Calculator
Free basic calculator for addition, subtraction, multiplication, and division. Easy-to-use online calculator with history feature and responsive design.
Scientific Calculator
Free scientific calculator with trigonometric, logarithmic, exponential functions. Includes sin, cos, tan, log, ln, powers, roots, constants π and e, memory functions.
Percentage Calculator
Free online percentage calculator. Calculate percentage of a number, percentage increase/decrease, what percent is X of Y, and percent change between values.
Fraction Calculator
Free fraction calculator with step-by-step solutions. Add, subtract, multiply, and divide fractions. Automatic simplification and mixed number conversion.
Algebra Calculator
Free algebra calculator with step-by-step solutions. Solve linear equations, quadratic equations, simplify expressions, and systems of equations online.
Statistics Calculator
Free statistics calculator for data analysis. Calculate mean, median, mode, standard deviation, variance, range, quartiles and frequency distribution for any dataset.