Logarithm Calculator

Solve log_b(x) = y for y, x or b. The steps show your numbers in the formula and then check the answer.

Solve for

The number being raised to a power. Common bases are 10, e (about 2.718) and 2.

The number you take the log of. It must be more than 0.

Logarithm

2

  • Base b10
  • Number x (argument)100
  • Logarithm y2

How this was calculated

  1. A logarithm answers the question “what power of 10 gives 100?” To work it out, divide the natural log (ln, a log with base e ≈ 2.718) of 100 by the natural log of 10.log_b(x) = ln x ÷ ln b (change of base)Put in your numbers: log_10(100) = ln 100 ÷ ln 10 = 4.605170186 ÷ 2.302585093Answer: y = 2
  2. Check: raise 10 to the power you found. You should get 100 back.Check: b^y = xPut in your numbers: 10^2Answer: 100
  3. Because the answer is a whole number, you can see it directly: multiply 2 copies of 10 together.10 × 10 = 100Answer: so log_10(100) = 2

Logarithms in simple words

A logarithm (log) answers one question: what power do I need? It is the opposite of an exponent.

Example: 10 × 10 = 100, so 10² = 100. That means the log base 10 of 100 is 2, written log₁₀(100) = 2. You need two 10s multiplied together to make 100.

Another example: 2 × 2 × 2 = 8, so log₂(8) = 3. The small number (the base) is what you multiply, and the answer tells you how many of them you need.

Two logs have short names. log with no base usually means base 10. ln (the natural log) means base e, a special number close to 2.718.

Formula and method

Logarithms reverse exponentiation. In bʸ = x, y = ln(x)/ln(b), x = bʸ and b = exp(ln(x)/y). Real logarithms require x > 0 and b > 0, b ≠ 1. A base-solving problem with y = 0 does not have a unique base.

Worked example

For log₁₀(100), ln(100)/ln(10) = 2 because 10² = 100. For log₂(8), the answer is 3. ln(e) = 1.

Inputs and limitations

A base between 0 and 1 is valid and reverses the direction of growth: log₀.₅(4) = −2. A negative logarithm does not mean its argument is negative. Floating-point overflow and underflow can prevent a finite answer.

Frequently asked questions

How do I calculate a logarithm with any base?

Use the change-of-base formula log_b(x) = ln x ÷ ln b. For log₂(10): ln 10 ÷ ln 2 = 2.302585 ÷ 0.693147 ≈ 3.321928.

How do I find the base of a logarithm?

Rearrange log_b(x) = y as b = x^(1/y). For log_b(8) = 3, b = 8^(1/3) = 2.

References

Last updated . Results are estimates for informational purposes only.