Calculate the logarithm of a positive number for any valid real base and verify the result with an exponent check.
Last updated: June 2026 | By Patchworkr Team
A logarithm answers the question "what power do I raise the base to in order to get the value?" For a valid base b and value x, log base b of x is the exponent y such that b^y = x.
For x = 100 and b = 10, the result is 2.
Why is the base restricted?
The base must be positive and not equal to 1 so the logarithm is well-defined and not degenerate.
Can the input be less than 1?
Yes. The result is negative whenever the value is between 0 and 1.
Does the tool accept decimals?
Yes. Any finite real value and valid base are accepted, including scientific notation.
What if the value is blank?
Blank input is treated as invalid instead of being silently converted to zero.
Related Tools