Online Logarithm Calculator

Calculate common logarithm (log₁₀), natural logarithm (ln), binary logarithm (log₂), or custom base logarithms.

Format: logb(x)

What Is a Logarithm?

A logarithm is the inverse operation to exponentiation. It answers the question: "To what power must the base b be raised in order to produce number x?" Written as log_b(x) = y, which means bʸ = x.

How to Use the Logarithm Calculator

  1. Enter the number x (must be greater than 0).
  2. Select or enter the base b (e.g. 10 for common log, e for natural log, or 2 for binary log).
  3. Click "Calculate Logarithm" to view the exact exponent result.

Formula & How the Calculation Works

log_b(x) = y ⟺ bʸ = x
Change of Base Rule: log_b(x) = ln(x) ÷ ln(b) = log₁₀(x) ÷ log₁₀(b)

The change of base formula allows computing any logarithm using natural logarithms (ln) or common base-10 logarithms.

Worked Calculation Example

Scenario: Calculate log₂(32).

Key Considerations & Common Mistakes to Avoid

Frequently Asked Questions

What is the natural logarithm (ln)?

The natural logarithm is the logarithm to the base e, where e is Euler’s mathematical constant approximately equal to 2.71828.

Why is log(1) always equal to 0?

Because any non-zero base raised to the power of 0 equals 1 (b⁰ = 1).

What is the change of base rule?

It states that log_b(a) = log_c(a) ÷ log_c(b). This allows you to evaluate any base using the standard ln or log₁₀ keys on a calculator.