piko

Logarithm calculator

Compute log base b of x, natural log (ln), common log (log₁₀), and binary log (log₂).

Runs on your device. Nothing you add is uploaded.

Examples: 2, 10, e, or any custom base
log_2(64)
6
Natural log ln(x)
4.15888308
Common log log₁₀(x)
1.80617997
Binary log log₂(x)
6
Change of base: log_b(x) = ln(x) / ln(b). Check: 2^6 = 64.

How to use Logarithm calculator

  1. Enter any positive number x.
  2. Enter a custom base (such as 2, 10, or e).
  3. Compare log_b(x) alongside natural, base-10, and base-2 logarithms.

Questions

Any positive base raised to any real power is always positive, so real logarithms of 0 or negative numbers are undefined.

How this works

Computes change-of-base logarithms locally with IEEE-754 Math.log.

Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. What you typed and your settings are kept in this browser so the tool opens the way you left it, except passwords, keys and tokens, which are never saved. Privacy

Related tools

More in Calculators