Math & Education
Exponent, Root & Logarithm Calculator
Calculate powers, square/cube/nth roots (with radical simplification like √72 = 6√2) and logarithms in any base.
How to use
- 1Choose power, root or logarithm.
- 2Enter the numbers — roots of whole numbers are also shown in simplified radical form.
How it's calculated
Power: bⁿ. Root: ⁿ√x = x^(1/n); simplification pulls out perfect nth-power factors. Log: log_b(x) = ln x ÷ ln b.
Frequently asked questions
How do I simplify a square root?
Find the largest perfect square factor: √72 = √(36 × 2) = 6√2.
Can I take roots of negative numbers?
Odd roots, yes (∛−8 = −2). Even roots of negative numbers aren't real numbers.
What's the natural log?
Log base e ≈ 2.71828. Choose base e, or enter 2.718281828.
Worked example: simplifying √72 instead of leaving it as a decimal
√72 ≈ 8.485, but the useful exact form pulls out the largest perfect-square factor: 72 = 36 × 2, so √72 = √36 × √2 = 6√2. The calculator finds this by factoring 72 into primes (2³ × 3²), then pulling out every pair of matching factors — one 2 and one 3 come out front (since 2² and 3² are both perfect squares hiding inside 72), leaving a single 2 behind the radical. The same logic generalizes to cube roots and beyond: ∛(-27) simplifies cleanly to -3 because -27 is a perfect cube, with no leftover radical at all.
Why even roots reject negative numbers but odd roots don't
Squaring any real number — positive or negative — always gives a non-negative result, so there's no real number whose square is negative, which is why √(-4) has no real answer. Cube roots don't have this restriction: (-3)³ = -27, so ∛(-27) = -3 is perfectly valid. This calculator allows negative inputs only when the root index is odd, and blocks even roots of negative numbers rather than returning a misleading result.
Logarithms are just roots and powers rearranged
log₁₀(1000) = 3 because 10³ = 1000 — a logarithm answers "what exponent gets me here," which is the mirror image of the power operation above it. The formula used internally, log_b(x) = ln(x) ÷ ln(b), works for any base by converting through natural log, which is also how you'd compute a log on a calculator that only has an ln or log₁₀ button: there's no need for a dedicated log-base-7 function when this change-of-base trick works for any base.
Powers handle negative and fractional exponents the same way algebra does
This calculator's power mode isn't limited to positive whole-number exponents — 2^10 = 1,024 is the familiar case, but the same bⁿ formula handles a negative exponent like 2^-3 (= 1/2³ = 0.125) and a fractional one like 9^0.5 (= 3, since a 0.5 exponent is just another way of writing a square root) without needing a separate mode. That's worth knowing if a homework problem phrases a root as a fractional exponent instead of a radical sign — this tool answers it correctly either way.
Why a perfect cube root doesn't always compute to a perfectly clean number
Computing ∛64 as 64^(1/3) using floating-point exponentiation doesn't actually land on exactly 4 internally — JavaScript's Math computes it as roughly 3.9999999999999996, off by less than a trillionth. Left alone, that tiny error would display as an ugly near-integer instead of a clean 4. This calculator checks whether the result is within a hair (1 part in a billion) of a whole number and, if so, snaps it to that exact integer before displaying it — a small but necessary correction, since without it, exact roots of perfect powers would look subtly, confusingly wrong.
Related tools
- Grade Curve Calculator
Curve a set of test scores — raise the top score to 100, add a flat bonus, or scale to a target average — and see each student's new score.
- Fraction Calculator
Add, subtract, multiply and divide fractions and mixed numbers, with the answer simplified, as a mixed number and as a decimal.
- Polynomial Factoring Calculator
Factor polynomials with integer coefficients — common factors, rational roots, difference of squares and irreducible quadratics — and list all the roots.
- Ratio & Proportion Calculator
Simplify ratios like 12:18 to 2:3, scale a ratio to a total, and solve proportions (a:b = c:x) for the missing value.
- P-Value Calculator (z, t, chi-square)
Get the p-value for a z-score, t-statistic or chi-square statistic — one- or two-tailed — and check it against your significance level.
- Chi-Square Test Calculator (Goodness of Fit & Contingency Table)
Run a chi-square goodness-of-fit test or a test of independence on a contingency table: get χ², degrees of freedom, the p-value and whether the result is significant.