---
title: "Pythagorean Theorem Calc"
method: GET
path: "/api/calc/pythagorean-theorem-calculator"
tags: ["Math"]
---

# Pythagorean Theorem Calc

`GET /api/calc/pythagorean-theorem-calculator`

## Request

- Base URL: `https://calcbright.com`
- URL: `https://calcbright.com/api/calc/pythagorean-theorem-calculator`
- Auth: none declared

Legs of 3 and 4 give a hypotenuse of 5. Solve a² + b² = c² for any side of a right triangle, with exact radicals like 5√2, the angles, area and full working.

## Query parameters

- `solve` 'c' | 'leg': Solve for
- `a` number: Leg a
- `b` number: Leg b
- `c` number: Hypotenuse c

## Response `200`

Calculation result

- CalcOutput
  - `ok` boolean
  - `tool` string
  - `name` string
  - `url` string: Open this link to see the full calculation
  - `inputs` object
  - `summary` string: Plain-text answer
  - `details` string
  - `result` object
  - `errors` object

## Other responses

- `400`: Invalid input (see errors)

---

[API](https://skmtc.dev/calcbright/apis/calcbright-calculator-api.md) · [All operations](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/revisions/f58229e56e58?raw)
