Pick an operation and enter two numbers: this calculator raises x to the power n, finds the nth root of x or calculates the logarithm of x in base n. The result is shown in full and in scientific notation, which helps with very large or very small numbers.
Formula
Power: xⁿ. Root: ⁿ√x = x^(1/n). Logarithm: log_n(x) = ln(x) ÷ ln(n), the exponent y such that nʸ = x.
How it works
Pick the operation, enter x and n. Powers accept negative and fractional exponents (2^-1 = 0.5, 9^0.5 = 3). Roots of negative numbers are calculated only for odd indexes (the cube root of -8 is -2); an even root of a negative number has no real value. Logarithms need x > 0 and a positive base different from 1; use n = 10 for the common log and n = 2.718281828 for the natural log. Exact results such as ³√27 = 3 are rounded to clean integers.
How exponents, roots and logarithms are related
An exponent says how many times a number is multiplied by itself: 2¹⁰ = 2 × 2 × ... × 2 = 1,024. A root undoes a power: the cube root of 27 is 3 because 3³ = 27. A logarithm answers the remaining question, which exponent? log₂(1,024) = 10 because 2¹⁰ = 1,024.
So for any positive base n, the three operations are views of the same equation nʸ = x. The calculator uses the identities ⁿ√x = x^(1/n) and logₙ(x) = ln(x) ÷ ln(n), and rounds results that are exact integers (like ³√27 = 3) so they do not show floating point noise.
Worked examples
Power: x = 2, n = 10 gives 1,024. Compound growth is a power too: 1.05¹² = 1.7959, so something that grows 5% per period for 12 periods ends up about 79.6% larger. The compound interest calculator builds on exactly this.
Root: x = 144, n = 2 gives 12; x = 27, n = 3 gives 3; x = -8, n = 3 gives -2, because odd roots of negative numbers are real. Logarithm: x = 1,000, n = 10 gives 3, and x = 1,024, n = 2 gives 10.
Rules and special cases
Any nonzero number to the power 0 is 1, and a negative exponent means the reciprocal: 2⁻¹ = 0.5 and 10⁻³ = 0.001. A fractional exponent is a root: 9^0.5 = √9 = 3. Zero raised to a negative power is undefined (division by zero), so the calculator shows no result.
Even roots (square, fourth...) of negative numbers have no real value, and logarithms only exist for x > 0 with a positive base other than 1. For the natural logarithm use n = 2.718281828 (the number e); for the common logarithm use n = 10.
Tips and common mistakes
Watch the order of operations: -3² is -9 (the square applies only to 3), while (-3)² is 9. In the calculator, typing x = -3 and n = 2 means (-3)², so the result is 9. Also, (a + b)² is not a² + b²; it is a² + 2ab + b².
Square roots are everywhere in geometry: the hypotenuse in the Pythagorean theorem calculator and the discriminant in the quadratic formula calculator both rely on them. For results with many digits, read the scientific notation line: 1.024 × 10^3 means 1,024.
Frequently Asked Questions
- How do I calculate a square root?
- Choose Root and set n = 2. The square root of 144 is 12 because 12 × 12 = 144. For numbers that are not perfect squares, such as 2, the result is irrational (1.41421356...).
- How do I calculate a cube root?
- Choose Root and set n = 3. The cube root of 27 is 3 and the cube root of -8 is -2.
- What does a negative exponent mean?
- It means 1 divided by the positive power. 2⁻³ = 1 ÷ 2³ = 1/8 = 0.125.
- How do I calculate a logarithm in base 2?
- Choose Logarithm, enter the number as x and 2 as n. log₂(1,024) = 10, because 2¹⁰ = 1,024.
- Why can't I take the square root of a negative number?
- No real number multiplied by itself gives a negative result. In complex numbers √-1 = i, but this calculator works with real numbers only.