How a logarithm is calculated
The logarithm of x in base b is the power you raise b to in order to get x.
Common log uses base 10. Natural log uses base e. Binary log uses base 2. A custom base can be any positive number other than 1. The number itself must be positive.
How to use this calculator
- Choose log base 10, natural log, log base 2, or a custom base.
- Enter a positive number. Enter the base when you chose custom.
- Read the logarithm. The row below shows the base that was used.
Change of base
Any base can be written with the natural log.
log base 10 of 100 is 2, because 10² = 100. The natural log of 1 is 0, because any valid base raised to 0 is 1.
Source
The logarithm is defined on the Wikipedia page on logarithms.
Worked examples
Example: log base 10 of 100
log₁₀(100) = 2.
Example: log base 2 of 8
log₂(8) = 3.
What to keep in mind
The number and a custom base can be from just above 0 up to 1,000,000,000,000, including decimals. log₁₀(1,000) = 3. ln(1) = 0. log₃(27) = 3. log₁₀(0.01) = −2. 0, a negative number, and base 1 have no result. A completed result, including the number and the base you use, can be stored in this browser’s local history and never leaves your device. Clear it with the history Clear action or by clearing site data.
Common questions about logarithms
What is log base 10 of 100?
2.
What is log base 2 of 8?
3.
What is the natural log of 1?
0.
What is log base 3 of 27?
3.
When is there no result?
When the number is 0 or negative, or when the base is not positive, or when the base is 1.
Does this calculator store my number?
A completed result can be saved in this browser’s local history, including the number and the base you use. It stays on your device and is not sent to our servers or to analytics. Clear it with the history Clear action or by clearing site data.