Logarithm Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Find log of a number in any base, along with the common, natural and binary logarithms.
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
Change of base: log_b(x) = ln(x) ÷ ln(b). The logarithm answers: to what power must b be raised to give x?
Logarithms of zero or negative numbers are undefined and show a dash.
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
How do I calculate log base 2 on a calculator?
Divide: log₂ x = log x ÷ log 2 (or ln x ÷ ln 2). log₂ 8 = 0.9031 ÷ 0.3010 = 3.
What is the difference between log and ln?
log usually means base 10; ln is the natural log, base e ≈ 2.71828.