Logarithm Calculator
Compute the logarithm of a positive number in a base you choose.
About this tool
The page computes log(value) / log(base) for a positive value and a valid base. Common and natural logs are the same operation with base 10 or e.
A result that is not finite is rejected.
How to use it
- Enter the value and the base.
- Calculate.
- The value must be positive. The base must be positive and not 1.
Limitations
- A non-positive value is rejected. A base of 1 or a non-positive base is rejected.
- The result is the real logarithm. Complex values are not produced.
Change of base through natural logs
Value, base, and the quotient
The logarithm of a value in a chosen base is ln(value) / ln(base). That is the change-of-base identity, and it is the only formula used. The value must be strictly positive. The base must be strictly positive and must not equal 1. A worked triple is value 8 and base 2: ln(8) / ln(2) = 3, because 2³ = 8. The panel prints 3. Value 100 and base 10 prints 2. Value 1 in any legal base prints 0.
Bases people confuse with the buttons
Base 10 is ordinary log. Base e, which you can enter as a decimal approximation or by knowing e is about 2.718281828, is the natural logarithm. The scientific keypad has log and ln as separate keys that already fix the base. This form is the one that lets the base be 2, 3, or any other allowed number. A base between 0 and 1 is legal and flips the direction of growth: log base 1/2 of 8 is −3, because (1/2)⁻³ = 8.
Rejections
A value of 0 or a negative value is refused. A base of 1 is refused. A base of 0 or a negative base is refused. The page does not return a complex logarithm. It does not solve for the value given the log. If the true result is an irrational such as log base 2 of 3, the display rounds to at most ten fractional digits. The underlying division is binary floating point, so a power that should be exact sometimes shows a long tail instead of a short integer. When you expected a clean integer, check that the value really is an integer power of the base before you treat a trailing digit as a new mathematical fact.
A base you type versus a named button
Entering base 10 is not the same key as the scientific log button, but for a perfect power of ten the quotient should land on an integer. Entering base e by a short decimal such as 2.718 will not reproduce ln exactly, because that decimal is not e. Use more digits of e, or use the ln key when the base truly is e. The change-of-base quotient amplifies a bad base into a bad result without a separate warning that your base was only an approximation.
Privacy
Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.

