HYPOT Function (Gnumeric)
Find the hypotenuse with Gnumeric HYPOT using a 3-4-5 triangle example. Includes syntax, the result and practical tips.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
HYPOT in Gnumeric calculates the length represented by numeric perpendicular components. A two-component input gives a right-triangle hypotenuse, but the function also accepts additional components for higher-dimensional lengths.
This guide explains how to read the formula, reproduce a concrete example, interpret its result and recognize common input mistakes.
Availability and version history
- Introduced: Documented by 1.12.62; original introduction not established.
- Availability: Supported in Gnumeric 1.12.62, based on the function-specific registration.
- Scope: Desktop; the fn-math function module must be included and enabled.
- Checked: October 18, 2026. Official documentation and released-source inspection, with independent calculations; no Gnumeric 1.12.62 execution.
Syntax and arguments
HYPOT(number1, number2, …)
The numeric components can be supplied as separate arguments; Gnumeric’s HYPOT is not limited to two components. number1 and number2 are the first components, and the ellipsis represents further components. Do not type the ellipsis into a formula. The result is the square root of the sum of their squares, so its unit is the same as the input components’ unit.
These examples use numeric literals or individual numeric cell references and commas between arguments. They do not establish every text, Boolean, empty-cell or range-coercion rule.
Worked example
=HYPOT(3,4)
Expected result: 5.
Why it works: Calculates the hypotenuse of a right triangle with legs three and four.
Another practical example
Practice inputs: No worksheet cells are required.
=HYPOT(5,12)
Expected result: 13.
By the Pythagorean theorem, sqrt(5²+12²)=13. This is handy for distances and perpendicular components.
What to watch for
Use consistent units for all input lengths.
For LibreOffice Calc formulas, separators are commonly semicolons; the Gnumeric examples here use commas. The arithmetic or official reference supplies the expected result, but Gnumeric has not been executed for this review.
Three-dimensional components: the missing argument case
Enter the following numeric cells:
| Cell | Value | Meaning |
|---|---|---|
| A2 | 2 | First perpendicular component |
| A3 | 3 | Second perpendicular component |
| A4 | 6 | Third perpendicular component |
In B2 enter =HYPOT(A2,A3,A4). The expected result is 7, because 2² + 3² + 6² = 49 and the square root is 7. The equivalent literal formula is =HYPOT(2,3,6). This is a vector-length example, not a three-sided triangle calculation.
Signed components are allowed in the mathematical model: =HYPOT(-2,3,-6) also expects 7. Squaring removes direction, so the result is a length rather than a signed displacement. =HYPOT(0,0) expects 0.
For a small independent check, =SQRT(2^2+3^2+6^2) also represents 7. That manual-square alternative is useful for checking this dataset; it is not a numerical-stability benchmark or a promise that both formulas behave identically at extreme floating-point magnitudes.
How to use it in your own spreadsheet
- Identify the cells or inputs that correspond to the sample values above.
- Enter the formula in an empty cell, changing the references or literal values to match your sheet.
- Compare the output with a manual check on a small known example.
- Extend the formula to a larger dataset only after you understand the result.
Common problems and practical checks
- Wrong units: convert components to the same unit before calculating a combined length. Mixing metres and centimetres makes the result meaningless.
- Unexpected positive result: HYPOT measures magnitude; it does not preserve a component’s sign.
- Missing dimension: include every intended component. A two-argument example does not impose a two-argument limit.
- Mixed data: inspect input cells and use actual numeric values for a reproducible check. This guide does not claim a complete coercion or empty-input test matrix.
- Very large or small values: expected results here are modest exact checks. No Gnumeric numerical-precision or overflow benchmark was run.
Related functions
Documentation and verification
-
Formula expectations were checked independently against the official reference and the variable-argument implementation in the Gnumeric 1.12.62 release. Gnumeric was not run for this review; the examples are expected calculations rather than screenshots or native execution evidence.
-
Gnumeric 1.12.62 released source archive: inspected the relevant function implementation; no source code was executed or compiled for these examples.