Logarithm Calculator: Any Base, Antilog and Finding the Base
Logarithms in any base, antilogs and finding the base, with the change-of-base working.
- Natural log ln x
- 6.9314718056
- Common log (base 10)
- 3.0102999566
- Binary log (base 2)
- 10
Working
- 1.log₂(1,024) = ln 1,024 ÷ ln 2 = 6.931472 ÷ 0.693147 = 10
Formula and sources
log_b(x) = y ⇔ bʸ = x (b > 0, b ≠ 1, x > 0) Change of base: log_b(x) = ln x ÷ ln b = log x ÷ log b Base: b = x^(1 ÷ y)
- Properties of logarithms — secondary-school mathematics
When to use the Logarithm
A logarithm undoes a power
log₂(1024) = 10 because 2¹⁰ = 1024. A logarithm answers: to what power must the base be raised to give this number? So the base must be positive and not 1, and the number must be positive.
Change of base
Ordinary calculators only have log and ln. Any other base comes from dividing two of them: log₃(50) = ln 50 ÷ ln 3 = 3.560877. The working is shown under the result.
Finding the number or the base
When the logarithm is known, the number is the base raised to it (the antilog): log₁₀(x) = −2 means x = 0.01. When the number and its logarithm are known, the base is the y-th root of x: log_b(81) = 4 means b = 3.
Where logarithms show up
Decibels, pH, earthquake magnitudes, compound interest and the number of bits needed to store a number all use logarithms. The base-2 log of a number gives the bits it needs.
Frequently asked questions
Why is there no logarithm of a negative number?
A positive base raised to any power is always positive, so no power gives zero or a negative number. In the real numbers its logarithm is undefined.
What is the difference between ln and log?
ln is the natural logarithm with base e ≈ 2.718282, while log in school books is base 10. They differ by a fixed factor: ln x = 2.302585 × log x.
Which log rules are useful?
The log of a product is the sum of the logs, the log of a quotient is their difference, and the log of a power is the power times the log. These rules simplify a problem before you calculate.
Related calculators
- Online Scientific CalculatorAn on-screen calculator with keys: powers, roots, percent, factorial, sin, cos, tan, log and ln.Example: Result1,030Calculate →
- Quadratic EquationRoots of a quadratic by the formula, the discriminant and the vertex.Example: Root x₁0.5Calculate →
- Significant FiguresCount significant figures, write scientific notation and round to any number of figures.Example: Significant figures4Calculate →