Worked example

Operation: Custom base b
a: 8
b: 2
2¹ = 2, 2² = 4, 2³ = 8 ⇒ log₂(8) = 3

→ 3

Method and scope

Enter a positive argument a. The custom base b must be positive and different from one. Natural logarithms use e, common logarithms use 10. Results are floating-point approximations.

log_b(a) = ln(a)/ln(b)