Logarithm Calculator

Calculate log with any base | Natural log (ln) | Common log (lg) | Log base 2

Result
--
📝 Step-by-step explanation
Enter values and click calculate.

📖 How to Use This Logarithm Calculator

1
Select logarithm type - Choose Custom Base, Natural Log (ln), Common Log (lg), or Log Base 2.
2
Enter the base (for custom log) - Input the base of the logarithm (must be >0 and ≠1).
3
Enter the number (x) - Input the number you want to find the logarithm of (must be >0).
4
Click "Calculate" - Get the result with step-by-step explanation.

📐 What is a Logarithm?

A logarithm answers the question: "To what exponent must the base be raised to get a given number?"

The logarithm of x with base b is written as logₐ(x) = y, which means aʸ = x. For example, log₁₀(100) = 2 because 10² = 100.

📊 Common Logarithm Types

🧮 Logarithm Rules and Properties

💡 Real-World Applications of Logarithms

❓ Frequently Asked Questions (FAQ)

What is the difference between log and ln?
Log typically means log₁₀ (common logarithm) while ln means natural logarithm (base e ≈ 2.71828). Otherwise, they follow the same rules.
Why can't a logarithm have a negative base?
Logarithms with negative bases are not defined in real numbers because they produce complex results. For real-valued logarithms, the base must be positive and not equal to 1.
What is the log of 0?
logₐ(0) is undefined (approaches -∞). There's no exponent that gives zero because a positive base raised to any power is always positive.
What is the difference between log and antilog?
Logarithm finds the exponent; antilog is the inverse operation: if y = logₐ(x), then x = antilogₐ(y) = aʸ.
How do calculators compute logarithms?
Calculators use series expansions (Taylor series) or the change of base formula with precomputed values to compute logarithms accurately.
What is log base 2 used for in computer science?
Log base 2 appears in algorithm analysis (binary search: O(log₂ n)), data structures, and information theory (bits needed to represent n values).