acalculator

What is the square root of a number?

Type a number to get its square root and, for a whole number, its simplified radical form. Type a root to get the number back.

Your numbers

Square root (√x)
8.485281

The square root of 72 is 8.485281.

Number (x)
72
Negative square root
-8.485281
Simplified radical form
6√2
Perfect square?
No

Square root (√x): 8.485281. The square root of 72 is 8.485281.

How to calculate

Finds the square root of a number with its simplified radical form, or the number from its square root.

Example with the default inputs (Number (x) 72): The square root of 72 is 8.485281.

Method: √x = r, where r ≥ 0 and r² = x.

  • Real numbers only: x must be 0 or more (the square root of a negative number is imaginary).
  • The principal root: √x is the root that is 0 or more; −√x is the other square root.
  • A whole number of up to 100 digits is read exactly: the perfect-square check and the root of a perfect square are exact at any such size.
  • The simplified radical form is shown for whole numbers up to 10¹⁸, and for every perfect square.
  • A decimal is read as a 64-bit float, about 16 significant digits.

Machine-readable copies: Markdown, JSON.

Worked examples

Each example is checked against the calculator on every build.

  1. Number (x) 72 gives Square root (√x) 8.485281, Negative square root -8.485281, Simplified radical form 6√2, Perfect square? no.Source: hand calculation in content.mdx: 72 = 36 × 2, so √72 = 6√2; Python 3: math.sqrt(72) = 8.48528137423857
  2. Number (x) 144 gives Square root (√x) 12, Simplified radical form 12, Perfect square? yes.Source: hand calculation in content.mdx: 12² = 144
  3. Number (x) 2 gives Square root (√x) 1.414214, Simplified radical form √2, Perfect square? no.Source: hand calculation in content.mdx: 2 has no square factor; Python 3: math.sqrt(2) = 1.4142135623730951
  4. Or its square root (√x) 1.5 gives Number (x) 2.25.Source: hand calculation in content.mdx: 1.5² = 2.25
  5. Number (x) 0.25 gives Square root (√x) 0.5.Source: hand calculation in content.mdx: 0.5² = 0.25
  6. Number (x) 12345678987654321 gives Square root (√x) 111,111,111, Number (x) 12,345,678,987,654,321, Simplified radical form 111111111, Perfect square? yes.Source: hand calculation in content.mdx: 111,111,111² = 12,345,678,987,654,321; Python 3: math.isqrt(12345678987654321) = 111111111
  7. Number (x) 1800 gives Square root (√x) 42.426407, Simplified radical form 30√2.Source: hand calculation in content.mdx: 1,800 = 900 × 2, so √1,800 = 30√2; Python 3: math.sqrt(1800) = 42.42640687119285

How it works

The square root of a number x is the number r that is 0 or more and gives x when squared:

√x = r, where r ≥ 0 and r × r = x

Fill in either box and the calculator finds the other (leave the other box empty):

  • Square root: r = √x. Only x of 0 or more has a real square root.
  • Number: x = r².

It also shows:

  • Negative square root: −√x. Both √x and −√x square to x, but √x means the one that is 0 or more.
  • Simplified radical form (whole numbers only): √x written as k√s (k and s without thousands separators), where s is a whole number with no square factor other than 1. The calculator splits x into prime factors. Each pair of equal prime factors moves out of the root as one factor of k, and each unpaired prime factor stays inside, in s. When nothing is left inside (s = 1), x is a perfect square and the form is just k.
  • Perfect square? Yes when the whole number x is the square of a whole number (s = 1).

