Pythagorean Leg screenshot

Pythagorean Leg

Compute unknown leg from hypotenuse and known leg in your browser: 5 and 0.5 gives 4.974937.

Privacy First
0 Runs
Updated 2026-11-16
Runs in your browser
No sign-up, no upload

What this Pythagorean Leg does

Enter 5 hypotenuse and 0.5 known leg and the page evaluates sqrt(x^2-y^2), printing 4.974937 — the expression is fixed, only the values are yours.

The unknown leg is the root of the hypotenuse square minus the known leg square, by Pythagoras. The page takes that root. The page evaluates the expression for the values typed and prints six decimal places with trailing zeros trimmed.

Neighbour table

hypotenuse unknown leg
1 0.866025
2 1.936492
5 4.974937
10 9.987492

Rounding

Six decimal places, trailing zeros trimmed: 5 hypotenuse with 5 hypotenuse and 0.5 known leg prints as 4.974937 unknown leg. The table above varies the hypotenuse and holds the rest at the worked values; it is computed from the same expression, not typed in.

What it refuses

A blank box, anything that is not a number, a missing known leg (y), and a negative value under a square root. A refusal names the fix instead of guessing.

What it excludes

lengths in, closed forms out: the page evaluates the stated expression and never inverts it — it will not solve for a side from an area or un-round a rounded intermediate.

How to use it

Pythagorean Leg: paste 5 into hypotenuse, 0.5 into known leg into the boxes above and press Run to get the unknown leg below.

Worked example

Input:

hypotenuse (x) = 5
known leg (y) = 0.5

Output:

4.974937

Why it runs in your browser

The formula is evaluated on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. Reloading the page discards every value.

Enter 5 hypotenuse and 0.5 known leg and the page evaluates sqrt(x^2-y^2), printing 4.974937 unknown leg.

The unknown leg is the root of the hypotenuse square minus the known leg square, by Pythagoras. The page takes that root. The expression is fixed — only the values are yours.

The page runs entirely in your browser: nothing is posted, stored or timed.

One expression, stated once

The unknown leg is the root of the hypotenuse square minus the known leg square, by Pythagoras. The page takes that root. Results print to six decimal places with trailing zeros trimmed.

The neighbour table on the page varies the hypotenuse and holds the rest at the worked values; it is computed from the same expression, not typed in.

  • Expression: sqrt(x^2-y^2)
  • Inputs: hypotenuse (x) and known leg (y)
  • Six decimal places, trailing zeros trimmed
  • Same expression for every visitor

How to use this calculator

Paste 5 hypotenuse and 0.5 known leg and press Run. The unknown leg appears below with the expression that produced it.

A blank box, a non-number or a missing input is refused with the fix named.

What to Expect

Best for

  • Evaluating sqrt(x^2-y^2) for 5 hypotenuse and 0.5 known leg
  • Checking homework against a stated formula

Not ideal for

  • Solving for an input — the page evaluates forward only
  • lengths in, closed forms out: the page evaluates the stated expression and never inverts it — it will not solve for a side from an area or un-round a rounded intermediate.

What this tool keeps

  • The fixed expression sqrt(x^2-y^2) — the page evaluates it for the values typed
  • The value unchanged: the expression is pure, so the same inputs always print 4.974937

What may need cleanup

  • Six places can hide a seventh that matters for machining tolerances
  • A pasted value with a unit suffix is refused, not stripped

Common errors

  • Typing two values into one box instead of one per input
  • Reading the expression as editable — only the values are yours

Example use cases

  • Evaluating sqrt(x^2-y^2) for 5 hypotenuse and 0.5 known leg
  • Double-checking a result quoted without its expression

Sample input

Enter 5 hypotenuse and 0.5 known leg (the page prints 4.974937 unknown leg).

Sample output

4.974937 unknown leg, at six decimal places.

Who this is for

  • Anyone evaluating sqrt(x^2-y^2) once
  • Anyone checking a result against its formula

Frequently asked questions

What does the expression mean?

The unknown leg is the root of the hypotenuse square minus the known leg square, by Pythagoras. The page takes that root. For 5 hypotenuse and 0.5 known leg the page prints 4.974937 unknown leg.

Can the expression be edited?

No. The expression is fixed on the page — only the hypotenuse and known leg are yours, so two visitors typing 5 and 0.5 always read the same answer.

What input is refused?

A blank box, anything that is not a number, a missing known leg (y), and a negative value under a square root. A refusal names the fix instead of guessing.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.