DigitHelm

Exponent Calculator | bⁿ, Roots & Logarithms

Calculate any base raised to any power (bⁿ), find the base given a result and exponent, or solve for the exponent using logarithms. Handles negative, fractional, and zero exponents with step-by-step working.

Presets

Press Enter to calculate · Esc to reset

What Is the Exponent Calculator | bⁿ, Roots & Logarithms?

Exponentiation is the operation of raising a base number b to a power n. For positive integer exponents, it is simply repeated multiplication: b³ = b × b × b. The result is called the power or the n-th power of b. The concept extends naturally to all real, and even complex, exponents through the properties of the exponential function.

Negative exponents represent reciprocals. The rule b⁻ⁿ = 1/bⁿ follows from the quotient rule: bᵐ / bⁿ = b^(m−n). Setting m = 0: b⁰/bⁿ = b^(−n), and since b⁰ = 1, we get 1/bⁿ = b^(−n). This makes powers of 10 especially useful in scientific notation: 10⁻³ = 0.001, 10⁶ = 1,000,000.

Fractional exponents are roots. The rule b^(1/n) = ⁿ√b follows from (b^(1/n))ⁿ = b^(n/n) = b¹ = b, so b^(1/n) must be the number that, raised to n, gives b. More generally, b^(p/q) = (b^p)^(1/q) = q-th root of bᵖ. For example, 8^(2/3) = (8²)^(1/3) = 64^(1/3) = 4, or equivalently (8^(1/3))² = 2² = 4.

Solving for the exponent is the inverse problem, given b and r, find n such that bⁿ = r. The answer is the logarithm: n = log_b(r) = ln(r)/ln(b). This underpins logarithmic scales, decibels, the Richter scale, pH, and any situation where you ask "how many times do I need to multiply this base to reach that result?"

Formula

Exponentiation, Core Definition
bⁿ = b × b × b × … (n times)
b = base · n = exponent (power) · bⁿ = the power
Negative exponent: b⁻ⁿ = 1 / bⁿ · e.g. 2⁻³ = 1/8 = 0.125
Fractional exponent: b^(p/q) = q√(bᵖ) · e.g. 8^(1/3) = ∛8 = 2
Zero exponent: b⁰ = 1 for any b ≠ 0 · Solve for base: b = r^(1/n) · Solve for exponent: n = log(r)/log(b)
Laws of Exponents (quick reference)
Product rule: aᵐ × aⁿ = a^(m+n)
Quotient rule: aᵐ / aⁿ = a^(m−n) · Power rule: (aᵐ)ⁿ = a^(mn)
Product of bases: aⁿ × bⁿ = (ab)ⁿ · Quotient of bases: aⁿ / bⁿ = (a/b)ⁿ
Inverse: log_b(bⁿ) = n · b^(log_b x) = x
All rules apply for any real base b ≠ 0 and any real exponents m, n
SymbolNameDescription
bBaseThe number being raised to a power; any real number (b ≠ 0 for negative exponents)
nExponent / powerHow many times b is multiplied by itself; any real number
bⁿPower / resultThe value produced by raising b to the n-th power
b⁻ⁿNegative exponent1 / bⁿ, reciprocal of bⁿ; e.g. 10⁻³ = 0.001
b^(1/n)Fractional exponentn-th root of b; e.g. 27^(1/3) = ∛27 = 3
b^(p/q)General fractionq-th root of b raised to the p; e.g. 8^(2/3) = (∛8)² = 4
b⁰Zero exponent1 for any b ≠ 0; 0⁰ is defined as 1 by convention
log_b rLog base b of rThe exponent n such that bⁿ = r; used in "solve for n" mode

