Square Root Calculator (√n)
√n with integer-perfect-square check, simplified surd form, and decimal expansion.
Result
Loading calculator…
—
How to use this calculator
- Enter non-negative number.
- Read decimal + simplified surd form.
About this calculator
The square root of n is the value x where x² = n. Perfect squares (1, 4, 9, 16, 25, …) have integer roots; everything else has irrational roots. Simplified surd form pulls out the largest perfect-square factor: √50 = √(25 × 2) = 5√2. JavaScript Math.sqrt is implementation-defined but typically uses hardware FPU instruction (CVTSS2SS, FSQRT) — accurate to last bit. For huge integers, Newton's method or arbitrary-precision libraries.
Frequently asked
Why simplified surds?+
Cleaner exact representation. √50 = 5√2 — easier to reason about than 7.0710678…
Negative numbers?+
Real sqrt undefined; complex sqrt is i × √|n| (imaginary). This calc returns "imaginary" notice.
How is sqrt computed?+
Hardware FSQRT (Intel/ARM): typically Newton-Raphson. JavaScript exposes Math.sqrt; returns IEEE 754 nearest-rounded.
Big integers?+
JS Number gives 15 digits. For larger, use BigInt + Newton iteration. This calc covers most needs to ~10^15.
Alternative: nth-root?+
Generalized: x^(1/n). Square root = x^(1/2). Cube root = x^(1/3). See cube-root for ∛.
Related calculators
Cube Root Calculator (∛n)
∛n with perfect-cube detection, simplified surd form, and decimal expansion.
Scientific Notation Converter
Convert decimal ↔ scientific notation. Standard form a × 10^b with 1 ≤ |a| < 10.
Prime Factorization Calculator
n = p₁^a₁ × p₂^a₂ × … Trial division to find all prime factors with multiplicity.
Factorial Calculator (n!)
n! = 1 × 2 × … × n. Computes exactly up to 21! (number limit); approximate via Stirling for larger.
GCD (Greatest Common Divisor) Calculator
Euclidean algorithm: gcd(a,b) = gcd(b, a mod b). Supports 2-6 integers.
Prime Number Checker
Is n prime? Trial division up to √n; identifies smallest divisor and nearest primes if composite.