calculatorgate.com
Home
/Length Calculator

Length Calculator

Calculate perimeter, hypotenuse, and diagonal length for triangles, circles, and rectangles.

Last updated: November 14, 2026

About Length Calculation

How to calculate perimeter, hypotenuse, and diagonal

This tool doesn't calculate area — it calculates length-based measurements: perimeter, hypotenuse, and diagonal.

Triangle: Enter two legs (a, b) to get the hypotenuse via the Pythagorean theorem (c = √(a²+b²)) and the perimeter (a+b+c). Enter all three sides to get just the perimeter (a+b+c).

Circle: Enter the radius to calculate its circumference (Circumference = 2πr).

Rectangle: Enter width and height to calculate the perimeter (2×(width+height)) and diagonal length (√(width²+height²)).

Looking for area instead? Try our Area Calculator.

Frequently asked questions

Short answers to common questions

What is the Pythagorean theorem?

In a right triangle, a² + b² = c². a and b are the two legs, and c is the hypotenuse (the longest side, opposite the right angle).

How is perimeter calculated?

Perimeter is the total length of all of a shape's sides. For a triangle it's the sum of the three sides, for a rectangle it's 2×(width+height), and for a circle it's 2πr.

What is a diagonal?

A diagonal is the line connecting two opposite corners of a rectangle. It's calculated with the Pythagorean theorem: √(width²+height²).

Can this tool calculate area?

No, this tool only calculates length-based measurements like perimeter, hypotenuse, and diagonal. To calculate area, use our Area Calculator.