Frequently asked questions
What is the difference between ln and log? ▾
ln is the natural log with base e (≈2.718); log usually means the common log with base 10. This calculator shows both at once.
How do I choose the base? ▾
It depends on the use case: base 2 in information theory and computing, base 10 in many sciences, and base e (natural log) in calculus and analysis.
Can the value be negative or zero? ▾
No. The real logarithm is only defined for a positive value (x > 0), so entering 0 or a negative number returns an error.
What is the change-of-base formula? ▾
logₐ(x) = ln(x) / ln(a). As long as you can compute a natural (or common) log, you can find the log to any base.
What are logarithms used for? ▾
They are used for pH, decibels, earthquake magnitude, compound-interest time calculations and many other quantities that vary over a wide range.