How to Use

  1. 1
    Choose a mode: Select "bⁿ = ?" to compute a power, "b = ?" to find the base that produces a known result, or "n = ?" to find the exponent. Mode tabs appear at the top of the calculator.
  2. 2
    Load a preset (optional): In result mode, click any preset (2⁸, 2¹⁰, √2, e¹, φ², etc.) to auto-fill common values and see results immediately.
  3. 3
    Enter values: Type numbers into the input boxes. The calculator accepts integers, decimals, and negative numbers. For the base: any real number. For the exponent: any real number (fractional exponents compute roots).
  4. 4
    Press Calculate or Enter: Click "Calculate" or press Enter while focused in any input. The result appears instantly with all display formats.
  5. 5
    Read the result: The primary result is shown in large text. Three cards below show the decimal, scientific notation, and expression forms. A rational approximation is shown when the result is close to a simple fraction.
  6. 6
    Check exact vs approximate: A small indicator shows whether the result is exact (e.g. 2¹⁰ = 1024) or approximate (e.g. 2^0.5 ≈ 1.414...). Approximate results arise from irrational numbers and floating-point limits.
  7. 7
    Expand the step trace: Click "Calculation steps" to see the full derivation, formula applied, intermediate values, and (where applicable) a verification step for base/exponent-solving modes.
  8. 8
    Reset or revisit: Press Reset or Esc to clear the calculator. Your last valid inputs are saved automatically in browser storage and restored when you return to the page.

Example Calculation

Example 1: Integer power, 2¹⁰

How many possible values can a 10-bit binary number represent?

b = 2, n = 10 2¹⁰ = 2 × 2 × 2 × 2 × 2 × 2 × 2 × 2 × 2 × 2 = 1,024 Exact integer result. In networking: 2¹⁰ ≈ 10³ is why "kilo" in binary ≠ 1000. 2²⁰ = 1,048,576 (≈ 1 million), 2³⁰ = 1,073,741,824 (≈ 1 billion)

Example 2: Fractional exponent, 27^(2/3)

Fractional exponents compute roots. 27^(2/3) means the cube root of 27 squared.

b = 27, n = 2/3 = 0.666... Method 1: (27^(1/3))² = (∛27)² = 3² = 9 Method 2: (27²)^(1/3) = 729^(1/3) = ∛729 = 9 Result: 27^(2/3) = 9 (exact integer) General rule: b^(p/q) = (q-th root of b) raised to p

Example 3: Solve for exponent, compound interest

A bank account grows at 5% per year. How many years to double your money?

Find n such that 1.05ⁿ = 2 (i.e. money doubles) n = log(2) / log(1.05) = 0.69315 / 0.04879 ≈ 14.207 years Verification: 1.05^14.207 ≈ 2.000 ✓ Rule of 72: quick estimate → 72/5 = 14.4 years (close to exact)

Understanding Exponent | bⁿ, Roots & Logarithms

Why Exponents Matter

Exponentiation is the mathematical engine behind growth and decay. When a quantity grows (or shrinks) by a fixed percentage each period, the formula involves an exponent, and over time, even modest percentage changes produce dramatically large or small results. This is why compound interest feels slow at first and then suddenly enormous, and why radioactive materials decrease to a millionth of their original amount in just twenty half-lives rather than a million.

Integer Exponents in Computer Science

  • Powers of 2: Every binary address, memory size, and bit field is a power of 2. 2⁸ = 256 (byte), 2¹⁰ = 1024 (KiB), 2¹⁶ = 65,536, 2³² = 4,294,967,296 (32-bit integer range).
  • Big O notation: Algorithm complexity often involves powers, O(n²) means quadratic time, O(2ⁿ) means exponential time. Understanding what "exponential growth" means is essential for algorithm analysis.
  • Hash tables and data structures: Sizes are chosen as powers of 2 for efficient modular arithmetic using bitwise AND instead of division.
  • Cryptography: RSA encryption relies on modular exponentiation, computing aⁿ mod m efficiently for very large n (thousands of digits) using fast exponentiation algorithms.

Negative and Fractional Exponents

