How it works
The logarithm answers: to what power must the base be raised to get the number? Since log base b of x equals ln(x) divided by ln(b), the calculator works for any positive base except 1. It also shows the three common logarithms of your number: base 10 (log), base e (ln) and base 2.
Formula
log is base 10, ln is base e = 2.71828..., log2 is base 2.
The base must be positive and not equal to 1.
Example
Example in plain words. log base 10 of 100.
10 to what power gives 100? 10² = 100, so the answer is 2.
For the same 100: log = 2, ln = 4.605170, log2 = 6.643856.
Another case: log base 5 of 125 = ln(125) ÷ ln(5) = 3, because 5³ = 125.
Frequently asked questions
Why is base 1 not allowed?
1 to any power is still 1, so the question has no useful answer; mathematically the division by ln(1) = 0 is undefined.
What is ln used for?
The natural logarithm appears wherever growth is continuous: compound interest, radioactive decay and most of calculus.