Skip to content
OddsockLocal
Local

Logarithm2

ln
4.61
log2
6.64
Logarithm: 2Runs in this browser. Nothing is uploaded.

Ready

How to use

  1. Enter a positive value.
  2. Enter a positive base other than 1. Use 10 for common logs.
  3. Read Logarithm for the base you chose.
  4. Read ln and log2 if you want the same value in base e and base 2.

What is Logarithms?

A logarithm asks which power of the base produces the value. Log base 10 of 100 is 2, because 10 squared is 100. The page also prints the natural log, ln(100), which is 4.61, and the base-2 log, which is 6.64. Those three are the same information in different units: change-of-base says log_b(x) = ln(x) / ln(b). For base 10, ln(100) / ln(10) is 2.

Read more

The value has to be positive. The log of 0 and the log of a negative are undefined in the reals. The base has to be positive and not equal to 1, because 1 to any power is still 1 and never reaches 100. A base between 0 and 1 is allowed and flips the direction: larger values then have smaller logs.

ln uses base e, about 2.718. log2 is the count of binary doublings: 2^6.64 is about 100, which is why the base-2 log of 100 sits between 6 and 7. If you only wanted one base, read the Logarithm line. The other two are there so you do not have to rerun the page.

Use cases

  • A student checking that log10 of 100 is 2 and that the change-of-base formula agrees.
  • An engineer reading ln of a measured value next to the common log.
  • A computer-science class counting the base-2 log of 100, the number of doublings to pass it.
  • Someone confirming a base of 1 is rejected instead of returning a fake number.
  • A chemist comparing pH-style base-10 logs with natural logs in the same glance.

Log base 10 of 100

Value 100. Base 10.

Logarithm 2. Natural log 4.61. Log base 2 is 6.64.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

2. Ten squared is 100, so the exponent is 2.