Arithmetic & Number Theory

Logarithm Base 2

Binary logarithm.

Formula

Formula
y = log2(x)

Variables

SymbolDefinitionType & rangeUnitsRole
x input (> 0) real number (ℝ) — input
y base-2 log computed result — result

Try it yourself

Interactive calculator
Result
—

Worked examples

Example 1
Givenx = 1024
Result10
Example 2
Givenx = 100
Result6.64385619