About this calculator
Enter the number and the base.
How to use it
- Enter the number.
- Enter the base.
- Read the logarithms.
The formula
log_b(x) = ln(x) ÷ ln(b)
- ln
- natural log, base e ≈ 2.718
- log
- common log, base 10
Worked example
log base 10 of 1000
- 10³ = 1000, so the answer is 3.
- ln 1000 = 6.908 and log₂ 1000 = 9.966.
What the result means
The antilog is the reverse: 10³ = 1000.
Common and natural logs of 1 to 10
Only log 2, log 3 and log 7 need remembering. The rest follow from the laws below: log 4 = 2 log 2, log 5 = 1 − log 2 and log 6 = log 2 + log 3.
| x | log₁₀ x | ln x |
|---|---|---|
| 1 | 0.0000 | 0.0000 |
| 2 | 0.3010 | 0.6931 |
| 3 | 0.4771 | 1.0986 |
| 4 | 0.6021 | 1.3863 |
| 5 | 0.6990 | 1.6094 |
| 6 | 0.7782 | 1.7918 |
| 7 | 0.8451 | 1.9459 |
| 8 | 0.9031 | 2.0794 |
| 9 | 0.9542 | 2.1972 |
| 10 | 1.0000 | 2.3026 |
Laws of logarithms
- log(a × b) = log a + log b: log 6 = 0.3010 + 0.4771 = 0.7781.
- log(a ÷ b) = log a − log b: log 0.5 = 0 − 0.3010 = −0.3010.
- log(aⁿ) = n log a: log 8 = 3 × 0.3010 = 0.9031.
- In any valid base b, log_b b = 1 and log_b 1 = 0.
Mistakes to avoid
- On scientific calculators and in school textbooks, “log” usually means base 10 and “ln” means base e. In many programming languages, including Python and JavaScript, log() is the natural log.
- log(a + b) is not log a + log b.
- Numbers between 0 and 1 have negative logs: log 0.01 = −2.
- The number of digits in a whole number x is the whole-number part of log₁₀ x, plus 1: log 1,024 ≈ 3.0103, so 1,024 has 4 digits.
Assumptions
- Positive numbers and bases, base not 1.
Limitations
- Logarithms of zero or negatives are undefined for real numbers.
Frequently asked questions
What is log 100?
2, in base 10.
What is ln 1?
0.
How do I change the base?
Divide ln of the number by ln of the base.
What is the value of log 2?
log₁₀ 2 ≈ 0.3010299957, usually rounded to 0.3010.
What is ln 2?
About 0.6931471806.
What is log base 2 of 1024?
10, because 2¹⁰ = 1,024.
Last reviewed on 12 October 2026. How we calculate and check. Found a mistake? Tell us.

