Square Root Calculator

Enter a non-negative number x. The calculator finds the principal square root √x (y ≥ 0, y² = x). √81 = 9; √144 = 12; √2 ≈ 1.41421356. A negative radicand has no real square root — the calculator reports an error, not an imaginary value.

Input

Result

Enter a non-negative number.

x must satisfy x ≥ 0. The result is always non-negative. √0 = 0. The calculator computes the principal real root (√), not a complex branch.

How it works

How √81 is computed
x81
√x9

The square root of a number x is a number y ≥ 0 such that y² = x. The notation √x means that y — the principal real square root. √81 = 9, because 9 × 9 = 81. √0 = 0. Perfect squares 1, 4, 9, 16, 25, 81, 100 give exact results. For √2 and √5 the calculator shows a decimal (√2 ≈ 1.41421356).

The domain is simple: x ≥ 0. A negative number has no real square root and the calculator reports an error (for example √(−9)). The result is never negative: (−9)² = 81, but √81 = 9. That is the school-algebra standard and NIST DLMF §4.2 for the power x^(1/2) when x > 0.

The calculator uses the number you enter in the “Number” field. The result is √(x) via the calculator; for x > 0 the panel also compares exp((1/2) ln x). Comma and period are equivalent.

The result panel shows √x, an echo of x, the check y², and — when x > 0 — a comparison with exp((1/2) ln x). The bar diagram compares x with y² on a shared scale. Examples: 81 → 9; 2 → ≈ 1.41421356; 0.25 → 0.5; 0 → 0; 144 → 12.

The separate nth-root page computes any integer degree n. A power with exponent 1/2 is the other writing of the same relation, and for x > 0 it yields the same number. This calculator does not simplify radicals like √8 = 2√2 and does not return complex roots.

Formula

√x = y when y² = x and y ≥ 0 (x ≥ 0).

For x > 0: √x = x1/2 = exp((1/2) ln x) (NIST DLMF §4.2).

For x < 0: no real root.

Symbols: x — radicand (the “Number (x)” field); y — result √x. Mathematical model: principal square root, per school algebra, Heron/Newton methods, and NIST DLMF §4.2.

Theory: definition, Heron, Newton

Definition

The square root √x, also written x^{1/2}, means in the reals the non-negative value y such that y² = x. For x > 0 there is exactly one such y > 0; for x = 0, √0 = 0. For x < 0 there is no y ∈ ℝ. The calculator computes √(x) and for x > 0 also shows exp((1/2) ln x) from NIST DLMF §4.2.

MathWorld (Square Root) and algebra texts stress the non-negative branch: although (−y)² = x when y = √x, the notation √x means only +y. This calculator reports an error for negative x — matching the ℝ model.

Historical context: Euclid and irrationality

Squares and roots were known in Babylon (tables approximating √2). In Euclid’s Elements, geometric constructions link √x to the side of a square of area x. The irrationality of √2 — traditionally associated with the Pythagorean school — shows that a root need not be rational: no lowest-terms p/q satisfies (p/q)² = 2.

Conceptually √x is the inverse of y ↦ y² on [0, ∞). In the complex numbers every x ≠ 0 has two square roots; the principal Arg branch selects one. Here we stay with the non-negative real root.

Heron’s (Babylonian) method

Heron of Alexandria’s classical method (and earlier Babylonian recipes) approximates √x by iteration: start from y₀ > 0, then y_{k+1} = (y_k + x/y_k)/2. Geometrically that is the arithmetic mean of y_k and x/y_k — the sides of a rectangle of area x. The sequence converges quickly to √x for x > 0.

For x = 2 and y₀ = 1: y₁ = 1.5; y₂ ≈ 1.4167; y₃ ≈ 1.414215 — already close to √(2). The calculator does not list Heron steps in the panel; the theory explains why the same formula appears in Newton’s method.

In classroom practice it helps to separate the mathematical formula from floating-point limits: this calculator reports the browser’s floating-point computation (about 15–16 significant digits), not a symbolic identity on paper. When inputs are extreme, check the domain first, then the floating-point range.

Newton’s method for f(y) = y² − x

Newton–Raphson for f(y) = 0 with f(y) = y² − x and f′(y) = 2y yields y_{k+1} = y_k − (y_k² − x)/(2y_k) = (y_k + x/y_k)/2. The identity with Heron’s method is classical: both are the same quadratic iteration.

Modern √ in floating-point arithmetic uses hardware or library approximations (often with a Newton / Goldschmidt correction), not hand-stepped Heron loops. The result panel compares √ with exp((1/2) ln x) for x > 0 to show agreement with the power definition.

Formal properties

For x ≥ 0: (√x)² = x and √(x²) = |x| in the reals. For a, b ≥ 0: √(a·b) = √a · √b and √(a/b) = √a / √b when b > 0. √x = exp((1/2) ln x) for x > 0. The function √ is concave and increasing on [0, ∞).

The identity √(x²) = |x| explains why √ never returns a negative even when x is the square of a negative number “in the history” of a calculation. The panel’s y² check returns to the entered x (within floating-point error).

Special cases and examples

Examples on this page: √81 = 9; √2 ≈ 1.41421356; √0.25 = 0.5; √0 = 0; √144 = 12; √256 = 16; √100 = 10; √0.01 = 0.1. √(−9) → error. Perfect squares yield an exact result.

The Pythagorean theorem and vector length use the same root but with a sum of squares — separate pages. Here there is one field x.

The calculator computes √x and marks perfect squares when the result is an integer in the y² ≈ x check. The panel compares x with y² on a shared bar scale and shows exp((1/2) ln x) for x > 0. That is not a separate Heron iteration — only a consistency check between the power definition and the root.

