Logarithm Calculator

Calculate the logarithm of a number with any base. Enter the number and the base to find the answer instantly.

Logarithm result
2.0000
log₁₀(100)
Base
10
Check
100.00
Embed on your website →

How to use the logarithm calculator

  1. Enter the number you want to take the logarithm of.
  2. Enter the base (use 2.71828 for the natural logarithm, ln).
  3. The calculator shows the logarithm automatically, plus a check calculation that confirms the answer.

How the logarithm is calculated

A logarithm answers the question: "what exponent must the base be raised to, to give this number?". The calculator uses the change-of-base formula to calculate logarithms with any base:

log_b(x) = ln(x) ÷ ln(b)

For example, log₁₀(100) = 2, because 10² = 100. The check field recalculates baseresult, which should give back the original number.

Note: The number must be positive, and the base must be positive and not equal to 1 — otherwise the logarithm is undefined.
Ad space — reserved for future partners

Frequently asked questions

What is the natural logarithm (ln)?

The natural logarithm is the logarithm with base e (Euler's number, about 2.71828). It's widely used in mathematics, physics and economics, including continuous growth and decay. Enter 2.71828 as the base to calculate ln.

Why can't you take the logarithm of a negative number?

Because no real exponent can turn a positive base into a negative number (a positive number raised to any real exponent is always positive). The logarithm of zero or negative numbers is therefore undefined among the real numbers.

What are logarithms used for in practice?

Logarithms are used to measure sound level (decibels), earthquake strength (the Richter scale), pH in chemistry, and to analyze exponential growth and decay in economics and natural science.

Embed this calculator on your website

Copy the code below to show this calculator directly on your blog or website — completely free.