This Log Calculator evaluates the logarithm of a positive value (x) using a selected base (b), and also reports the natural logarithm (ln(x)). Enter a positive base other than 1 and a positive value. The widget uses the change-of-base identity to calculate the result.
How to Use the Log Calculator
- Enter the logarithm base (b).
- Enter the positive value (x).
- Read (log_b(x)) and (ln(x)).
- Check the domain if the result is undefined: the base must be positive and not 1, and the argument must be greater than zero.
Logarithm Formula
y = log_b(x) means bʸ = x
The calculator uses the change-of-base rule:
log_b(x) = ln(x) ÷ ln(b)
A logarithm answers: “What exponent must be applied to the base to produce the value?”
Worked Examples
- (log_{10}(1000)=3), because (10³=1000).
- (log_2(8)=3), because (2³=8).
- (ln(e²)=2).
- (log_2(0.25)=−2), because (2^{-2}=0.25).
Common, Natural and Custom-Base Logarithms
A common logarithm uses base 10, so log₁₀(1000) = 3. A binary logarithm uses base 2, so log₂(8) = 3. A natural logarithm uses base e, so ln(e²) = 2. The change-of-base identity lets you evaluate any valid base using natural logs: log_b(x) = ln(x) ÷ ln(b).
For real-valued logarithms, the argument x must be positive and the base b must be positive and different from 1. Bases between 0 and 1 are valid; their logarithmic functions decrease as x increases. For example, log₀.₅(4) = −2 because 0.5⁻² = 4. A base of 1, zero or a negative base is not valid for the real logarithm used here.
Valid Bases and Arguments
For real-valued logarithms, (x>0), (b>0), and (b ≠ 1). A base between zero and one is mathematically valid, although the logarithm is decreasing as the argument increases. Zero or negative arguments do not produce a real logarithm.
Competitor review covered UtilsWorld, Calcist, Omni Calculator, Dataopedia and AltFTool. Their broader tools may show common, natural and binary logs side by side, offer antilog or solve-for-base modes, or provide exact values and working. This guide now compares common, natural and binary logarithms, explains valid bases between zero and one, and adds a negative-exponent example. The widget still returns the selected custom-base logarithm and ln(x) only.
Use the Exponent Calculator for the inverse power operation.
Assumptions and Limitations
- The base must be positive and different from 1.
- The argument must be positive for a real result.
- The widget reports (log_b(x)) and (ln(x)), not a full set of common, binary and custom logarithms.
- It does not calculate antilogarithms, solve equations symbolically or handle complex logarithms.
- Results use floating-point arithmetic and are rounded for display.
