Logarithm Calculator
Calculate logarithms of any positive number with a base you choose. Enter a number and a base to see the logarithm to that base, plus the natural logarithm (ln) and the base-10 logarithm (log₁₀).
log10
3
ln
6.90776
log₁₀
3
Who should use it: Students, scientists, and anyone working with logarithmic scales.
How to use this calculator
- 1Enter the number you want to take the logarithm of.
- 2Enter the base for the logarithm (defaults to 10).
- 3Review the logarithm to your base, the natural logarithm (ln), and the base-10 logarithm.
Understanding the inputs
| Number | The value to take the logarithm of. Must be greater than zero; logarithms of zero or negative numbers are undefined. |
| Base | The base of the logarithm you want to compute. Defaults to 10. Must be greater than zero and not equal to 1. |
How the calculation works
A logarithm answers the question "to what power must the base be raised to get this number?" The calculator computes the logarithm to your chosen base using the change-of-base rule: log_base(n) = ln(n) ÷ ln(base). It also shows the natural logarithm (base e) and the base-10 logarithm directly.
Worked example
Scenario: Number 1000, base 10.
Result: log₁₀(1000) = 3, because 10³ = 1000. ln(1000) ≈ 6.908.
How to interpret your result
The logarithm to your base is the power the base must be raised to in order to produce the number. The natural logarithm (ln) uses base e (≈ 2.718) and appears throughout calculus and continuous growth. The base-10 logarithm (log₁₀) is used in the decibel scale, pH, and Richter scale. Logarithms of numbers between 0 and 1 are negative.
Factors that can affect the result
- Base: changing the base changes the result; the natural logarithm uses base e and the common logarithm uses base 10.
- Number range: logarithms of numbers greater than 1 are positive; logarithms of numbers between 0 and 1 are negative.
- Invalid inputs: the logarithm of zero or a negative number is undefined, and a base of 1 is invalid because 1 to any power is 1.
Limitations and assumptions
- Computes real logarithms only; logarithms of zero or negative numbers return NaN (not a number).
- A base of 1 is invalid and produces an undefined result, since 1 raised to any power is always 1.
- Results are rounded for display; full precision is kept internally.
Frequently asked questions
Related calculators
Methodology
The calculator computes the logarithm to your chosen base using the change-of-base rule log_base(n) = ln(n) ÷ ln(base), and also reports the natural logarithm and the base-10 logarithm.
Sources and references
- Mathematical basis — logarithms and the change-of-base rule are standard results of algebra; no external source is required
Disclaimer: Results are provided for informational purposes and may vary depending on the values entered, the assumptions described above, and rounding. They are not a substitute for professional advice specific to your situation. Read the full disclaimer.