Instantly find the binary logarithm (log₂) of any positive number.
Enter a value into the field below to calculate its base-2 logarithm. This is essential for work in computer science, signal processing, and information theory.
See how the calculator works with these common use cases.
Calculating the log base 2 of a number that is a direct power of 2.
x = 8
Finding the number of bits required to represent a large number of states.
x = 1024
Calculating the log base 2 for a number between 0 and 1.
x = 0.5
An example where the result is not a whole number.
x = 100