Logarithm Calculator
Find the logarithm of any positive number in base 10, base e, base 2, or a custom base.
Calculation Examples
📋Steps to Calculate
-
Enter the argument value (the number you want to take the log of). It must be greater than zero.
-
Select or enter the logarithm base. Common options are 10, e (natural log), and 2 (binary log).
-
Click "Calculate" to receive the result and the equivalent exponential form.
Mistakes to Avoid ⚠️
- Using base 1 or base 0. Every power of 1 equals 1, so no exponent can reach any other value and the logarithm is undefined. Base 0 and negative bases are also invalid.
- Mixing up log and ln. In most science and engineering texts, "log" means base 10, while in pure mathematics and in programming languages such as Python, JavaScript, and C, log() usually means the natural logarithm. Check the convention before you compare answers.
- Splitting a sum. log(x + y) does not equal log(x) + log(y). The correct identity is for products: log(x * y) = log(x) + log(y).
Practical Applications📊
Estimate algorithm steps: binary search on 1,000,000 sorted items needs at most 20 comparisons, because log₂(1,000,000) is about 19.93 and the count rounds up.
Model growth and decay: the time for money to double at 6% continuous growth is ln(2) / 0.06, about 11.55 years, a result that follows from dy/dt = ky and underlies the Rule of 72.
Read logarithmic scales: pH 7 means a hydrogen ion concentration of 10⁻⁷ mol/L, doubling sound power adds about 3.01 dB, and each whole step on the Richter scale means ten times the ground motion amplitude.