Negative exponents appear everywhere in science and engineering, particularly in unit expressions. Velocity is m·s⁻¹ (metres per second), acceleration is m·s⁻² (metres per second squared), and electric field strength is N·C⁻¹ (newtons per coulomb). The SI system uses this notation because b⁻¹ = 1/b cleanly extends the multiplication rules without introducing division symbols.

Fractional exponents unify roots and powers into a single notation. Instead of writing "cube root of x squared," you write x^(2/3). This form composes naturally with the product and power rules, (x^(2/3))^(3/2) = x^1 = x, making algebraic manipulations straightforward.

Real-World Applications

  • Compound interest: A = P·(1 + r)ⁿ, the exponent n is the number of compounding periods. At 7% annually, money doubles in ≈ 10.2 years (the "Rule of 72" gives 72/7 ≈ 10.3).
  • Radioactive decay: N = N₀·(½)^(t/t½), the exponent t/t½ is the number of half-lives elapsed. Carbon-14 (t½ ≈ 5,730 years) is used to date organic materials up to ~50,000 years old.
  • Logarithmic scales: pH = −log₁₀[H⁺]; decibels = 10·log₁₀(P/P₀); the Richter scale magnitude difference of 1 corresponds to a 10× energy difference, all inverses of exponentiation.
  • Signal processing: Filter roll-off is expressed as dB/octave (powers of 2) or dB/decade (powers of 10). A 3rd-order filter rolls off at 60 dB/decade = 10³ amplitude reduction per decade.
  • Fractal geometry: The Hausdorff dimension of a fractal is a non-integer exponent relating how detail scales with magnification, a coastline might have dimension ≈ 1.25.

Special Cases and Edge Conditions

ExpressionValueReason
b⁰1Any nonzero base raised to 0 equals 1 (follows from quotient rule)
0⁰1 (convention)Indeterminate in calculus; defined as 1 in combinatorics and most languages
0ⁿ (n > 0)00 multiplied by itself any positive number of times is 0
0⁻ⁿUndefined1/0ⁿ = 1/0, division by zero
1ⁿ11 times itself any number of times is 1
(−1)ⁿ±1+1 if n is even, −1 if n is odd
b^(1/2)√bSquare root of b, the number that when squared gives b
(−b)^(1/2)Undefined (ℝ)Square root of a negative, complex number (not real)
∞ⁿAny positive power of infinity is infinite

Frequently Asked Questions

What does a negative exponent mean?

A negative exponent means take the reciprocal of the corresponding positive power. The rule is b⁻ⁿ = 1 / bⁿ.

  • 2⁻³ = 1/2³ = 1/8 = 0.125
  • 10⁻⁶ = 1/1,000,000 = 0.000001 (one microsomething)
  • 5⁻¹ = 1/5 = 0.2

This follows directly from the quotient rule: bᵐ / bⁿ = b^(m−n). Set m = 0 and you get b⁻ⁿ = b⁰/bⁿ = 1/bⁿ.

Negative exponents appear constantly in SI units: m/s is the same as m·s⁻¹, and acceleration (m/s²) is written m·s⁻² in dimensional analysis.

How do I calculate a fractional exponent like 8^(1/3)?

A fractional exponent b^(p/q) means take the q-th root of b, then raise to the p-th power.

  • b^(1/n) = ⁿ√b, the n-th root
  • b^(p/q) = (ⁿ√b)ᵖ, root first, then power

Example: 8^(2/3)

  • • Step 1: cube root → 8^(1/3) = ∛8 = 2
  • • Step 2: square → 2² = 4
  • • So 8^(2/3) = 4

You can do it either order: (8^(1/3))² = 2² = 4, or (8²)^(1/3) = 64^(1/3) = 4. Both give the same result.

What is 0 to the power of 0?

