Square Root Calculator
Find the square root, cube root or any whole-number nth root of a number, negatives allowed for odd roots, shown to four decimals, with Newton's method for √2.
Square Root Calculator
Background.
The square root of a non-negative real number is the unique non-negative real number that, when multiplied by itself, yields the original value. This operation is among the oldest in mathematics. The Old Babylonian tablet YBC 7289 in the Yale Babylonian Collection, usually dated to roughly 1800–1600 BCE, draws a square with its diagonals and writes √2 in base 60 as 1;24,51,10. In decimal that is 1.41421296, within about six ten-millionths of the true value.
Today, square root computation is embedded in every branch of quantitative science, from calculating standard deviations in statistics to determining signal magnitudes in electrical engineering and solving quadratic equations in physics. Many everyday questions are square roots in disguise: a square plot of 2,500 square metres has sides of 50 metres, and a variance of 0.04 means a standard deviation of 0.2.
In financial modeling, square roots appear in the volatility term of the Black-Scholes option pricing formula, where volatility is scaled by the square root of the time to expiry. In computer graphics, square root operations normalize vectors and compute Euclidean distances in three-dimensional space. In civil engineering, square roots determine the resultant of perpendicular force components and the geometric mean of material properties.
The Root degree field reaches past square roots. Enter 3 for a cube root, which turns the volume of a cube into its edge length, 4 for a fourth root, and any larger whole number for the corresponding nth root. Answers appear to four decimal places, and switch to scientific notation when they fall below 0.001 or reach 10¹⁵, so the square root of 0.0000001 reads 3.162 × 10⁻⁴ rather than a misleading 0.0003.
What is square root calculator?
The square root of a non-negative real number a is the non-negative real number x such that x² = a. It is denoted by √a or a^(1/2). Every positive real number has exactly two square roots, one positive and one negative, but the symbol √a refers exclusively to the principal (non-negative) root. The square root of zero is zero, and the square root of one is one. Negative real numbers do not have real square roots; their square roots are pure imaginary numbers in the complex plane. The square root generalizes to the nth root, denoted ⁿ√a or a^(1/n), where n is an integer greater than or equal to 2. For even n, the nth root is defined only for a ≥ 0 and yields a non-negative result. For odd n, the nth root is defined for all real a, and the sign of the result matches the sign of the input. The Number field accepts negative values too, because an odd root of a negative number is real: the cube root of −27 is −3. An even root of a negative number is refused. The nth root is the inverse operation of raising a number to the nth power.
How to use this calculator.
- Enter the number you want the root of in the Number field. It may be negative only if the root degree is odd; decimals such as 0.75 or 12.5 are fine.
- Enter the root degree as a whole number in the Root degree field: 2 for a square root, 3 for a cube root, 4 for a fourth root. A fractional degree such as 2.5 is refused; for that, raise the number to the power 1/2.5 = 0.4 with an exponent calculator instead.
- Read the principal root in the Result box. It shows up to four decimal places, and very small or very large answers switch to scientific notation.
- To check an answer, raise it to the root degree. Squaring the displayed 1.4142 gives 1.99996164 rather than exactly 2, and the gap comes from the four-decimal display, not from the root itself.
The formula.
The square root function is defined implicitly by the equation x² = a for x ≥ 0 and a ≥ 0. For perfect squares such as a = 9 or a = 144, the square root is a whole number and can be found exactly by factoring or by lookup. For a positive integer that is not a perfect square, such as a = 2, the root is irrational: its decimal expansion is infinite and non-repeating, so every computation produces an approximation. Newton's method provides a rapidly converging iterative scheme. Starting from an initial guess x₀ > 0, the update rule x_{k+1} = (x_k + a/x_k)/2 averages the current guess with its co-factor. If x_k is too large, a/x_k is too small by a similar amount, so their average lands much closer to the root. The error e_k = x_k − √a satisfies e_{k+1} ≈ e_k² / (2√a), demonstrating quadratic convergence: the number of correct digits roughly doubles with each iteration. Double precision carries 53 significant bits, so a starting guess good to about 8 bits reaches full precision in three steps (8, 16, 32, then 64 bits). One Newton step from the nearest perfect square also makes a good mental estimate: for √50, start at 7 and compute (7 + 50/7)/2 = 7.0714, against the true 7.0711. For the general nth root, Newton's method applied to f(x) = xⁿ − a yields x_{k+1} = ((n−1)x_k + a/x_k^(n−1))/n.
This calculator does not iterate. It evaluates a^(1/n) with the built-in double-precision power function, which is the identity ⁿ√a = exp((ln a)/n) written as a power. One side effect is worth knowing: the exponent 1/n can be stored exactly in binary only when n is a power of two, so for a cube root the stored exponent sits a hair below 1/3. The cube root of 64 is therefore computed as 3.9999999999999996 rather than exactly 4. The four-decimal display rounds this to 4, so it only surfaces if you copy a full-precision value into further arithmetic elsewhere.
A worked example.
Take the square root of 2 by Newton's method, starting from the guess x₀ = 1.5. The first step averages 1.5 with 2/1.5 = 1.333333, giving x₁ = 1.416667. The second averages 1.416667 with 2/1.416667 = 1.411765, giving x₂ = 1.414216. The third averages 1.414216 with 2/1.414216 = 1.414211, giving x₃ = 1.414214 to six places. The errors after the three steps are about 0.0025, 0.0000021 and 1.6 × 10⁻¹², so the correct decimals go from two to five to eleven, roughly doubling each time, and a fourth step lands on the closest value double precision can hold. The calculator shows 1.4142. That one result gives a family of others, because multiplying a number by 100 multiplies its square root by 10: √200 = 14.1421 and √0.02 = 0.1414 carry the same digits, while √20 = 4.4721 does not, since 20 is 2 times 10 and 10 is not a perfect square.
Frequently asked questions.
Why can I not compute the square root of a negative number?
What is the difference between the square root and the principal square root?
How does the calculator compute nth roots?
What is Newton's method for square roots?
Why does a very high root degree give an answer close to 1?
Can I compute the square root of a fraction?
Which numbers are equal to their own square root?
How precise are the results from this calculator?
Can the result be shown as a simplified radical such as 6√2?
Is there a difference between √x and x^0.5?
References& sources.
- [1]Hardy, G.H. (1908). A Course of Pure Mathematics. Cambridge University Press.
- [2]Knuth, D.E. (1997). The Art of Computer Programming, Vol. 2: Seminumerical Algorithms, 3rd ed. Addison-Wesley.
- [3]Abramowitz, M. and Stegun, I.A. (1964). Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables. NBS Applied Mathematics Series 55.
- [4]NIST Digital Library of Mathematical Functions.
- [5]Newton, I. (1671). Method of Fluxions. (Published 1736).
How this page was produced
- Published by
- Quanta Calculator
- Overseen by
- Daniel, Quanta Calculator Researcher
- Primary sources
- 5 cited below
- Method
- x = ⁿ√a ⇔ xⁿ = a
- Published
- Last verified
Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 1560 calculators remain free
- No billing is enabled