SR
Square Root Calculator
Find the square root of any positive or negative number instantly, with imaginary results clearly labeled for negative inputs.
More Math Tools
How to Use Square Root Calculator
Type any number to see its square root calculated live. Positive numbers show a standard decimal result; negative numbers show the imaginary result, written with an "i", along with a short note explaining why, instead of a blank or broken output.
About Square Root Calculator
The square root of a number x is the value that, when multiplied by itself, gives x back. The square root of 9 is 3, because 3 × 3 = 9. Square roots are the inverse operation of squaring, and they show up constantly in geometry (finding the side length of a square from its area), physics (calculating speed or distance from energy formulas), and statistics (standard deviation is literally defined as a square root).
Every positive number has two square roots — a positive one and a negative one, since (-3) × (-3) also equals 9 — but by convention, "the square root", with the √ symbol, always refers to the non-negative one, called the principal square root. This tool always returns that principal, positive value for any non-negative input.
Worked example: √64 = 8, because 8 × 8 = 64. For a non-perfect square like √20, the result is irrational and gets a long decimal expansion — approximately 4.472136 — which this tool rounds to six decimal places and trims of any trailing zeros for a clean, readable answer.
Negative numbers are where square roots get genuinely more advanced. There is no real number that, multiplied by itself, produces a negative result — a negative times a negative is always positive, and a positive times a positive is also always positive. So √(-16) has no answer within the real numbers. Mathematicians solve this by defining the imaginary unit i, where i² = -1 by definition. Using that, √(-16) can be written as √16 × √(-1), or 4 × i, or "4i" for short. This tool computes exactly that: it takes the square root of the absolute value of your negative input, and appends an "i" to clearly flag that the answer is imaginary, not a plain real number.
A common misconception is assuming a negative input to a square root is simply "invalid" or an error, the same way dividing by zero is. It isn't an error in the mathematical sense — it's a different, well-defined kind of number, an imaginary number, just one that doesn't behave like an ordinary decimal on a ruler or a price tag. Imaginary and complex numbers, a real part combined with an imaginary part, are essential in electrical engineering (AC circuit analysis), signal processing, and quantum mechanics, so treating √(-16) as "4i" rather than a dead end reflects how the math is actually used in practice, even if you'll rarely need it outside a classroom or specialized job.
Another subtle point: √0 is exactly 0, not undefined and not imaginary — zero is its own square root, since 0 × 0 = 0, and this tool handles that boundary case the same way it handles any other non-negative number, with no special messaging needed.
Details & Tips
The formula: for x ≥ 0, result = √x, computed with JavaScript's native square-root function. For x < 0, result = √|x| followed by the imaginary unit i — the tool computes the square root of the absolute value of x and appends "i" to the displayed value, along with a note underneath that the answer is an imaginary number.
Worked examples: x = 144 gives √144 = 12, since 12 × 12 = 144 exactly, a perfect square. x = 2 gives √2 ≈ 1.414214, the famous irrational constant that also represents the diagonal length of a unit square. x = -25 has the tool compute √25 = 5 and display "5i", since there is no real number whose square is -25, but 5i squared (5i × 5i = 25 × i² = 25 × -1 = -25) satisfies the equation in the complex numbers.
Edge cases this widget handles: zero input returns exactly 0, not an error or a blank field. Negative input returns an imaginary result labeled with a trailing "i" and an explanatory note, rather than "NaN", "—", or "Too large", which would all be misleading for a mathematically well-defined answer. Empty or non-numeric input shows the standard "—" placeholder rather than attempting any calculation. Extremely large inputs still resolve correctly, only falling back to "Too large" once the number itself exceeds what can be represented precisely.
Practical tip: if you're working a real-world problem involving lengths, areas, or physical quantities and you get an imaginary result, that's usually a signal to double check your setup rather than a usable answer — a real square or a real distance can't have a negative area or a negative squared value feeding into the square root. Imaginary results are expected and useful in specific technical fields, like electrical engineering and signal processing, but almost never appear in everyday geometry or finance problems, so seeing an "i" in the answer for those contexts is a good prompt to re-check the numbers you entered rather than proceed with the calculation as if it were a normal measurement.
Frequently Asked Questions
What is a square root?
The value that, multiplied by itself, gives back the original number — the square root of 9 is 3, because 3×3=9.
What happens with a negative number?
The result is shown as an imaginary number, like "4i" for -16, since no real number squared gives a negative result.
What does the "i" in the answer mean?
It represents the imaginary unit, where i² = -1 by definition — a well-defined type of number used in advanced math and engineering.
Is √(-16) really "invalid"?
No — it has a valid answer in the imaginary numbers (4i), it just isn't a plain real, decimal number.
What is the square root of 0?
Exactly 0 — zero is its own square root.
Why isn't my answer a whole number?
Most numbers are not perfect squares, so their square root is an irrational decimal, shown here rounded to six places.
Does the calculator show both positive and negative square roots?
No — it shows the principal (positive) square root by convention, the one universally meant by the √ symbol.
Can I use this for geometry problems?
Yes — it's commonly used to find a square's side length from its area, or a right-triangle side from the Pythagorean theorem.
What if I see "Too large"?
The input number is too large for the result to be represented as a precise, finite value.
How is this different from the Cube Root Calculator?
Cube roots of negative numbers are ordinary real numbers, while square roots of negative numbers require imaginary numbers — a fundamentally different case.
Do I need to know about imaginary numbers to use this?
No — for any non-negative input, the answer is a completely normal decimal; the imaginary note only appears for negative inputs.
Can this replace a scientific calculator's √ button?
For basic square root lookups, yes — for combining a square root into a larger expression, use the Scientific Calculator instead.
Also Available As
sqrt calculator, square root solver, imaginary number calculator, radical calculator, root finder, principal square root
Found a Problem?
Let us know if something with Square Root Calculator isn't working as expected.
Something went wrong. Please try again.
Thanks — we'll take a look.