The nth root, a power with an exponent, and the Pythagorean √(a²+b²) are siblings: each task has different inputs. Here there is one field x ≥ 0. Negative x ends in an error in the real model; zero yields zero.

Examples: √81 = 9; √2 ≈ 1.41421356; √0.25 = 0.5; √0 = 0; √144 = 12; √256 = 16; √100 = 10; √0.01 = 0.1. The y² check returns to x within floating-point arithmetic noise.

Numerical notes and sources

√(x) for x ≥ 0 is stable in the usual floating-point arithmetic range. Comma and period are equivalent. The calculator does not return −√x or complex roots.

Sources: NIST DLMF §4.2; MathWorld — Square Root; Wikipedia — Square root / Heron’s method; Euclid’s Elements (geometric context). Educational tool.

In classroom practice it helps to separate the mathematical formula from floating-point limits: this calculator reports the browser’s floating-point computation (about 15–16 significant digits), not a symbolic identity on paper. When inputs are extreme, check the domain first, then the floating-point range.

The classroom floating-point arithmetic reminder stays in the Heron section and below. The calculator does not return −√x. Sources: NIST DLMF §4.2; MathWorld — Square Root; Wikipedia — Square root; Euclid’s Elements.

How to use

  1. Enter a non-negative number in Number, for example 81.
  2. Click Calculate or wait for the live result. √81 = 9. √2 shows about 1.41421356.
  3. Check the panel: echo of x, the y² check, exp/ln when x > 0, and the bar diagram.
  4. A negative number does not run in the reals. Entered 0 gives 0.
  5. Any degree n lives on the nth-root page. A power with exponent 1/2 is the other writing of the same relation.

Symbol glossary

√x is y ≥ 0 such that y² = x. √81 = 9. √2 ≈ 1.41421356. √0 = 0.

√x
Principal square root. Always non-negative. √81 = 9. √0.25 = 0.5.
x
Radicand in the “Number (x)” field. Requires x ≥ 0.
y²
Check: the square of the result should return to x (within floating-point error).
x^(1/2)
Power form for x > 0; equivalent to exp((1/2) ln x).

Examples

Example 1

  • x = 81

9

What is √81? 9, because 9² = 81.

Example 2

  • x = 2

≈ 1.41421356

What is √2? ≈ 1.41421356 — irrational; check y² ≈ 2.

Example 3

  • x = 0.25

0.5

What is √0.25? 0.5 — the root of a quarter is a half.

Example 4

  • x = 0

0

What is √0? 0.

Example 5

  • x = 144

12

What is √144? 12 — a perfect square.

Example 6

  • x = 256

16

What is √256? 16.

Example 7

  • x = 100

10

What is √100? 10.

Example 8

  • x = 0.01

0.1

What is √0.01? 0.1.

Related calculators

Frequently asked questions

What is the domain of the square root?

The radicand x must satisfy x ≥ 0. For x < 0 there is no real square root and the calculator reports an error. √0 = 0. The result is always non-negative: √81 = 9, not −9.

What is √81?

The result is 9, because 9 × 9 = 81. That is the first example on this page and the same result after “Fill this example”.

What is √2?

About 1.41421356. √2 is irrational. The panel also shows the check y² ≈ 2.

Is √0 = 0?

Yes. Zero times zero is zero. Entered 0 returns 0.

Why does √(−9) fail?

In the reals a negative number has no square root. This calculator stays with the ℝ model and reports an error instead of a blank field.

How is this different from the nth-root calculator?

Here n is always 2 and there is one Number field. On the nth-root page you enter x and any non-zero integer n. With n = 2 and x = 81 the result is still 9.

How is √x written as a power and with exp/ln?

For x > 0, √x = x^(1/2) = exp((1/2) ln x). The exp/ln form follows the real power definition in NIST DLMF §4.2. The calculator compares that form with √(x).

Does 6.25 give 2.5?

Yes. 2.5 × 2.5 = 6.25. Comma and period in the field are equivalent.

Can the result be negative?

No. The result is the non-negative principal root. (−9)² = 81, but √81 = 9.

Do the currency and unit settings in the page header affect the result?

No. The result depends only on the entered number x. The currency and unit settings in the page header do not affect this result.

What are Heron’s method and Newton’s method?

Heron’s (Babylonian) method and Newton’s method for f(y) = y² − x yield the same iteration y_{k+1} = (y_k + x/y_k)/2. The calculator uses the browser √; the theory section explains those methods for learning.

What are √16, √100, and √49?

4, 10, and 7. Those are perfect squares, so the results are exact integers.

How do I calculate the square root of a number?

Find the non-negative y such that y² = x. For perfect squares the result is an integer: √81 = 9, √144 = 12. For √2 the result is irrational ≈ 1.41421356. Enter x ≥ 0 in the Number field.

What is the square root of 144?

√144 = 12, because 12 × 12 = 144. That is a perfect square — the fifth example on this page.

What is a perfect square?

An integer whose square root is also an integer: 0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144… √81 = 9, √100 = 10. Most numbers are not perfect squares.

Does the calculator simplify radicals such as √72 = 6√2?

No. The result is the decimal principal root (plus the y² check). Simplified radical form is not a separate field on this page.

Does a negative number return an imaginary root?

No. The model is the reals: for x < 0 the calculator reports an error. Imaginary roots (for example √−9 = 3i) are outside this card.

The result is the principal square root: for x = 81 it is 9. The y² check returns to x. Any degree n is on the nth-root page.

Sources

The definition, Heron/Newton methods, and exp/ln form below come from established mathematical sources.

Page Updated November 2, 2026.