Log Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Compute the log of a number in base 10, base e, base 2 or any base you type.
Result
log base b of x
log₁₀ x (common log)
- ln x (natural log, base e)
- log₂ x (binary log)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Number x (greater than 0): enter 0 or more.
- Base b (greater than 0, not 1): enter 0 or more.
- Read the result: log base b of x; the panel also shows log₁₀ x (common log), ln x (natural log, base e) and log₂ x (binary log).
How this calculator works
log means the exponent: log_b(x) = y when b^y = x. The calculator uses ln(x) ÷ ln(b) for any base, the change of base rule.
Only positive numbers have a real logarithm, and the base must be positive and not 1.
The formula
| Symbol | Meaning |
|---|---|
| Number x (greater than 0) | |
| Base b (greater than 0, not 1) | |
| log base b of x |
Worked example
| Number x (greater than 0) | 1,000 |
|---|---|
| Base b (greater than 0, not 1) | 10 |
| log₁₀ x (common log) | 3 |
|---|---|
| ln x (natural log, base e) | 6.9078 |
| log₂ x (binary log) | 9.9658 |
log base b of x 3
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is log 100?
2, because 10² = 100.
What is ln e?
1, because the natural log uses base e.
What is log base 2 of 32?
5, because 2⁵ = 32.