Diagonal calculator
Gives the diagonal of a square or rectangle and the space diagonal of a cube or cuboid from the side lengths, with the face diagonals, or finds a missing side from the diagonal.
- Free
- No sign-up
- Works on any device
About Diagonal calculator
The diagonal of a rectangle follows from Pythagoras, d = √(a² + b²), and for a square it is a√2. In three dimensions the space diagonal of a cuboid is √(a² + b² + c²) and for a cube a√3. Enter the sides and the page gives the diagonal together with the face diagonals, area, volume, surface area and the angle the diagonal makes with a side. You can also work backwards from a known diagonal, for example finding the edge of a cube from its space diagonal. A 2 by 3 by 6 box has a space diagonal of exactly 7.
How to use Diagonal calculator
- Pick square, rectangle, cube or cuboid.
- Enter the sides, or choose that you know the diagonal and enter it with the remaining sides.
- Read the diagonal, the face diagonals and the other measurements.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
- Free to embed on your own website, with a ready-made code to copy.
Also known as
Frequently asked questions
How do I find the diagonal of a square?
Multiply the side by √2, about 1.414214. A square with side 5 has a diagonal of 7.071068, and both diagonals are equal and cross at right angles.
What is the difference between a face diagonal and a space diagonal?
A face diagonal lies in one face of the box. The space diagonal passes through the inside from one corner to the opposite corner and is longer than any face diagonal.
Can I find a side when I know the diagonal?
Yes. For a rectangle give the diagonal and one side, and the page returns the other as √(d² − a²). A cube edge is the space diagonal divided by √3.
Is Diagonal calculator free?
Yes. Diagonal calculator on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.
Can I put Diagonal calculator on my own website?
Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.