Skip to content
FiftyCalc Free calculators for all 50 states

Log Calculator

Test cases replayed : 3 of 3 match · Methodology · No outside source listed

Compute the log of a number in base 10, base e, base 2 or any base you type.

Result

Sample figures

log base b of x—

log₁₀ x (common log) —

  • ln x (natural log, base e)—
  • log₂ x (binary log)—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Log Calculator

Number x (greater than 0): enter 0 or more. Prefilled example: 1,000.

Base b (greater than 0, not 1): enter 0 or more. Prefilled example: 10.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Number x (greater than 0): enter 0 or more.
  2. Base b (greater than 0, not 1): enter 0 or more.
  3. Read the result: log base b of x; the panel also shows log₁₀ x (common log), ln x (natural log, base e) and log₂ x (binary log).

How this calculator works

log means the exponent: log_b(x) = y when b^y = x. The calculator uses ln(x) ÷ ln(b) for any base, the change of base rule.

Only positive numbers have a real logarithm, and the base must be positive and not 1.

The formula

  1. L=ln⁡(x)ln⁡(b)
Symbols used in the formula
SymbolMeaning
xNumber x (greater than 0)
bBase b (greater than 0, not 1)
Llog base b of x

Worked example

Number x (greater than 0)1,000
Base b (greater than 0, not 1)10
log₁₀ x (common log)3
ln x (natural log, base e)6.9078
log₂ x (binary log)9.9658
  1. L=ln⁡(1,000)ln⁡(10)=3

log base b of x 3

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What is log 100?

2, because 10² = 100.

What is ln e?

1, because the natural log uses base e.

What is log base 2 of 32?

5, because 2⁵ = 32.

Related calculators