AIForeverThing

Exponent & Logarithm Calculator

Compute power (base^exponent) and logarithm with any base instantly

Result
Result

How It Works

The exponent calculation computes bn — multiplying base b by itself n times. For fractional or negative exponents, JavaScript's built-in Math.pow() handles the generalized power rule. The logarithm uses the change of base formula: log_b(x) = ln(x) ÷ ln(b), converting any log into natural logarithms that the system can evaluate. The result y satisfies by = x.

Frequently Asked Questions

How do you calculate log base any number? ▼
To calculate log base b of x, use the change of base formula: log_b(x) = ln(x) / ln(b). For example, log base 2 of 8 equals ln(8)/ln(2) = 3, because 2 raised to the power of 3 equals 8.
What is the difference between exponent and logarithm? ▼
An exponent tells you how many times to multiply a base by itself (e.g., 2^4 = 16). A logarithm is the inverse operation — it tells you what power you need to raise a base to get a certain number (e.g., log₂(16) = 4). They are inverse functions of each other.
Can you calculate a number raised to a decimal or negative power? ▼
Yes. A negative exponent means the reciprocal: 2^(-3) = 1/2³ = 0.125. A decimal exponent like 4^0.5 equals the square root of 4, which is 2. This calculator handles positive, negative, and fractional exponents.
Free tools by TUNA — energy supply from vetted manufacturers