Logarithm Calculator: Solve for Base, Argument or Log

Evaluate common, natural or custom-base real logarithms, or work backward to the argument or base.

Use 10 for common log, e for natural log; leave blank to solve for the base.
Leave blank to solve for x.
Leave blank to evaluate log base b of x.

Example: 1,250.50. Use a period for decimals.

Result

Enter values and select Calculate.

How is this calculated?

The equation log base b of x = L means bᴸ = x, with a positive argument and a positive base other than 1.

Worked example: Find the exponent for a base smaller than one

Since (1/2) raised to the power −3 is 8, the base-0.5 logarithm of 8 is −3.

Method and limits

Leave exactly one field blank. Valid logarithm bases are positive and cannot equal 1.

How to use this calculator

  1. Enter two of b, x and L in log base b of x = L. Leave the field for the unknown blank.
  2. Use e for a natural logarithm or 10 for a common logarithm. Check the result by raising the base to the displayed logarithm.

Recover a positive argument from a negative logarithm

With base 10 and logarithm −2, leave the argument blank. The argument is 10⁻² = 0.01. A negative logarithm is allowed even though its argument must be positive.

Compare a common and a natural logarithm

The common logarithm of 100 is 2. The natural logarithm of 100 is about 4.60517 because the two operations ask for powers of different bases.

Reverse the equation to find a base

If the argument is 81 and the logarithm is 4, the base is the positive fourth root of 81, or 3. A negative base is outside the definition of the real logarithm used here.

A base between zero and one reverses the usual ordering

For base 0.5, the logarithm of 8 is −3, while the logarithm of 0.125 is 3. The base raised to a larger exponent gets smaller.

Frequently asked questions

Can the logarithm be negative or zero?
Yes. For any allowed base, the logarithm of 1 is 0. Other inputs can have either sign for the logarithm.
Why can’t I evaluate the logarithm of zero?
A finite real power of a positive base does not give zero. This real logarithm requires a strictly positive argument.
Can the base equal 1?
No. Its powers are all 1, which means it has no inverse real logarithm.
Why is the base unknown when the argument is 1 and the logarithm is zero?
Every allowed base raised to zero gives 1. That pair does not determine a single base.

Common mistakes and limits

Sources & methodology

Related calculators