Logarithm Calculator

Calculate the logarithm of a number to any base.

log₁₀(x)3
log_10(1,000) = ln(1,000) / ln(10) = 3

Runs entirely in your browser — nothing you enter is uploaded.

About this tool

A logarithm answers “to what power must the base be raised to get x?”. Common choices are base 10, base e (ln) and base 2.

How to use the Logarithm Calculator

  1. Enter the x and base.
  2. The result updates instantly, with the working shown underneath.
  3. Use Copy to grab a result, or Reset to start again.

How it works

The change-of-base formula converts any base to natural logs.

Formula

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

Frequently asked questions

What is log₂(1024)?

10.