Logarithm Calculator
Beta: this tool hasn't been fully reviewed yet. Double-check results before relying on them.
Inputs
A positive number other than 1, or e for the natural logarithm.
Results
- log
- —
- Check
- —
- ln x
- —
- log₁₀ x
- —
- log₂ x
- —
Steps
Your input is too long to share as a link, so the page address no longer includes it.
A logarithm answers the question “what power do I raise the base to, to get this number?” Because 10³ = 1,000, log₁₀ 1,000 = 3. Logarithms turn multiplication into addition, which is why they show up in decibels, the Richter scale, pH, compound interest and computer science.
How to use it
- Enter the number x.
- Enter the base, or tap log₁₀, ln or log₂.
- Read the logarithm, the check and the steps.
Examples: log₁₀ 1,000 = 3. log₂ 1,024 = 10. ln 10 = 2.30258509299. log₃ 81 = 4. log₂ 10 = 3.32192809489, so it takes a bit more than 3 doublings to reach 10.
Questions and answers
What is the difference between log and ln?
On calculators, log usually means base 10 and ln means base e (about 2.71828), the natural logarithm used in growth and decay. In math and programming, log alone often means ln, so check which one is meant.
How do I calculate a log in another base?
Use the change-of-base rule: log_b x = ln x ÷ ln b. For example, log₂ 10 = ln 10 ÷ ln 2 = 2.302585 ÷ 0.693147 = 3.321928.
Why can't I take the log of 0 or a negative number?
No power of a positive base gives 0 or a negative number, so there is no real answer. Close to 0, the logarithm goes down toward minus infinity.
Link with pre-filled values
Add # and these parameters to the end of this page's address to open the tool with values already filled in.
| Parameter | What it sets |
|---|---|
x | The number (greater than 0). |
base | The base: a positive number other than 1, or e. |
Example: https://toolabelle.com/logarithm-calculator/#x=1024&base=2