Logarithm Calculator

This logarithm calculator works for any base: enter the number and the base and the result appears at once, with a check and the change-of-base working. log₂(8) = 3 because 2³ = 8; the ln, lg and lb options pick the standard bases e, 10 and 2.

Example: Logarithm: Any base b: log_b(x) · Base b 2 · Number x 8 → Result: log₂(8) = 3. Source: Wikipedia – Logarithmus (Definition, Rechenregeln, Basiswechsel). Updated: .

Greater than 0 and not 1, for example 2, 3 or 10
Must be greater than 0
My ToolboxYour inputs are saved in this browser only.

Result

Result
log₂(8) = 3
Check
Check: 2^3 = 8
Working
  • Change of base: log_2(8) = ln(8) ÷ ln(2) = 2.079441542 ÷ 0.6931471806 = 3
  • The result is a whole number: 2 to the power 3 equals exactly 8.

How it is calculated

The logarithm logb(x) answers the question: to what power must the base b be raised to get x? Since 2³ = 8, log₂(8) = 3; since 10² = 100, log₁₀(100) = 2. It is the inverse of exponentiation and is defined only for positive x and for bases above 0 other than 1.

How the tool works

The main rules

log(a · b) = log(a) + log(b), log(a ÷ b) = log(a) − log(b) and log(aⁿ) = n · log(a). Also logb(1) = 0 and logb(b) = 1. Logarithms answer questions such as how long a doubling takes at a given growth rate. The reverse task is covered by the exponent calculator, and the graphing calculator draws the curve y = log(x).

Frequently asked questions

What is a logarithm in simple terms?

A logarithm is the exponent you need to raise the base to in order to get a number. log₂(16) = 4 because 2 to the power 4 is 16.

How do I calculate a logarithm with any base on a calculator?

Use the change-of-base rule: log_b(x) = ln(x) ÷ ln(b). For log₃(81) enter ln(81) ÷ ln(3) = 4.

What is the difference between ln, log10 and log2?

ln is the natural logarithm with base e ≈ 2.71828, log10 is the common logarithm with base 10 and log2 is the binary logarithm with base 2. All three are special cases of log_b.

Why is there no logarithm of 0 or of a negative number?

A positive base raised to any power never gives 0 or a negative value, so log(x) exists only for x > 0.

Can I work out a logarithm in my head?

Find the powers of the base that bracket the number: 2⁵ = 32 and 2⁶ = 64, so log₂(50) lies between 5 and 6. The calculator shows this bracket as well.

Sources and legal basis

As of: · Editorial policy

Related tools