Home Math Logarithm Calculator

Logarithm Calculator

The logarithm of any positive number in any base, with the base-10, natural and base-2 logarithms shown for reference.

Advertisement

How it works

The logarithm answers: to what power must the base be raised to get the number? Since log base b of x equals ln(x) divided by ln(b), the calculator works for any positive base except 1. It also shows the three common logarithms of your number: base 10 (log), base e (ln) and base 2.

Advertisement

Formula

log base b of x = ln(x) ÷ ln(b).
log is base 10, ln is base e = 2.71828..., log2 is base 2.
The base must be positive and not equal to 1.

Example

Example in plain words. log base 10 of 100.

10 to what power gives 100? 10² = 100, so the answer is 2.

For the same 100: log = 2, ln = 4.605170, log2 = 6.643856.

Another case: log base 5 of 125 = ln(125) ÷ ln(5) = 3, because 5³ = 125.

Frequently asked questions

Why is base 1 not allowed?

1 to any power is still 1, so the question has no useful answer; mathematically the division by ln(1) = 0 is undefined.

What is ln used for?

The natural logarithm appears wherever growth is continuous: compound interest, radioactive decay and most of calculus.

Advertisement

Related calculators

Percentage Calculator

Find a percent of a number, what percent one number is of another, and percent change, all at once.

Fraction Calculator

Add, subtract, multiply and divide fractions, with the answer simplified.

Scientific Calculator

Online scientific calculator with trig, logs, powers, roots, factorial and degree or radian mode.

Quadratic Formula Calculator

Solve ax² + bx + c = 0, with the discriminant and the vertex.