Solve a²+b²=c² — find the hypotenuse, find a missing leg, or measure the distance between two points (2D & 3D). Browser-only.
- Runs locally
- Category Calculator
- Best for Getting a realistic range before a purchase, plan, workout, or schedule decision.
Hypotenuse c = 5
- Perimeter
- 12
- Area
- 6
- angle at A (opposite a)
- 36.869898°
- angle at B (opposite b)
- 53.130102°
Right triangle (to scale)
What this tool does
Three calculators built on a single idea: a² + b² = c². Mode 1 takes the two legs of a right triangle and returns the hypotenuse, plus the perimeter, the area (½·a·b), both acute angles in degrees, and a check on whether your sides form an integer Pythagorean triple like 3-4-5 or 5-12-13. Mode 2 works backwards — give it the hypotenuse and one leg and it returns the other leg as b = √(c²−a²), refusing the impossible case where a leg would be longer than the hypotenuse. Mode 3 is the distance between two points: d = √((x₂−x₁)²+(y₂−y₁)²), and it spells out that the gaps Δx and Δy are simply the two legs of a right triangle whose hypotenuse is the distance — flip on the Z axis and the same idea handles 3D. Every triangle result comes with a to-scale inline diagram so you see the shape, not just the numbers, every figure has a one-click copy button, and the inputs live in the URL so a share link reopens the exact problem. All of it is plain JavaScript that runs in your browser — nothing you type is uploaded.
Tool details
- Input
- Files + Text + Numbers
- The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
- Output
- Live result + Copy + Preview
- The result area focuses on usable output, with copy, download, or preview actions when supported.
- Privacy
- Browser-side processing
- The main tool logic does not call an external API, so inputs normally stay in the current tab.
- Save / share
- Shareable URL state
- Key settings are encoded in the URL so another person can reopen the same setup.
- Performance budget
- Initial JS <= 10 KB
- No WASM budget is declared, keeping the tool quick to open on mobile.
- Best fit
- Calculator · Student
- Category and role tags drive related tools, internal links, and quick fit checks.
How to use
-
1. Input
Paste or drop your content into the tool panel.
-
2. Process
Click the button. All processing is local in your browser.
-
3. Copy / Download
Copy the result or download to disk in one click.
How Pythagorean Theorem Calculator fits into your work
Use it for fast estimates, comparisons, and planning numbers before you make the final call.
Calculation jobs
- Getting a realistic range before a purchase, plan, workout, or schedule decision.
- Comparing scenarios by changing one input at a time.
- Turning rough assumptions into a number you can discuss.
Calculation checks
- Double-check units, dates, rates, and rounding assumptions.
- Treat health, finance, tax, and legal outputs as planning aids, not professional advice.
- Save the inputs that produced an important result so you can reproduce it later.
Good next steps
These links move the current task into a more complete workflow.
- 1 Triangle Calculator Triangle solver — SSS, SAS, ASA, AAS, and the ambiguous SSA case via law of sines + law of cosines. All sides, angles, area, perimeter, type, drawn to scale. Open
- 2 Trigonometry Calculator Trigonometry calculator — sin/cos/tan + inverse + sec/csc/cot, degree/radian/gradient, unit circle visualization, exact values. Open
- 3 Slope Calculator Two points in, full line out — slope, angle, distance, midpoint, y = mx + b and grade % — browser-only Open
Real-world use cases
Square a foundation with a 3-4-5 layout
You are setting out the corner of a deck and need it dead square without a framing square big enough to trust. Measure 3 ft along one edge and 4 ft along the other; the diagonal between those marks must be exactly 5 ft for a true 90° corner. Punch 3 and 4 into the leg mode and it confirms the hypotenuse is 5 and flags it as an exact Pythagorean triple. Want a longer baseline for more accuracy? Use 6-8-10 or 9-12-15 — the same triple scaled up, and the tool will confirm each one.
Find a TV or monitor's true width from its diagonal
A screen advertised as 27 inches is measured corner to corner — that is the hypotenuse. A common 16:9 panel means width and height are in a 16:9 ratio, so you can treat the diagonal as c and solve the legs. Use the leg mode with the 16- and 9-unit sides to see the diagonal-to-width relationship, or the find-a-leg mode if you already know one dimension and want the other. It is the fastest way to check whether a screen actually fits the slot in your desk before you buy.
Measure straight-line distance on a map grid
You have two points on a coordinate map — a trailhead at (2, 3) and a summit at (11, 15) in kilometers. Switch to distance mode, enter both points, and read d = 15 km as the crow flies. The tool also shows the legs Δx = 9 and Δy = 12, so you can see the 9-12-15 right triangle hiding in the calculation. For a drone flight that also climbs, flip on the Z axis and add the altitude change for the true 3D path length.
Check a geometry homework answer
The worksheet says "a right triangle has legs 6 and 8 — find the hypotenuse and both acute angles." Enter 6 and 8 in the leg mode: the hypotenuse is 10, the area is 24, and the acute angles are about 36.87° and 53.13°, which sum to 90°. Because the diagram is drawn to scale, a student can also see that the longer leg sits opposite the larger angle — the kind of intuition a flat list of numbers never builds.
Size a diagonal brace for a gate or frame
You are building a rectangular gate 1.2 m wide and 0.9 m tall and want a diagonal brace to stop it sagging. The brace spans corner to corner, so its length is the hypotenuse of a 1.2 by 0.9 right triangle. Enter those in the leg mode and read 1.5 m — cut the timber to that and the brace fits exactly. The tool's area and angle outputs also tell you the brace meets each corner at about 36.87° and 53.13°, useful when you mitre the ends.
Common pitfalls
Plugging the hypotenuse in as a leg. The hypotenuse is always the longest side and sits opposite the right angle. If you put it where a leg goes, a²+b²=c² gives the wrong answer — use the find-a-leg mode and enter it in the hypotenuse field instead.
Using a²+b²=c² on a triangle that is not right-angled. The theorem only holds when two sides meet at exactly 90°. For other triangles use the law of cosines; this tool's leg/hypotenuse modes assume a right angle.
Forgetting to square the differences in the distance formula. The distance is √((x₂−x₁)²+(y₂−y₁)²), not (x₂−x₁)+(y₂−y₁). Each gap is a leg that must be squared first; the distance mode does this for you and shows the legs so the step is visible.
Privacy
Every calculation — hypotenuse, missing leg, angles, area, and the distance formula — is plain JavaScript that runs entirely in your browser tab. Nothing you enter is uploaded, logged, or sent to any server, and there is no external API call. The one thing to note: the shareable URL encodes your current inputs in the query string (for example ?m=legs&a=3&b=4), so if you paste a share link somewhere, that destination's access log will record those numbers. For schoolwork or a job-site measurement that is harmless; copy the result manually if a value is ever sensitive.
FAQ
Tool combos
Folks in your role tend to reach for these alongside this tool.
- Chinese Acupoint Locator 200+ meridian acupoints / WHO 2008 standard locations / with contraindications, manipulation, and combinations.
- Affine Cipher Encoder & Decoder Encrypt and decrypt the ax+b affine cipher with live modular-inverse check, browser-only
- Anagram Solver Check if two words are anagrams, rearrange a set of letters into every ordering, and read the sorted letter fingerprint, all in your browser
- Angle Converter Degrees, radians, gradians, turns, arcminutes, arcseconds and NATO mils, all from one input, copyable, browser-only