Skip to main content

DigitalCalculators.net

Log Calculator

Find the logarithm of a number in any base, with the natural log, log base 10 and log base 2.

Results

ItemValue

Steps

StepWorking
The number must be above 0. The base must be above 0 and cannot be 1. Answers are rounded to 6 decimal places.

Quick Answer

A logarithm answers the question: what power of the base gives this number? Log base 10 of 1,000 is 3, because 10³ = 1,000. To find a log in any base, divide natural logs: log b (x) = ln(x) ÷ ln(b).

Last updated: 2 November 2026 · How we calculate this: the change of base formula

Table of Contents

How This Log Calculator Works

Enter a number and a base. The calculator finds the logarithm in that base, and also shows the natural log, log base 10 and log base 2, so you can compare them.

Quick explanation: if b^y = x, then log b (x) = y.

  • Base 10: the common logarithm.
  • Base e: the natural logarithm, written ln.
  • Base 2: often used in computing.

Core Formulas

  • Change of base: log b (x) = ln(x) ÷ ln(b)
  • Product rule: log(xy) = log(x) + log(y)
  • Quotient rule: log(x ÷ y) = log(x) − log(y)
  • Power rule: log(x^k) = k × log(x)

Worked Example

Find log base 2 of 32.

  • ln(32) = 3.465736
  • ln(2) = 0.693147
  • 3.465736 ÷ 0.693147 = 5
  • Check: 2⁵ = 32

Common Mistakes

  • Log of zero or a negative: this is not defined for real numbers.
  • Base of 1: this is not allowed, because 1 to any power is 1.
  • Mixing up log and ln: log usually means base 10, and ln means base e.

Frequently Asked Questions

It is the power you raise a base to in order to get a number. Log base 10 of 100 is 2, because 10² = 100.

Log often means base 10, and ln means base e, which is about 2.718.

Divide the natural log of the number by the natural log of the base.

It is 0 in any allowed base, because any such base to the power 0 is 1.

Not with real numbers. The input must be greater than zero.

References & Sources

SourceUsed ForLink
Wikipedia, Logarithm Definition, rules and change of base. https://en.wikipedia.org/wiki/Logarithm