Skip to content
FiftyCalc Free calculators for all 50 states

Logarithm Calculator

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

Find log of a number in any base, along with the common, natural and binary logarithms.

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.

Logarithm 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

Change of base: log_b(x) = ln(x) ÷ ln(b). The logarithm answers: to what power must b be raised to give x?

Logarithms of zero or negative numbers are undefined and show a dash.

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

How do I calculate log base 2 on a calculator?

Divide: log₂ x = log x ÷ log 2 (or ln x ÷ ln 2). log₂ 8 = 0.9031 ÷ 0.3010 = 3.

What is the difference between log and ln?

log usually means base 10; ln is the natural log, base e ≈ 2.71828.

Related calculators