Logarithm Calculator

Compute logarithms, natural logs, and change-of-base results.

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.


Audit: Complete
Formula (LaTeX) + variables + units
This section shows the formulas used by the calculator engine, plus variable definitions and units.
Formula (extracted LaTeX)
\[','\\]
','\
Formula (extracted text)
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)\)
Variables and units
  • No variables provided in audit spec.
Sources (authoritative):
Changelog
Version: 0.1.0-draft
Last code update: 2026-01-19
0.1.0-draft · 2026-01-19
  • Initial audit spec draft generated from HTML extraction (review required).
  • Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
  • Confirm sources are authoritative and relevant to the calculator methodology.
Verified by Ugo Candido on 2026-01-19
Profile · LinkedIn
, ', svg: { fontCache: 'global' } }; ]], displayMath: [['\\[','\\]']] }, svg: { fontCache: 'global' } };, svg: { fontCache: 'global' } };