Log Calculator: Log Base 10, ln and Any Base

Use this log calculator to find logarithms in any base. Get log base 10, the natural log ln, log base 2 or any custom base, and solve for a missing number or base. Steps show how the change of base rule works.

Log Calculator

Result

-

Change-of-base check

-

Identity

log_b(x) = ln(x)/ln(b)

This log calculator finds logarithms in any base, plus the natural log (ln) and the common log (log₁₀). A change-of-base mode shows how a log in one base is rewritten using another, and a chart plots the log curve.

How to use the Log Calculator

  1. Pick a Mode: log base b of x, Natural log (ln x), Common log (log10 x), or Change of base.
  2. Enter x, which must be positive.
  3. For a custom base or change of base, enter Base b (positive and not 1). For change of base, also enter the New base.
  4. Press Calculate Log to see the result, the change-of-base check and the graph of log_b(x).

Formula

log_b(x) = y means bสธ = x
log_b(x) = ln(x) ÷ ln(b) = log_k(x) ÷ log_k(b)

A logarithm answers the question: what power of b gives x? Any base can be computed from natural logs, which is the change-of-base rule the tool uses and displays.

Example

log₂(64) asks what power of 2 gives 64. Since 2⁶ = 64, the answer is 6, and the check line shows ln(64)/ln(2) = 6.00000000. In change-of-base mode with x = 8, b = 2 and new base 10: log₂(8) = log₁₀(8) ÷ log₁₀(2) = 0.90309 ÷ 0.30103 = 3.

Frequently asked questions

What is the difference between log and ln?

On most calculators, log means base 10, and ln means the natural log with base e ≈ 2.71828. ln(10) ≈ 2.302585, while log₁₀(10) = 1.

Why can't I take the log of zero or a negative number?

No real power of a positive base gives 0 or a negative number, so the log is undefined there. The tool shows the message x must be positive for those inputs.

How do I calculate a log with a different base?

Use the change-of-base formula: log_b(x) = ln(x) ÷ ln(b). For log₅(125): ln(125) ÷ ln(5) = 4.8283 ÷ 1.6094 = 3.

What is log base 2 used for?

It counts doublings, which shows up in computing (bits needed to store values), binary search steps and growth problems. log₂(1024) = 10, so 1024 different values fit in 10 bits.

Find a logarithm

How to use it

  1. Enter the number.
  2. Pick the base.
  3. Read the log.
  4. Check the steps.

More questions

What is ln?

The natural log, with base e, about 2.718.

What is log 100?

Log 100 is 2 in base 10, because 10 squared equals 100.

Can I find a log of a negative number?

No. Real logarithms need a positive number, so negatives and zero have no real log.

Related tools: Exponent Calculator, Scientific Calculator, Scientific Notation Calculator.