Logarithm Calculator

Compute log base 10, natural log (ln), or log with any base using the change-of-base formula. This tool also helps you solve simple log equations and shows domain errors when the input is invalid.

x must be > 0

b must be > 0 and b ≠ 1

Result

Solve a simple log equation

Equation format: log_b(x) = y

We use x = bʸ.

Logarithm formulas used

General definition:

\(\log_b(x) = y \iff b^y = x\)

Change of base:

\(\log_b(x) = \frac{\ln(x)}{\ln(b)} = \frac{\log_{10}(x)}{\log_{10}(b)}\)

Common log (base 10): \(\log_{10}(x)\)

Natural log (base e): \(\ln(x)\)

Common logarithm values

x log₁₀(x) ln(x) Notes
100log of 1 is always 0
20.30100.6931-
1012.3026base 10
10024.605210²
0.1-1-2.3026less than 1 → negative log
e ≈ 2.718280.43431by definition

How to use this logarithm calculator

  1. Enter the number x you want to take the log of.
  2. Enter the base b, or click one of the quick buttons (10, e, 2).
  3. The result updates instantly using the change-of-base formula.
  4. If you need to solve log_b(x) = y, use the blue box to compute x = bʸ.

If the calculator shows an error, check that x > 0 and b > 0 and b ≠ 1.

FAQs

Can I use this for logarithmic equations?

Yes, for basic equations of the form log_b(x) = y. For more complex ones (like log(x) + log(x-1) = 2), you might need a CAS or symbolic solver.

Why is the result negative?

Logs of numbers between 0 and 1 are negative. For example, log₁₀(0.01) = -2.

What base should I use in engineering?

Base 10 (common log) is widely used in engineering and signal processing. Natural log (base e) is common in calculus, physics, and continuous growth models.