Assumptions

  • Real numbers only: x must be 0 or more.
  • Whole numbers are exact. A number typed as digits only (with optional thousands commas in groups of three, such as 12,345,678; a comma elsewhere, as in 1,5, has no answer; a true minus sign − reads as a minus) is read as an exact whole number, up to 100 digits. Longer whole numbers have no answer ("Enter a whole number of at most 100 digits."). The square root's whole part ⌊√x⌋ comes from Newton's method on whole numbers, so the perfect-square check is exact at any such size: 12,345,678,987,654,321 = 111,111,111², so its root is 111,111,111 and it is a perfect square. The root of a perfect square is shown with every digit. The root of a whole number that is not a perfect square is irrational and is shown as a 64-bit float, about 16 significant digits.
  • The simplified radical form is shown for every perfect square, and for other whole numbers from 0 to 10¹⁸. Above 10¹⁸ it is left out for numbers that are not perfect squares. √0 = 0, and 0 is a perfect square.
  • The number is shown in the answer as typed, with thousands separators: "The square root of 12,345,678,987,654,321 is 111,111,111." The link keeps the typed digits.
  • Decimals (a number with a decimal point or in e-notation, such as 0.25 or 1e20) are read as 64-bit floats, about 16 significant digits, and get no radical form or perfect-square check. A number in e-notation is written out in full in the answer (2.50e3 shows as 2,500). One limit applies both ways: a typed number, a decimal, or a number worked out from the root has at most 100 digits before the decimal point (below 10¹⁰⁰); a larger decimal has no answer ("Enter a number with at most 100 digits before the decimal point.").
  • Text that is not a number has no answer ("Enter a number, for example 1,200 or 3.5."), and so does a negative number ("Enter 0 or more: a negative number has no real square root.").
  • From the root: leave the number empty and type a square root r of 0 or more. r² is worked out exactly from the decimal digits of r as typed (1.5 is 15 ÷ 10, so 1.5² = 225 ÷ 100 = 2.25) and rounded once. A whole r gives the exact whole number r², with its radical form and the perfect-square check (Yes). Another r gives the 64-bit float nearest to the exact r², shown as the shortest decimal that reads back as the same number (at most 17 significant figures). A result with more than 100 digits before the decimal point (r² ≥ 10¹⁰⁰, for example r = 10⁵⁰) has no answer ("The number would have more than 100 digits before the decimal point."), and so does a non-zero result below about 2.2 × 10⁻³⁰⁸. When both boxes are filled (an old link), the page answers from the number if the square root fits it (within 1 part in 10¹² of the square root worked out from the number), and otherwise has no answer ("These do not fit: clear the number or its square root.").

Worked examples by hand

√72. 72 = 2 × 2 × 2 × 3 × 3. The pairs are (2, 2) and (3, 3), so k = 2 × 3 = 6, and one 2 is left inside: √72 = 6√2. As a decimal, 6 × 1.41421356 = 8.48528137. The negative root is −8.48528137. 72 is not a perfect square.

√144. 12 × 12 = 144, so √144 = 12, and 144 is a perfect square.

√2. 2 is prime, so nothing comes out: the simplified form is √2 = 1.41421356.

The number whose square root is 1.5. 1.5 × 1.5 = 2.25.

√0.25. 0.5 × 0.5 = 0.25, so √0.25 = 0.5. It is not a whole number, so there is no simplified radical form.

√12,345,678,987,654,321. Newton's method gives ⌊√x⌋ = 111,111,111, and 111,111,111² = 12,345,678,987,654,321 exactly, so the root is 111,111,111, the simplified form is 111111111, and it is a perfect square.

√1,800. 1,800 = 2³ × 3² × 5². The pairs give k = 2 × 3 × 5 = 30, and one 2 is left inside: √1,800 = 30√2 = 42.42640687.

Other questions people ask

What is a square root?

A square root of x is a number that gives x when you multiply it by itself. 5 × 5 = 25, so 5 is a square root of 25. So is −5, because (−5) × (−5) = 25 too. The symbol √ means the principal square root, the one that is 0 or more, so √25 = 5.

How do I simplify a square root?

Find the largest perfect square that divides the number, and take its root outside the radical. 72 = 36 × 2 and √36 = 6, so √72 = 6√2. A square root is fully simplified when the number left inside has no square factor other than 1.

What is a perfect square?

A whole number that is the square of a whole number: 1, 4, 9, 16, 25, 36 and so on. Its square root is a whole number, and its simplified radical form has nothing left inside the root.

Can I take the square root of a negative number?

Not as a real number, because any real number times itself is 0 or more. The square roots of −9 are the imaginary numbers 3i and −3i, where i = √−1. This calculator works with real numbers, so it asks for a number of 0 or more.

Why is the square root of 2 not a fraction?

Because √2 is irrational: no fraction of whole numbers squares to exactly 2. Its decimal goes on forever without repeating (1.41421356…). The same is true for the square root of every whole number that is not a perfect square.

How do I find a square root without a calculator?

Find the two perfect squares either side of the number, then refine. For √30: 5² = 25 and 6² = 36, so the root is between 5 and 6. Try 5.5: 5.5² = 30.25, a little too big. Try 5.47: 5.47² = 29.92, a little too small. Each guess halves the gap, and √30 = 5.4772…