How to use the Logarithm Calculator
- Choose arbitrary base, natural log (base e) or common log (base 10).
- Enter a positive argument. For arbitrary base, also enter a base greater than zero and not equal to one.
- Read the logarithm and the equivalent change-of-base expression.
Logarithm and change-of-base formulas
Where:
- = positive argument
- = positive logarithm base, not equal to 1
Show as plain text
log_b(x) = ln(x) ÷ ln(b), where x > 0, b > 0 and b ≠ 1 ln(x) = log_e(x); log₁₀(x) = common logarithm
A logarithm answers the question: to what power must the base be raised to produce the argument? For example, log₂(8) = 3 because 2³ = 8.
For arbitrary bases, the change-of-base identity calculates log_b(x) as ln(x) divided by ln(b). Natural logarithms use base e, while common logarithms use base 10.
Assumptions and limitations
- The argument must be positive. The real logarithm is undefined for zero or negative arguments.
- The base must be positive and cannot equal one.
- Inputs and results use JavaScript floating-point arithmetic; displayed values are rounded to significant digits.
Example: Calculate log₂(8)
- Use the change-of-base formula: log₂(8) = ln(8) ÷ ln(2).
- ln(8) ÷ ln(2) = 2.07944 ÷ 0.693147.
- The result is 3, since 2³ = 8.
When to use the Logarithm Calculator
- Solving exponential relationships and growth or decay equations.
- Converting a logarithm to a base supported by a scientific calculator.
- Checking powers and exponential expressions with the scientific calculator.
Logarithm Calculator FAQs
What is the difference between ln and log?
ln is the natural logarithm with base e, approximately 2.71828. In this calculator, log₁₀ is the common logarithm with base 10.
Why cannot the base equal 1?
Every power of 1 is 1, so a base of 1 cannot produce other positive arguments and does not define a logarithm function.
Can I calculate a logarithm of zero or a negative number?
Not as a real-valued logarithm. The argument must be strictly positive; zero and negative arguments are rejected.
How this calculator was built and tested is explained in our methodology. Spotted a problem? Let us know.