Logarithm Calculator
Compute the logarithm of any value in any base with this free Logarithm Calculator. Quick buttons for base 10, base e, and base 2 included.
Logarithm Calculator
Method
How this calculator works
log_b(x) = ln(x) / ln(b) = Math.log(x) / Math.log(b). This change-of-base formula lets you compute a logarithm in any base b from the natural logarithm. The value x must be positive, and the base b must be positive and not equal to 1.
- Enter the value (x) you want the logarithm of; it must be greater than 0.
- Enter the base (b), or tap a quick button for base 10, e, or 2.
- Click Calculate or edit a field to recompute automatically.
- The tool applies the change-of-base formula log_b(x) = ln(x) / ln(b).
- Read the result and the full expression such as log₁₀(1000) = 3.
Examples
Worked examples
Real numbers, end-to-end results.
log₁₀(1000)
log₁₀(1000) = 3
10 raised to the power 3 equals 1000.
log₂(8)
log₂(8) = 3
2 raised to the power 3 equals 8.
ln(e) with base e
logₑ(2.71828) = 1
The natural log of e is exactly 1.
Use cases
When to use it
- Working with pH, decibels, and the Richter scale in science.
- Solving exponential growth and decay equations in algebra.
- Analyzing algorithm complexity such as log-base-2 running times.
- Converting between logarithmic scales in engineering and finance.
FAQ
Frequently asked questions
What is a logarithm?
What is the difference between log and ln?
Why must the value be positive?
Why can't the base be 1?
How does the change-of-base formula work?
Related tools
All calculators →Exponent Calculator
Raise any base to any power, including negative and fractional exponents.
Scientific Notation Calculator
Convert numbers to and from scientific notation and E-notation.
Square Root Calculator
Find the square root, cube root and nth root of any number.