BroHelp.me

Log Calculator

Calculates base b logarithm of a number x.






2

How This Converter Works

Calculates the logarithm of a finite number x to a finite base b using the change-of-base rule. A valid real result requires x > 0 and b > 0, b != 1. Blank input clears the result; other invalid inputs display Invalid input. Valid results are not rounded.

Formula or rule

log_b(x) = ln(x) / ln(b), implemented as Math.log(x) / Math.log(b)

Example

Input
Number 100; base 10
Calculation
Math.log(100) / Math.log(10)
Result
2
© BroHelp.me 2026 - 2026 is provided without warranty of any kind.