This simple tool computes the value of Log2(x) for any value of x
Formula
Log2(x) = y
Background
What is Log Base 2?
The logarithm with base 2 is the inverse operation of raising 2 to a power. In mathematical terms:
Log2(x) = y ⟹ 2y = x
This means that log base 2 of a number x gives the power to which 2 must be raised to get x.
For example: Log2(8) = 3 since 23=8
Log base 2 is often called the binary logarithm, and it has significant importance in computer science, especially in measuring the time complexity of algorithms and working with binary systems.
Log Base 2 Table of Values
| x | Log2(x) |
| 1 | 0 |
| 2 | 1 |
| 3 | 1.58 |
| 4 | 2 |
| 5 | 2.32 |
| 6 | 2.58 |
| 7 | 2.81 |
| 8 | 3 |
| 9 | 3.17 |
| 10 | 3.32 |