Skip to main content
CalcChef

Logarithm Calculator

Log of a positive number to base 10, base 2, base e (ln) or any base above 0 except 1, shown to 10 significant digits. How it works

Use the Logarithm Calculator

Base:
Try:
Logarithm
2

log10(100) = 2

About the Logarithm Calculator

log base 10 of 1000 is 3, because 10³ = 1000. This logarithm calculator returns log_b(x) for any number x above 0 and any base b above 0 except 1, shown to 10 significant digits: log base 2 of 3 is 1.584962501. For the natural log (ln), press the e base button, which fills in e = 2.718281828459045. Exact powers come out as whole numbers, so log base 5 of 125 shows 3.

Logarithms the calculator returns

xBaselog_b(x)
100102
1000103
0.0110-2
1100
823
1024210
321.584962501
12553
10052.861353116
8134
2e (2.718281828459045)0.6931471806

As the tool shows them, to 10 significant digits.

How to use this tool

  1. Enter the number x. It must be above 0.
  2. Enter the base b, or press 10, e or 2. It must be above 0 and not 1. The defaults are 100 and 10.
  3. Read the result. The example buttons fill in log₂ 1024 (10), ln of e³ (3) and log₁₀ 0.001 (-3).
  4. Tick Show steps to see ln(x), ln(b) and their quotient.

Frequently asked questions

How do I calculate log base 2 of a number?
Enter the number and 2 as the base. Log base 2 of 1024 is 10, and of 3 is 1.584962501. Base 2 uses an exact base-2 function, so powers of 2 come out as whole numbers.
How do I calculate the natural log (ln)?
The natural log is the log to base e. Press the e button under Base, which fills in 2.718281828459045: ln 2 shows 0.6931471806 and ln 10 shows 2.302585093. If you type e yourself, type all the digits, because a shortened e changes the later decimals.
How do I calculate log base 3 of 50, or any other base?
Type the number and the base. By hand, divide natural logs: log base 3 of 50 = ln 50 ÷ ln 3 = 3.912023005 ÷ 1.098612289 = 3.560876795. This change of base formula works for any base, and the tool applies it for bases other than 10 and 2. Tick Show steps to see it worked for your numbers: for log base 10 of 100, ln(100) = 4.605170186 and ln(10) = 2.302585093, and 4.605170186 ÷ 2.302585093 = 2.
Why is the log of 0 or a negative number not defined?
No power of a positive base gives 0 or a negative number, so x must be above 0, and the tool says so in a message. A base of 1 is refused because every power of 1 is 1, and the base must also be above 0.
Why is the log of a number between 0 and 1 negative?
It is a power below 0: 10 to the power -2 is 0.01, so log base 10 of 0.01 is -2, and log base 2 of 0.5 is -1. The log of 1 is 0 in every base.
Why does the answer show 3 and not 2.9999999999999996?
Dividing ln 1000 by ln 10 in a browser gives 2.9999999999999996. The tool uses exact base-10 and base-2 functions and rounds every result to 10 significant digits, so exact powers read as whole numbers.

Related Tools

View all tools