You have a square garden with an area of 50 square metres and you want to fence it. How long is each side? You need a number that, multiplied by itself, gives 50. Seven is too small, because , and eight is far too big, because . The answer is the square root of 50, written , and it comes to about metres. Check: .
That is the whole idea. The square root of a number is the non-negative value whose square is : because , and because that number times itself is 50. The rest of this article covers how to find a square root when the answer is not a whole number, how to simplify square roots, why the square root of 2 cannot be written as a fraction, what happens with negative numbers, and where the radical sign came from.
What does the square root symbol actually mean?
Every positive number has two square roots. Both and equal 49, so the equation has two solutions:
The radical sign picks out just one of them, the non-negative one, called the principal square root. So , never . This is a convention, but an important one: it makes a genuine function, with exactly one output for each input. When you solve an equation and need both roots, you write the yourself, which is exactly what the quadratic formula does with its (derived by completing the square).
A consequence that trips people up:
For instance . Squaring destroys the sign, and the principal root cannot recover it.
The number under the sign is called the radicand, and expressions containing roots are called radicals. Zero has exactly one square root, . Negative numbers have no real square roots at all, a problem we will return to.
Which numbers are perfect squares?
A perfect square is the square of a whole number. These are the numbers whose square roots come out exact, and it pays to know the first twenty by heart:
| 1 | 1 | 6 | 36 | 11 | 121 | 16 | 256 |
| 2 | 4 | 7 | 49 | 12 | 144 | 17 | 289 |
| 3 | 9 | 8 | 64 | 13 | 169 | 18 | 324 |
| 4 | 16 | 9 | 81 | 14 | 196 | 19 | 361 |
| 5 | 25 | 10 | 100 | 15 | 225 | 20 | 400 |
The gaps between consecutive perfect squares grow steadily: , because
So the perfect squares are exactly the running sums of the odd numbers: , , , and so on.
This list is the first tool for estimating any square root. To find , note that , so . A better estimate comes from the gap: 30 is 5 above 25, and near the square root grows at a rate of about per unit, so
The true value is , so the estimate is off by about 0.02. That little correction formula, , is the seed of the Babylonian method below. For the garden it gives , already correct to three decimal places.
Why does the diagonal of a square have length √2?
Square roots are, at heart, a geometric idea: the side of a square with a given area. The left panel below shows the oldest and most famous example. Draw the diagonal of a unit square, then build a new square on that diagonal. The new square is made of four half-unit triangles, exactly twice the original, so its area is 2 and its side, the diagonal, has length . The same result follows from the Pythagorean theorem: , so .
Left: the tilted square built on the diagonal of a unit square is made of four half-squares, so its area is 2 and its side is √2. Right: the graph of y = √x rises steeply near zero and then flattens; the red points are the perfect squares 1, 4, 9 and 16.
The right panel shows the square root as a function. Its graph is half of a sideways parabola: the curve is the mirror image of (for ) in the line . Notice how it flattens out. Going from to raises by 2, but going from to raises it by only 1.
How do you simplify a square root?
Most square roots never come out whole, but many can be written in a tidier form. The key rule, valid for , is
To simplify, find the largest perfect square that divides the radicand and take its root outside:
If you cannot spot the largest square factor, break the number into primes and pair them up: , so one pair of 2s and the pair of 3s come out as , leaving a single 2 inside.
The rule works for multiplication and division, and only those. The most common error in algebra is to assume it works for addition. It does not:
In general whenever and are both positive. Geometrically, that is the triangle inequality: a right triangle with legs 3 and 4 has hypotenuse 5, shorter than the 7 you would walk along the legs.
Rationalising the denominator. By convention, a simplified answer has no square root in the denominator. Multiply the top and bottom by the root:
When the denominator is a sum or difference, multiply by its conjugate, using :
The habit dates from hand calculation: halving is easy; dividing 1 by it is not.
How do you calculate a square root by hand?
The fastest hand method is about 4,000 years old. It is usually called the Babylonian method or Heron’s method, after Heron of Alexandria, who used it in his Metrica in the first century CE to find .
The idea: if is a guess for that is too large, then is too small, and the other way round, because their product is exactly . The true root lies between them, so average the two:
The garden, . Start from :
| Step | Value | Error |
|---|---|---|
| about |
The true value is Two steps give eight correct digits; a third step gives about seventeen, more than any pocket calculator displays.
The square root of 2. Start from the crude guess and watch the correct digits:
| Step | Value | Correct digits |
|---|---|---|
| 1 | ||
| 3 | ||
| 6 | ||
| 12 | ||
| 24 |
The number of correct digits roughly doubles at every step. The reason is that the Babylonian method is exactly Newton’s method applied to the equation , and Newton’s method converges quadratically near a simple root: each new error is about the square of the old one. The full theory is in that article; here it is enough to notice that from step 2 onward each error is roughly the square of the previous one, divided by .
Two pleasant facts fall out of the arithmetic of means. First, after the first step every iterate is an overestimate, because the arithmetic mean of and is never smaller than their geometric mean, which is . Second, the fractions , and are all convergents of the continued fraction for :
A clay tablet from Babylon. The tablet known as YBC 7289, in the Yale Babylonian Collection and dated to the Old Babylonian period (roughly 1800 to 1600 BCE), shows a square with its diagonals and the number 1;24,51,10 written in base 60. Converting:
The true value is , so the tablet is short by about . In fact , so 1;24,51,10 is the best value possible with three sexagesimal places. How the scribe obtained it is not recorded; an averaging procedure like Heron’s is one plausible route, but it remains a reconstruction.
Is there a digit-by-digit method for square roots?
Before electronic calculators, schoolchildren learned a method laid out like long division that produces one exact digit at a time. It is slower than Heron’s method but never requires dividing by an awkward decimal, and it tells you each digit is final as soon as it appears.
Here it is for :
- Split the number into pairs of digits, working left from the decimal point: 5 and 29.
- The largest square not exceeding 5 is . Write 2 as the first digit. Subtract to get and bring down the next pair: 129.
- Double the root so far () and find the largest digit with . Since , . The remainder is 0.
So exactly. For a number that is not a perfect square, keep bringing down pairs of zeros. For the steps run: first digit 1 (remainder 1); , digit 4 (remainder 4); , digit 1 (remainder 119); , digit 4 (remainder 604); , digit 2. That gives , one digit per round.
Why does it work? Each step uses the identity : having found the root of the leading pairs, the next digit must make fit into what is left. In binary the method becomes even simpler, since each new digit is 0 or 1 and the test is a single comparison, which is why variants of it are used inside processors.
Is the square root of 2 irrational?
Yes. No fraction of whole numbers equals exactly, however large the numerator and denominator. The proof is one of the oldest and most elegant in mathematics, and it works by contradiction.
Suppose , where and are whole numbers with no common factor (any fraction can be reduced to lowest terms). Squaring gives
So is even. An odd number squared is odd, so itself must be even: write . Substituting,
so is even and is even. Now and are both even, contradicting the assumption that they share no common factor. The assumption was false: is irrational.
The same idea proves a much broader statement: is irrational for every whole number that is not a perfect square. A sketch: if , then . In the prime factorisation of a perfect square every prime appears an even number of times. Comparing the exponent of each prime on both sides, must also have only even exponents, which means is itself a perfect square. So , , and are all irrational, and the garden fence can never be measured exactly in any fraction of a metre.
Square roots like are irrational but still algebraic, roots of polynomials with integer coefficients (). Numbers like and are irrational in a stronger sense; they are transcendental, roots of no such polynomial at all.
The discovery of irrational lengths is usually credited to the Pythagorean school in the fifth century BCE. A famous story says that a Pythagorean named Hippasus of Metapontum revealed the secret and was drowned at sea for it. That tale is a legend: it comes from writers many centuries later, and the ancient sources disagree with one another about what Hippasus did and how he died. What is certain is that by the time of Plato and Euclid, the irrationality of was standard knowledge.
What is the square root of a negative number?
No real number squared gives a negative result: positive times positive is positive, and negative times negative is positive too. So within the real numbers, simply does not exist.
Mathematicians solved the problem by extending the number system. Define a new number with the property
Then every negative number has square roots: for , . For example,
Numbers of the form are the complex numbers, and the story of how they went from absurdity to essential tool is told in our article on imaginary numbers.
One trap needs flagging. The tidy product rule is only guaranteed when and are non-negative. Apply it blindly to negatives and you can “prove” that :
The faulty step is the one marked with a question mark. In the complex numbers, square roots cannot be chosen consistently enough for the product rule to survive, so the rule simply stops holding. The safe practice is to rewrite every as before multiplying anything.
Where are square roots used in practice?
Distance. The distance between two points comes straight from the Pythagorean theorem:
From to the distance is . GPS receivers, mapping apps, physics engines and machine-learning algorithms that measure similarity all evaluate this formula, in two, three or thousands of dimensions, many millions of times a second.
Statistics. The standard deviation is the square root of the variance. Variance averages squared deviations, which leaves it in squared units; the square root brings the spread back to the units of the data. Relatedly, averaging measurements shrinks random error by a factor of .
The fast inverse square root. Games need constantly, because normalising a vector to unit length means computing , and lighting calculations do this for every surface. In the 1990s, division and square roots were slow. The source code of Quake III Arena (1999), released in 2005, contained a now-famous shortcut. It reinterprets the 32 bits of a floating-point number as an integer , computes
and reads the result back as a float. A float’s bit pattern is roughly a scaled, shifted logarithm of the number, so halving and negating it approximates , with the constant fixing the offset. The result is within about 3.4 percent of . One Newton step for the equation ,
cuts the error to about 0.17 percent, good enough for lighting. The trick predates Quake, going back to graphics work in the late 1980s, though who chose the constant is still disputed. Modern processors have dedicated reciprocal-square-root instructions.
How calculators do it. The IEEE 754 standard for floating-point arithmetic requires square root to be correctly rounded, exactly like addition and multiplication: the answer must be the representable number closest to the true root. Hardware meets it in two broad ways: a binary digit-by-digit recurrence, or a small lookup table followed by a few Newton-style iterations, each doubling the correct bits, and a careful final rounding.
What about cube roots and other nth roots?
A cube root answers the same question for volume: the side of a cube with a given volume. Since , . Cube roots behave better than square roots with signs: every real number, positive or negative, has exactly one real cube root, so because .
More generally the th root is the number whose th power is ; for example . For even , negative numbers have no real th root, just as with square roots. In the complex numbers every nonzero number has exactly distinct th roots, spaced evenly around a circle, which is the subject of roots of unity.
Roots fit neatly into the laws of exponents. Since , the square root is the power one half:
So . Writing roots as fractional powers turns every root rule into an exponent rule; is just . It also makes calculus easy: the derivative of is , the same factor that powered our estimate of .
Who invented the square root symbol?
Square roots are much older than the sign we use for them.
Babylon, around 1800 to 1600 BCE. Old Babylonian scribes computed square roots in base 60 and used them in practical geometry. YBC 7289, with its six-digit-accurate value of , is the most famous witness.
India, first millennium BCE. The Sulba Sutras, manuals for constructing fire altars with precise areas, include a rule for the diagonal of a square. The version in the Baudhayana Sulba Sutra, usually dated somewhere in the range 800 to 500 BCE, amounts to
That is too large by only , correct to five decimal places, and it is the very same fraction that the Babylonian method reached in three steps from . Without the last term the rule gives ; why the authors added the final correction is still debated.
Greece and Alexandria. Greek geometers treated as a length rather than a number. Heron’s Metrica later wrote out the averaging method explicitly.
The radical sign. For centuries roots were written in words, abbreviations such as R for the Latin radix (“root”), or various local signs. The symbol first appears in print in Die Coss (1525) by the German algebraist Christoff Rudolff, without the horizontal bar. Its origin is uncertain; a popular explanation is that it grew out of a lowercase r for radix, but there is no direct evidence. The overbar, called a vinculum, was attached to the sign by René Descartes in La Géométrie (1637), giving the form we use today.
From a Babylonian tablet to a 32-bit hack, the question has never changed: given an area, find the side. The answer is easy to state, usually impossible to write down exactly, and so central that every calculator and processor has a dedicated way to compute it. And the garden? Its fence needs four sides of metres each, about 28.28 metres in all, which is .
Related topics: Newton’s Method: How Computers Find Roots, Imaginary Numbers: Why the Square Root of -1 Turned Out to Matter, The Pythagorean Theorem Explained, Continued Fractions: The Hidden Numerical Landscape, Transcendental Numbers: e, π, and What They Aren’t, Why Is It Called Completing the Square?, Binary Numbers: How Binary Works, from Bits to Two’s Complement, Floating-Point Arithmetic Explained, What Is Standard Deviation?
Frequently asked
What is a square root?
The square root of a number a is the value that gives a when multiplied by itself. Since 7 × 7 = 49, the square root of 49 is 7. Every positive number has two square roots, one positive and one negative (7 and −7 for 49), and the radical sign √ always means the positive one, called the principal square root.
How do you find a square root without a calculator?
Use the Babylonian (Heron) method. Guess a value g, divide the number by g, and average the result with g. Repeat. For √50, start at 7: the average of 7 and 50/7 is about 7.0714, already correct to three decimal places, and one more round gives 7.07106782. The digit-by-digit method, set out like long division, is a slower alternative that produces one exact digit at a time.
What are perfect squares?
Perfect squares are the squares of whole numbers: 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225 and so on. Their square roots are whole numbers. Every other positive whole number has an irrational square root, so knowing the perfect squares lets you bracket any root quickly: √50 lies between 7 and 8 because 50 lies between 49 and 64.
How do you simplify a square root?
Find the largest perfect square that divides the number under the radical and pull its root outside, using √(ab) = √a × √b. For example √72 = √(36 × 2) = 6√2, and √48 = √(16 × 3) = 4√3. A square root in a denominator is usually removed by rationalising: 1/√2 = √2/2.
Why is the square root of 2 irrational?
Suppose √2 = p/q as a fraction in lowest terms. Then p² = 2q², so p² is even, which forces p to be even. Writing p = 2k gives 4k² = 2q², so q² = 2k² and q is even too. Both p and q are then even, contradicting lowest terms, so no such fraction exists. The same argument shows √n is irrational whenever n is not a perfect square.
Can you take the square root of a negative number?
Not within the real numbers, because any real number squared is zero or positive. In the complex numbers it is possible: mathematicians define i as a number with i² = −1, so √−9 = 3i. One warning: the rule √a × √b = √(ab) fails for negative numbers, since √−1 × √−1 = i² = −1, not √1 = 1.