Shape studies / Plane shapes

Rectangle Diagonal: from inputs to a useful answer

The diagonal joins opposite corners and forms a right triangle with the two sides. Pythagoras gives its length.

Length compared with the result of Rectangle Diagonal; the example conditions stay fixed
Figure 1. Calculated scenarios for rectangle diagonal. The highlighted point uses the example input. Lines connect sampled points and do not imply valid fractional counts.

Start with the relationship

The question this tool answers is specific: given length, width, what value follows from the stated model? The result is expressed in cm. The calculation below makes that relationship visible, so the answer can be checked independently instead of accepted as an unexplained number.

square root of (length² + width²)

Start with a dimensioned sketch and label the units beside every measurement. Distinguish the outer edge from an internal opening, and distinguish a radius from a diameter. A geometric model is most useful when the shape actually matches the assumptions in the formula.

A worked example

Use the following values as a reproducible starting point. They are illustrative inputs, not measurements of your situation or a recommendation for a particular project. The calculator opens with the same values, making it possible to compare a manual calculation with the on-screen answer.

InputExample valueUnit
Length12cm
Width5cm

Substitute these quantities into the displayed relationship: length = 12 cm; width = 5 cm. Carry out the operations before rounding the final value. This gives 13 cm. The number is a result for this particular set of inputs; changing the measurement basis or the conditions can change its practical meaning.

What changes when an input changes?

In the illustrated range, changing length from 7.2 to 16.8 cm moves the result from 8.765843 to 17.528263 cm. The output increases between those endpoints. The table gives intermediate samples so you can see whether the response is smooth, stepped or nonmonotonic; the endpoints alone do not establish that behaviour.

Every other input keeps the value shown in the example table. This controlled comparison isolates one relationship at a time. For a real decision, try a lower, central and higher plausible input instead of treating an uncertain measurement as perfectly exact.

Length (cm)Result (cm)
7.28.765843
9.610.824047
1213
14.415.243359
16.817.528263

The assumption that matters

Use actual perpendicular side lengths. Perspective in a photograph does not preserve measured lengths.

A valid numerical result only means the entered values can be evaluated by this formula. It does not confirm that the formula describes every feature of the real situation. Read the unit labels, check the measurement method and keep the specific limitation above with the result when sharing it.

Use the result in your own work

Open the calculator, replace the example values and select Calculate. The result is evaluated on your device. Reset example restores this article's scenario, while Copy result keeps the quantity and unit together. If an input is outside the model's allowed range, correct it before interpreting the output.

Keep more digits during a chain of calculations than you show in a finished note. Displayed values are rounded for readability; extra decimals do not make a rough measurement more accurate. When your decision depends on a tight tolerance, compare the original measurements and assumptions before relying on the last displayed digit.

Open Rectangle Diagonal

Further reading & method notes

OpenStax — mathematics and physics learning resources provides background for this subject. This article's numerical examples and chart were calculated from the formula shown above. See the editorial policy for how this collection presents assumptions and corrections.

Keep exploring