---
title: "Compute the square root of a non-negative number. Returns the decimal result, whether the input is a perfect square, and a simplified radical form (e.g. '√12' simplifies to '2√3'). For integer inputs, factors are extracted from under the radical sign. Useful for geometry (diagonal/hypotenuse calculations), statistics (standard deviation from variance), signal processing (RMS values), and general algebra. Chain with pythagorean_theorem for triangle side calculations."
method: POST
path: "/api/square_root"
tags: ["general"]
---

# Compute the square root of a non-negative number. Returns the decimal result, whether the input is a perfect square, and a simplified radical form (e.g. '√12' simplifies to '2√3'). For integer inputs, factors are extracted from under the radical sign. Useful for geometry (diagonal/hypotenuse calculations), statistics (standard deviation from variance), signal processing (RMS values), and general algebra. Chain with pythagorean_theorem for triangle side calculations.

`POST /api/square_root`

## Request

- Base URL: `https://calc.engineer`
- URL: `https://calc.engineer/api/square_root`
- Auth: none declared

## Request body

- object
  - `value` number, required: The non-negative number to compute the square root of

## Response `200`

Computed result for square_root

- object
  - `result` object, required
    - `result` number, required: The square root of the input value
    - `is_perfect_square` boolean, required: True if the input is a perfect square integer
    - `simplified_radical` string, required: Simplified radical form (e.g. '2√3' for √12)
  - `tool` string, required
  - `version` string, required
  - `computed_at` string, date-time, required
  - `chain` object, required
    - `feeds` unknown[]
      - unknown
    - `accepts_from` unknown[]
      - unknown

## Other responses

- `400`: Validation error or invalid JSON
- `404`: Tool not found

---

[API](https://skmtc.dev/calc/apis/calc-engineer-api.md) · [All operations](https://skmtc.dev/calc/apis/calc-engineer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/calc/apis/calc-engineer-api/revisions/8830480ec488?raw)