0⁰ is defined as 1 by convention in most mathematical and computational contexts, even though it is technically an indeterminate form in calculus.

  • Why 1 makes sense: The number of ways to arrange 0 items from a set of 0 is 1 (the empty arrangement). Combinatorics requires 0⁰ = 1 for the binomial theorem to work with n = 0.
  • Why indeterminate: The limit of xˣ as x → 0 from above is 1, but other limits involving 0⁰-type forms can equal anything. So in limits, 0⁰ must be evaluated carefully.
  • In code: JavaScript's Math.pow(0, 0), Python's 0**0, and most spreadsheet functions return 1.

This calculator follows the convention 0⁰ = 1, consistent with most mathematical software.

Can a negative number have a fractional exponent?

It depends on whether the root index is odd or even.

  • Odd root → real result: (−8)^(1/3) = ∛(−8) = −2, because (−2)³ = −8. The calculator handles this for odd-denominator fractions.
  • Even root → complex result: (−4)^(1/2) = √(−4) is not a real number, the answer is 2i (imaginary). This calculator flags these as complex and cannot display them as real numbers.
  • General fraction: For a negative base with exponent p/q in lowest terms, the result is real only if q is odd.

Most calculators (including spreadsheets) return an error or NaN for negative bases with non-integer exponents. This calculator explains why and identifies the odd-root exception.

How do I find an exponent from a result, e.g. 2 to what power equals 512?

Use the logarithm. The answer to "b to what power equals r?" is n = log_b(r) = ln(r) / ln(b).

  • • 2ⁿ = 512 → n = log₂(512) = ln(512)/ln(2) = 6.2383/0.6931 = 9
  • • 10ⁿ = 1,000 → n = log₁₀(1000) = 3
  • • 1.05ⁿ = 2 → n = ln(2)/ln(1.05) ≈ 14.21 years to double at 5% growth

Select "n = ? (bⁿ = r)" mode in the calculator above, enter the base and the target result, and the exponent (log) is computed automatically.

What is the difference between exponent, power, and base?

In the expression bⁿ, each part has a specific name:

  • Base (b): The number being multiplied, the bottom number. In 2¹⁰, the base is 2.
  • Exponent (n): The small raised number showing how many times to multiply, also called the power or index. In 2¹⁰, the exponent is 10.
  • Power (bⁿ): The entire expression and/or its result. "2 to the 10th power equals 1024."

The word "power" is sometimes used loosely to mean just the exponent ("the power is 10"), but strictly it refers to the whole expression. Context usually makes the intended meaning clear.

What are the main laws of exponents?

There are six fundamental rules that let you simplify expressions with exponents:

  • Product rule: aᵐ × aⁿ = a^(m+n), multiply same base → add exponents
  • Quotient rule: aᵐ / aⁿ = a^(m−n), divide same base → subtract exponents
  • Power rule: (aᵐ)ⁿ = a^(mn), power of a power → multiply exponents
  • Product of bases: aⁿ × bⁿ = (ab)ⁿ, same exponent → multiply bases
  • Quotient of bases: aⁿ / bⁿ = (a/b)ⁿ, same exponent → divide bases
  • Zero exponent: b⁰ = 1, any nonzero base to the 0 is 1

These rules hold for all real bases (with b ≠ 0 where needed) and all real exponents. They are the foundation of algebra, logarithms, and scientific notation.

Why does x^2 grow faster than 2x, and how fast is exponential growth really?

The difference between polynomial and exponential growth is one of the most important ideas in mathematics and computer science.

  • Linear (2x): Add 1 to x → result increases by 2. At x = 100: result = 200.
  • Polynomial (x²): The exponent is fixed; the base grows. At x = 100: result = 10,000.
  • Exponential (2ˣ): The base is fixed; the exponent grows. At x = 100: result = 2¹⁰⁰ ≈ 1.27 × 10³⁰, larger than the number of atoms in the observable universe.

This is why an O(2ⁿ) algorithm becomes infeasible very quickly, and why compound interest eventually produces surprising wealth, or surprising debt. The rule of thumb: any fixed percentage growth rate eventually dwarfs any fixed polynomial rate.

Related Calculators