Logarithm / Exponent Calculator
Calculate a logarithm value from a base and a true value, or a power value from a base and an exponent.
Logarithm
log=
Exponent
^=
Logarithm and Exponent
log_b(x) answers "to what power must b be raised to get x?" Exponentiation b^n is the inverse: raising base b to the power n.
Worked examples
log₂ 8 = 3 because 2³ = 8, and log₁₀ 1,000 = 3 — the two bases used most often after e.
2¹⁰ = 1,024, so ten doublings multiply by about a thousand, the rule of thumb behind powers of two in computing.
What the calculation assumes
The base must be positive and different from 1, and the argument must be positive: no real logarithm of zero or a negative number exists. Large exponents overflow double precision around 1 × 10³⁰⁸. All bases are related by a constant factor, log_b x = ln x / ln b, so any one logarithm function is enough.
Frequently asked questions
- Why is the logarithm of a negative number undefined?
- Because a positive base raised to any real power stays positive, so no exponent can produce a negative result. Complex answers exist but leave ordinary real arithmetic.
- What is the natural logarithm?
- The logarithm to base e ≈ 2.71828, written ln. It appears whenever growth is proportional to the current amount, as in compound interest or radioactive decay.
- How do logarithms turn products into sums?
- Because log(ab) = log a + log b. That identity powered slide rules and still defines decibel and pH scales, where adding logs multiplies the underlying quantity.