Compute log base b of x, natural log (ln), common log (log₁₀), and binary log (log₂).
Runs on your device. Nothing you add is uploaded.
Examples: 2, 10, e, or any custom base
log_2(64)
6
Natural log ln(x)
4.15888308
Common log log₁₀(x)
1.80617997
Binary log log₂(x)
6
Change of base: log_b(x) = ln(x) / ln(b). Check: 2^6 = 64.
How to use Logarithm calculator
- Enter any positive number x.
- Enter a custom base (such as 2, 10, or e).
- Compare log_b(x) alongside natural, base-10, and base-2 logarithms.
Questions
Any positive base raised to any real power is always positive, so real logarithms of 0 or negative numbers are undefined.
1 raised to any exponent is always 1, so log base 1 cannot map uniquely to other numbers.
How this works
Computes change-of-base logarithms locally with IEEE-754 Math.log.
Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. What you typed and your settings are kept in this browser so the tool opens the way you left it, except passwords, keys and tokens, which are never saved. Privacy
Related tools
More in CalculatorsExponent CalculatorRaise any base to an integer, negative, or fractional power (x^y).Scientific calculatorEvaluate scientific expressions with trigonometry (DEG/RAD), logarithms, factorials, memory keys, and calculation history.CAGR calculatorCalculate the Compound Annual Growth Rate (CAGR) between a starting and ending value over any period.Age CalculatorFind your exact age in years, months, and days, plus total days lived and your next birthday countdown.BMI CalculatorCalculate your Body Mass Index (BMI) in metric or imperial units with WHO weight categories.Mortgage CalculatorEstimate your monthly mortgage payment, total interest, optional housing costs, and yearly amortization schedule.