About this tool
Enter a positive number and a base to find the exponent that turns the base into that number. The common, natural and binary logarithms are shown alongside, and a check line confirms that the base raised to the result gives your number back. Invalid inputs such as zero, negatives or base 1 get a clear explanation.
How to use Logarithm Calculator
- Enter the number x.
- Enter the base b (for example 10, 2 or 2.71828).
- Read log_b(x) and the related logarithms.
Frequently asked questions
Why can't I take the log of 0 or a negative number?
No power of a positive base ever gives 0 or a negative number, so the logarithm is undefined there for real numbers.
How is a log in an unusual base calculated?
With the change-of-base rule: log_b(x) = ln(x) ÷ ln(b).
What's the difference between log and ln?
ln is the natural logarithm with base e ≈ 2.71828. log usually means base 10, though some fields use it for ln — check the context.